configure 535 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for clish 1.3.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  214. $0: gmail dot com about your system, including any error
  215. $0: possibly output before this message. Then install a
  216. $0: modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$lt_ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. ECHO=${lt_ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $ECHO works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<_LT_EOF
  512. $*
  513. _LT_EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$lt_ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  525. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. ECHO="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$ECHO" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. ECHO='print -r'
  560. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. ECHO='printf %s\n'
  571. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. ECHO=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. lt_ECHO=$ECHO
  616. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. exec 7<&0 </dev/null 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='clish'
  637. PACKAGE_TARNAME='clish'
  638. PACKAGE_VERSION='1.3.0'
  639. PACKAGE_STRING='clish 1.3.0'
  640. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. BFD_LIBS
  682. LUBHEAP_CFLAGS
  683. LUBHEAP_LIBS
  684. LUBHEAP_FALSE
  685. LUBHEAP_TRUE
  686. TCL_FALSE
  687. TCL_TRUE
  688. TCL_VERSION
  689. TCL_LIBS
  690. TCL_CFLAGS
  691. RT_CFLAGS
  692. RT_LIBS
  693. PTHREAD_CFLAGS
  694. PTHREAD_LIBS
  695. TINYXML_CXXFLAGS
  696. TINYXML_LIBS
  697. TINYRL_CFLAGS
  698. TINYRL_LIBS
  699. KONF_CFLAGS
  700. KONF_LIBS
  701. LUB_CFLAGS
  702. LUB_LIBS
  703. DEBUG_FALSE
  704. DEBUG_TRUE
  705. am__fastdepCXX_FALSE
  706. am__fastdepCXX_TRUE
  707. CXXDEPMODE
  708. am__fastdepCC_FALSE
  709. am__fastdepCC_TRUE
  710. CCDEPMODE
  711. AMDEPBACKSLASH
  712. AMDEP_FALSE
  713. AMDEP_TRUE
  714. am__quote
  715. am__include
  716. DEPDIR
  717. am__untar
  718. am__tar
  719. AMTAR
  720. am__leading_dot
  721. SET_MAKE
  722. AWK
  723. mkdir_p
  724. MKDIR_P
  725. INSTALL_STRIP_PROGRAM
  726. install_sh
  727. MAKEINFO
  728. AUTOHEADER
  729. AUTOMAKE
  730. AUTOCONF
  731. ACLOCAL
  732. VERSION
  733. PACKAGE
  734. CYGPATH_W
  735. am__isrc
  736. INSTALL_DATA
  737. INSTALL_SCRIPT
  738. INSTALL_PROGRAM
  739. CXXCPP
  740. CPP
  741. OTOOL64
  742. OTOOL
  743. LIPO
  744. NMEDIT
  745. DSYMUTIL
  746. lt_ECHO
  747. RANLIB
  748. STRIP
  749. AR
  750. LN_S
  751. NM
  752. ac_ct_DUMPBIN
  753. DUMPBIN
  754. LD
  755. FGREP
  756. EGREP
  757. GREP
  758. SED
  759. LIBTOOL
  760. OBJDUMP
  761. DLLTOOL
  762. AS
  763. host_os
  764. host_vendor
  765. host_cpu
  766. host
  767. build_os
  768. build_vendor
  769. build_cpu
  770. build
  771. ac_ct_CXX
  772. CXXFLAGS
  773. CXX
  774. OBJEXT
  775. EXEEXT
  776. ac_ct_CC
  777. CPPFLAGS
  778. LDFLAGS
  779. CFLAGS
  780. CC
  781. target_alias
  782. host_alias
  783. build_alias
  784. LIBS
  785. ECHO_T
  786. ECHO_N
  787. ECHO_C
  788. DEFS
  789. mandir
  790. localedir
  791. libdir
  792. psdir
  793. pdfdir
  794. dvidir
  795. htmldir
  796. infodir
  797. docdir
  798. oldincludedir
  799. includedir
  800. localstatedir
  801. sharedstatedir
  802. sysconfdir
  803. datadir
  804. datarootdir
  805. libexecdir
  806. sbindir
  807. bindir
  808. program_transform_name
  809. prefix
  810. exec_prefix
  811. PACKAGE_URL
  812. PACKAGE_BUGREPORT
  813. PACKAGE_STRING
  814. PACKAGE_VERSION
  815. PACKAGE_TARNAME
  816. PACKAGE_NAME
  817. PATH_SEPARATOR
  818. SHELL'
  819. ac_subst_files=''
  820. ac_user_opts='
  821. enable_option_checking
  822. enable_shared
  823. enable_static
  824. with_pic
  825. enable_fast_install
  826. with_gnu_ld
  827. enable_libtool_lock
  828. enable_dependency_tracking
  829. enable_debug
  830. with_pthread
  831. with_rt
  832. with_tcl
  833. enable_lubheap
  834. enable_gpl
  835. '
  836. ac_precious_vars='build_alias
  837. host_alias
  838. target_alias
  839. CC
  840. CFLAGS
  841. LDFLAGS
  842. LIBS
  843. CPPFLAGS
  844. CXX
  845. CXXFLAGS
  846. CCC
  847. CPP
  848. CXXCPP'
  849. # Initialize some variables set by options.
  850. ac_init_help=
  851. ac_init_version=false
  852. ac_unrecognized_opts=
  853. ac_unrecognized_sep=
  854. # The variables have the same names as the options, with
  855. # dashes changed to underlines.
  856. cache_file=/dev/null
  857. exec_prefix=NONE
  858. no_create=
  859. no_recursion=
  860. prefix=NONE
  861. program_prefix=NONE
  862. program_suffix=NONE
  863. program_transform_name=s,x,x,
  864. silent=
  865. site=
  866. srcdir=
  867. verbose=
  868. x_includes=NONE
  869. x_libraries=NONE
  870. # Installation directory options.
  871. # These are left unexpanded so users can "make install exec_prefix=/foo"
  872. # and all the variables that are supposed to be based on exec_prefix
  873. # by default will actually change.
  874. # Use braces instead of parens because sh, perl, etc. also accept them.
  875. # (The list follows the same order as the GNU Coding Standards.)
  876. bindir='${exec_prefix}/bin'
  877. sbindir='${exec_prefix}/sbin'
  878. libexecdir='${exec_prefix}/libexec'
  879. datarootdir='${prefix}/share'
  880. datadir='${datarootdir}'
  881. sysconfdir='${prefix}/etc'
  882. sharedstatedir='${prefix}/com'
  883. localstatedir='${prefix}/var'
  884. includedir='${prefix}/include'
  885. oldincludedir='/usr/include'
  886. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  887. infodir='${datarootdir}/info'
  888. htmldir='${docdir}'
  889. dvidir='${docdir}'
  890. pdfdir='${docdir}'
  891. psdir='${docdir}'
  892. libdir='${exec_prefix}/lib'
  893. localedir='${datarootdir}/locale'
  894. mandir='${datarootdir}/man'
  895. ac_prev=
  896. ac_dashdash=
  897. for ac_option
  898. do
  899. # If the previous option needs an argument, assign it.
  900. if test -n "$ac_prev"; then
  901. eval $ac_prev=\$ac_option
  902. ac_prev=
  903. continue
  904. fi
  905. case $ac_option in
  906. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  907. *) ac_optarg=yes ;;
  908. esac
  909. # Accept the important Cygnus configure options, so we can diagnose typos.
  910. case $ac_dashdash$ac_option in
  911. --)
  912. ac_dashdash=yes ;;
  913. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  914. ac_prev=bindir ;;
  915. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  916. bindir=$ac_optarg ;;
  917. -build | --build | --buil | --bui | --bu)
  918. ac_prev=build_alias ;;
  919. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  920. build_alias=$ac_optarg ;;
  921. -cache-file | --cache-file | --cache-fil | --cache-fi \
  922. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  923. ac_prev=cache_file ;;
  924. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  925. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  926. cache_file=$ac_optarg ;;
  927. --config-cache | -C)
  928. cache_file=config.cache ;;
  929. -datadir | --datadir | --datadi | --datad)
  930. ac_prev=datadir ;;
  931. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  932. datadir=$ac_optarg ;;
  933. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  934. | --dataroo | --dataro | --datar)
  935. ac_prev=datarootdir ;;
  936. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  937. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  938. datarootdir=$ac_optarg ;;
  939. -disable-* | --disable-*)
  940. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  941. # Reject names that are not valid shell variable names.
  942. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943. as_fn_error "invalid feature name: $ac_useropt"
  944. ac_useropt_orig=$ac_useropt
  945. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  946. case $ac_user_opts in
  947. *"
  948. "enable_$ac_useropt"
  949. "*) ;;
  950. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  951. ac_unrecognized_sep=', ';;
  952. esac
  953. eval enable_$ac_useropt=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  966. as_fn_error "invalid feature name: $ac_useropt"
  967. ac_useropt_orig=$ac_useropt
  968. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  969. case $ac_user_opts in
  970. *"
  971. "enable_$ac_useropt"
  972. "*) ;;
  973. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  974. ac_unrecognized_sep=', ';;
  975. esac
  976. eval enable_$ac_useropt=\$ac_optarg ;;
  977. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  978. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  979. | --exec | --exe | --ex)
  980. ac_prev=exec_prefix ;;
  981. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  982. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  983. | --exec=* | --exe=* | --ex=*)
  984. exec_prefix=$ac_optarg ;;
  985. -gas | --gas | --ga | --g)
  986. # Obsolete; use --with-gas.
  987. with_gas=yes ;;
  988. -help | --help | --hel | --he | -h)
  989. ac_init_help=long ;;
  990. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  991. ac_init_help=recursive ;;
  992. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  993. ac_init_help=short ;;
  994. -host | --host | --hos | --ho)
  995. ac_prev=host_alias ;;
  996. -host=* | --host=* | --hos=* | --ho=*)
  997. host_alias=$ac_optarg ;;
  998. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  999. ac_prev=htmldir ;;
  1000. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1001. | --ht=*)
  1002. htmldir=$ac_optarg ;;
  1003. -includedir | --includedir | --includedi | --included | --include \
  1004. | --includ | --inclu | --incl | --inc)
  1005. ac_prev=includedir ;;
  1006. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1007. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1008. includedir=$ac_optarg ;;
  1009. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1010. ac_prev=infodir ;;
  1011. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1012. infodir=$ac_optarg ;;
  1013. -libdir | --libdir | --libdi | --libd)
  1014. ac_prev=libdir ;;
  1015. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1016. libdir=$ac_optarg ;;
  1017. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1018. | --libexe | --libex | --libe)
  1019. ac_prev=libexecdir ;;
  1020. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1021. | --libexe=* | --libex=* | --libe=*)
  1022. libexecdir=$ac_optarg ;;
  1023. -localedir | --localedir | --localedi | --localed | --locale)
  1024. ac_prev=localedir ;;
  1025. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1026. localedir=$ac_optarg ;;
  1027. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1028. | --localstate | --localstat | --localsta | --localst | --locals)
  1029. ac_prev=localstatedir ;;
  1030. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1031. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1032. localstatedir=$ac_optarg ;;
  1033. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1034. ac_prev=mandir ;;
  1035. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1036. mandir=$ac_optarg ;;
  1037. -nfp | --nfp | --nf)
  1038. # Obsolete; use --without-fp.
  1039. with_fp=no ;;
  1040. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1041. | --no-cr | --no-c | -n)
  1042. no_create=yes ;;
  1043. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1044. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1045. no_recursion=yes ;;
  1046. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1047. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1048. | --oldin | --oldi | --old | --ol | --o)
  1049. ac_prev=oldincludedir ;;
  1050. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1051. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1052. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1053. oldincludedir=$ac_optarg ;;
  1054. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1055. ac_prev=prefix ;;
  1056. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1057. prefix=$ac_optarg ;;
  1058. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1059. | --program-pre | --program-pr | --program-p)
  1060. ac_prev=program_prefix ;;
  1061. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1062. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1063. program_prefix=$ac_optarg ;;
  1064. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1065. | --program-suf | --program-su | --program-s)
  1066. ac_prev=program_suffix ;;
  1067. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1068. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1069. program_suffix=$ac_optarg ;;
  1070. -program-transform-name | --program-transform-name \
  1071. | --program-transform-nam | --program-transform-na \
  1072. | --program-transform-n | --program-transform- \
  1073. | --program-transform | --program-transfor \
  1074. | --program-transfo | --program-transf \
  1075. | --program-trans | --program-tran \
  1076. | --progr-tra | --program-tr | --program-t)
  1077. ac_prev=program_transform_name ;;
  1078. -program-transform-name=* | --program-transform-name=* \
  1079. | --program-transform-nam=* | --program-transform-na=* \
  1080. | --program-transform-n=* | --program-transform-=* \
  1081. | --program-transform=* | --program-transfor=* \
  1082. | --program-transfo=* | --program-transf=* \
  1083. | --program-trans=* | --program-tran=* \
  1084. | --progr-tra=* | --program-tr=* | --program-t=*)
  1085. program_transform_name=$ac_optarg ;;
  1086. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1087. ac_prev=pdfdir ;;
  1088. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1089. pdfdir=$ac_optarg ;;
  1090. -psdir | --psdir | --psdi | --psd | --ps)
  1091. ac_prev=psdir ;;
  1092. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1093. psdir=$ac_optarg ;;
  1094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1095. | -silent | --silent | --silen | --sile | --sil)
  1096. silent=yes ;;
  1097. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1098. ac_prev=sbindir ;;
  1099. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1100. | --sbi=* | --sb=*)
  1101. sbindir=$ac_optarg ;;
  1102. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1103. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1104. | --sharedst | --shareds | --shared | --share | --shar \
  1105. | --sha | --sh)
  1106. ac_prev=sharedstatedir ;;
  1107. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1108. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1109. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1110. | --sha=* | --sh=*)
  1111. sharedstatedir=$ac_optarg ;;
  1112. -site | --site | --sit)
  1113. ac_prev=site ;;
  1114. -site=* | --site=* | --sit=*)
  1115. site=$ac_optarg ;;
  1116. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1117. ac_prev=srcdir ;;
  1118. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1119. srcdir=$ac_optarg ;;
  1120. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1121. | --syscon | --sysco | --sysc | --sys | --sy)
  1122. ac_prev=sysconfdir ;;
  1123. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1124. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1125. sysconfdir=$ac_optarg ;;
  1126. -target | --target | --targe | --targ | --tar | --ta | --t)
  1127. ac_prev=target_alias ;;
  1128. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1129. target_alias=$ac_optarg ;;
  1130. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1131. verbose=yes ;;
  1132. -version | --version | --versio | --versi | --vers | -V)
  1133. ac_init_version=: ;;
  1134. -with-* | --with-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. as_fn_error "invalid package name: $ac_useropt"
  1139. ac_useropt_orig=$ac_useropt
  1140. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1141. case $ac_user_opts in
  1142. *"
  1143. "with_$ac_useropt"
  1144. "*) ;;
  1145. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1146. ac_unrecognized_sep=', ';;
  1147. esac
  1148. eval with_$ac_useropt=\$ac_optarg ;;
  1149. -without-* | --without-*)
  1150. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1153. as_fn_error "invalid package name: $ac_useropt"
  1154. ac_useropt_orig=$ac_useropt
  1155. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1156. case $ac_user_opts in
  1157. *"
  1158. "with_$ac_useropt"
  1159. "*) ;;
  1160. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1161. ac_unrecognized_sep=', ';;
  1162. esac
  1163. eval with_$ac_useropt=no ;;
  1164. --x)
  1165. # Obsolete; use --with-x.
  1166. with_x=yes ;;
  1167. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1168. | --x-incl | --x-inc | --x-in | --x-i)
  1169. ac_prev=x_includes ;;
  1170. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1171. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1172. x_includes=$ac_optarg ;;
  1173. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1174. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1175. ac_prev=x_libraries ;;
  1176. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1177. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1178. x_libraries=$ac_optarg ;;
  1179. -*) as_fn_error "unrecognized option: \`$ac_option'
  1180. Try \`$0 --help' for more information."
  1181. ;;
  1182. *=*)
  1183. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1184. # Reject names that are not valid shell variable names.
  1185. case $ac_envvar in #(
  1186. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1187. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1188. esac
  1189. eval $ac_envvar=\$ac_optarg
  1190. export $ac_envvar ;;
  1191. *)
  1192. # FIXME: should be removed in autoconf 3.0.
  1193. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1194. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1195. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1196. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1197. ;;
  1198. esac
  1199. done
  1200. if test -n "$ac_prev"; then
  1201. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1202. as_fn_error "missing argument to $ac_option"
  1203. fi
  1204. if test -n "$ac_unrecognized_opts"; then
  1205. case $enable_option_checking in
  1206. no) ;;
  1207. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1208. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1209. esac
  1210. fi
  1211. # Check all directory arguments for consistency.
  1212. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1213. datadir sysconfdir sharedstatedir localstatedir includedir \
  1214. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1215. libdir localedir mandir
  1216. do
  1217. eval ac_val=\$$ac_var
  1218. # Remove trailing slashes.
  1219. case $ac_val in
  1220. */ )
  1221. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1222. eval $ac_var=\$ac_val;;
  1223. esac
  1224. # Be sure to have absolute directory names.
  1225. case $ac_val in
  1226. [\\/$]* | ?:[\\/]* ) continue;;
  1227. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1228. esac
  1229. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1230. done
  1231. # There might be people who depend on the old broken behavior: `$host'
  1232. # used to hold the argument of --host etc.
  1233. # FIXME: To remove some day.
  1234. build=$build_alias
  1235. host=$host_alias
  1236. target=$target_alias
  1237. # FIXME: To remove some day.
  1238. if test "x$host_alias" != x; then
  1239. if test "x$build_alias" = x; then
  1240. cross_compiling=maybe
  1241. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1242. If a cross compiler is detected then cross compile mode will be used." >&2
  1243. elif test "x$build_alias" != "x$host_alias"; then
  1244. cross_compiling=yes
  1245. fi
  1246. fi
  1247. ac_tool_prefix=
  1248. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1249. test "$silent" = yes && exec 6>/dev/null
  1250. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1251. ac_ls_di=`ls -di .` &&
  1252. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1253. as_fn_error "working directory cannot be determined"
  1254. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255. as_fn_error "pwd does not report name of working directory"
  1256. # Find the source files, if location was not specified.
  1257. if test -z "$srcdir"; then
  1258. ac_srcdir_defaulted=yes
  1259. # Try the directory containing this script, then the parent directory.
  1260. ac_confdir=`$as_dirname -- "$as_myself" ||
  1261. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1262. X"$as_myself" : 'X\(//\)[^/]' \| \
  1263. X"$as_myself" : 'X\(//\)$' \| \
  1264. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1265. $as_echo X"$as_myself" |
  1266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)[^/].*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\/\)$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\).*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. s/.*/./; q'`
  1283. srcdir=$ac_confdir
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. srcdir=..
  1286. fi
  1287. else
  1288. ac_srcdir_defaulted=no
  1289. fi
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1292. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1293. fi
  1294. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1295. ac_abs_confdir=`(
  1296. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1297. pwd)`
  1298. # When building in place, set srcdir=.
  1299. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1300. srcdir=.
  1301. fi
  1302. # Remove unnecessary trailing slashes from srcdir.
  1303. # Double slashes in file names in object file debugging info
  1304. # mess up M-x gdb in Emacs.
  1305. case $srcdir in
  1306. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1307. esac
  1308. for ac_var in $ac_precious_vars; do
  1309. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_env_${ac_var}_value=\$${ac_var}
  1311. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1312. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1313. done
  1314. #
  1315. # Report the --help message.
  1316. #
  1317. if test "$ac_init_help" = "long"; then
  1318. # Omit some internal or obsolete options to make the list less imposing.
  1319. # This message is too long to be a string in the A/UX 3.1 sh.
  1320. cat <<_ACEOF
  1321. \`configure' configures clish 1.3.0 to adapt to many kinds of systems.
  1322. Usage: $0 [OPTION]... [VAR=VALUE]...
  1323. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1324. VAR=VALUE. See below for descriptions of some of the useful variables.
  1325. Defaults for the options are specified in brackets.
  1326. Configuration:
  1327. -h, --help display this help and exit
  1328. --help=short display options specific to this package
  1329. --help=recursive display the short help of all the included packages
  1330. -V, --version display version information and exit
  1331. -q, --quiet, --silent do not print \`checking...' messages
  1332. --cache-file=FILE cache test results in FILE [disabled]
  1333. -C, --config-cache alias for \`--cache-file=config.cache'
  1334. -n, --no-create do not create output files
  1335. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1336. Installation directories:
  1337. --prefix=PREFIX install architecture-independent files in PREFIX
  1338. [$ac_default_prefix]
  1339. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1340. [PREFIX]
  1341. By default, \`make install' will install all the files in
  1342. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1343. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1344. for instance \`--prefix=\$HOME'.
  1345. For better control, use the options below.
  1346. Fine tuning of the installation directories:
  1347. --bindir=DIR user executables [EPREFIX/bin]
  1348. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1349. --libexecdir=DIR program executables [EPREFIX/libexec]
  1350. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1351. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1352. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1353. --libdir=DIR object code libraries [EPREFIX/lib]
  1354. --includedir=DIR C header files [PREFIX/include]
  1355. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1356. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1357. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1358. --infodir=DIR info documentation [DATAROOTDIR/info]
  1359. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1360. --mandir=DIR man documentation [DATAROOTDIR/man]
  1361. --docdir=DIR documentation root [DATAROOTDIR/doc/clish]
  1362. --htmldir=DIR html documentation [DOCDIR]
  1363. --dvidir=DIR dvi documentation [DOCDIR]
  1364. --pdfdir=DIR pdf documentation [DOCDIR]
  1365. --psdir=DIR ps documentation [DOCDIR]
  1366. _ACEOF
  1367. cat <<\_ACEOF
  1368. Program names:
  1369. --program-prefix=PREFIX prepend PREFIX to installed program names
  1370. --program-suffix=SUFFIX append SUFFIX to installed program names
  1371. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1372. System types:
  1373. --build=BUILD configure for building on BUILD [guessed]
  1374. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1375. _ACEOF
  1376. fi
  1377. if test -n "$ac_init_help"; then
  1378. case $ac_init_help in
  1379. short | recursive ) echo "Configuration of clish 1.3.0:";;
  1380. esac
  1381. cat <<\_ACEOF
  1382. Optional Features:
  1383. --disable-option-checking ignore unrecognized --enable/--with options
  1384. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1385. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1386. --enable-shared[=PKGS] build shared libraries [default=yes]
  1387. --enable-static[=PKGS] build static libraries [default=yes]
  1388. --enable-fast-install[=PKGS]
  1389. optimize for fast installation [default=yes]
  1390. --disable-libtool-lock avoid locking (might break parallel builds)
  1391. --disable-dependency-tracking speeds up one-time build
  1392. --enable-dependency-tracking do not reject slow dependency extractors
  1393. --enable-debug Turn on debugging including asserts [default=no]
  1394. --enable-lubheap Replace standard memory libaries with lubheap
  1395. (EXPERIMENTAL) [default=no]
  1396. --enable-gpl Link with GPL licenced libraries [default=yes]
  1397. Optional Packages:
  1398. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1399. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1400. --with-pic try to use only PIC/non-PIC objects [default=use
  1401. both]
  1402. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1403. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1404. --with-rt=DIR Use POSIX real time library distribution in DIR
  1405. --with-tcl=DIR Use TCL library distribution in DIR
  1406. Some influential environment variables:
  1407. CC C compiler command
  1408. CFLAGS C compiler flags
  1409. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1410. nonstandard directory <lib dir>
  1411. LIBS libraries to pass to the linker, e.g. -l<library>
  1412. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1413. you have headers in a nonstandard directory <include dir>
  1414. CXX C++ compiler command
  1415. CXXFLAGS C++ compiler flags
  1416. CPP C preprocessor
  1417. CXXCPP C++ preprocessor
  1418. Use these variables to override the choices made by `configure' or to help
  1419. it to find libraries and programs with nonstandard names/locations.
  1420. Report bugs to <serj.kalichev at gmail dot com>.
  1421. _ACEOF
  1422. ac_status=$?
  1423. fi
  1424. if test "$ac_init_help" = "recursive"; then
  1425. # If there are subdirs, report their specific --help.
  1426. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1427. test -d "$ac_dir" ||
  1428. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1429. continue
  1430. ac_builddir=.
  1431. case "$ac_dir" in
  1432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433. *)
  1434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1435. # A ".." for each directory in $ac_dir_suffix.
  1436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1437. case $ac_top_builddir_sub in
  1438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1440. esac ;;
  1441. esac
  1442. ac_abs_top_builddir=$ac_pwd
  1443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1444. # for backward compatibility:
  1445. ac_top_builddir=$ac_top_build_prefix
  1446. case $srcdir in
  1447. .) # We are building in place.
  1448. ac_srcdir=.
  1449. ac_top_srcdir=$ac_top_builddir_sub
  1450. ac_abs_top_srcdir=$ac_pwd ;;
  1451. [\\/]* | ?:[\\/]* ) # Absolute name.
  1452. ac_srcdir=$srcdir$ac_dir_suffix;
  1453. ac_top_srcdir=$srcdir
  1454. ac_abs_top_srcdir=$srcdir ;;
  1455. *) # Relative name.
  1456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1459. esac
  1460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1461. cd "$ac_dir" || { ac_status=$?; continue; }
  1462. # Check for guested configure.
  1463. if test -f "$ac_srcdir/configure.gnu"; then
  1464. echo &&
  1465. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1466. elif test -f "$ac_srcdir/configure"; then
  1467. echo &&
  1468. $SHELL "$ac_srcdir/configure" --help=recursive
  1469. else
  1470. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1471. fi || ac_status=$?
  1472. cd "$ac_pwd" || { ac_status=$?; break; }
  1473. done
  1474. fi
  1475. test -n "$ac_init_help" && exit $ac_status
  1476. if $ac_init_version; then
  1477. cat <<\_ACEOF
  1478. clish configure 1.3.0
  1479. generated by GNU Autoconf 2.64
  1480. Copyright (C) 2009 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. ## ------------------------ ##
  1487. ## Autoconf initialization. ##
  1488. ## ------------------------ ##
  1489. # ac_fn_c_try_compile LINENO
  1490. # --------------------------
  1491. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_compile ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext
  1496. if { { ac_try="$ac_compile"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_compile") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest.$ac_objext; then :
  1515. ac_retval=0
  1516. else
  1517. $as_echo "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1522. return $ac_retval
  1523. } # ac_fn_c_try_compile
  1524. # ac_fn_cxx_try_compile LINENO
  1525. # ----------------------------
  1526. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1527. ac_fn_cxx_try_compile ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. rm -f conftest.$ac_objext
  1531. if { { ac_try="$ac_compile"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_compile") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && {
  1547. test -z "$ac_cxx_werror_flag" ||
  1548. test ! -s conftest.err
  1549. } && test -s conftest.$ac_objext; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1557. return $ac_retval
  1558. } # ac_fn_cxx_try_compile
  1559. # ac_fn_c_try_link LINENO
  1560. # -----------------------
  1561. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_link ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext conftest$ac_exeext
  1566. if { { ac_try="$ac_link"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_link") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest$ac_exeext && {
  1585. test "$cross_compiling" = yes ||
  1586. $as_test_x conftest$ac_exeext
  1587. }; then :
  1588. ac_retval=0
  1589. else
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=1
  1593. fi
  1594. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1595. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1596. # interfere with the next link command; also delete a directory that is
  1597. # left behind by Apple's compiler. We do this before executing the actions.
  1598. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1599. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1600. return $ac_retval
  1601. } # ac_fn_c_try_link
  1602. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1603. # -------------------------------------------------------
  1604. # Tests whether HEADER exists and can be compiled using the include files in
  1605. # INCLUDES, setting the cache variable VAR accordingly.
  1606. ac_fn_c_check_header_compile ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1610. $as_echo_n "checking for $2... " >&6; }
  1611. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1612. $as_echo_n "(cached) " >&6
  1613. else
  1614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1615. /* end confdefs.h. */
  1616. $4
  1617. #include <$2>
  1618. _ACEOF
  1619. if ac_fn_c_try_compile "$LINENO"; then :
  1620. eval "$3=yes"
  1621. else
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1625. fi
  1626. eval ac_res=\$$3
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1628. $as_echo "$ac_res" >&6; }
  1629. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1630. } # ac_fn_c_check_header_compile
  1631. # ac_fn_c_try_cpp LINENO
  1632. # ----------------------
  1633. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1634. ac_fn_c_try_cpp ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1638. case "(($ac_try" in
  1639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640. *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1645. ac_status=$?
  1646. if test -s conftest.err; then
  1647. grep -v '^ *+' conftest.err >conftest.er1
  1648. cat conftest.er1 >&5
  1649. mv -f conftest.er1 conftest.err
  1650. fi
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; } >/dev/null && {
  1653. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1654. test ! -s conftest.err
  1655. }; then :
  1656. ac_retval=0
  1657. else
  1658. $as_echo "$as_me: failed program was:" >&5
  1659. sed 's/^/| /' conftest.$ac_ext >&5
  1660. ac_retval=1
  1661. fi
  1662. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1663. return $ac_retval
  1664. } # ac_fn_c_try_cpp
  1665. # ac_fn_c_try_run LINENO
  1666. # ----------------------
  1667. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1668. # that executables *can* be run.
  1669. ac_fn_c_try_run ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_link"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_link") 2>&5
  1680. ac_status=$?
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1683. { { case "(($ac_try" in
  1684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1685. *) ac_try_echo=$ac_try;;
  1686. esac
  1687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1688. $as_echo "$ac_try_echo"; } >&5
  1689. (eval "$ac_try") 2>&5
  1690. ac_status=$?
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; }; }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: program exited with status $ac_status" >&5
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=$ac_status
  1699. fi
  1700. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1702. return $ac_retval
  1703. } # ac_fn_c_try_run
  1704. # ac_fn_c_check_func LINENO FUNC VAR
  1705. # ----------------------------------
  1706. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1707. ac_fn_c_check_func ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1711. $as_echo_n "checking for $2... " >&6; }
  1712. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1713. $as_echo_n "(cached) " >&6
  1714. else
  1715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1716. /* end confdefs.h. */
  1717. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1719. #define $2 innocuous_$2
  1720. /* System header to define __stub macros and hopefully few prototypes,
  1721. which can conflict with char $2 (); below.
  1722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1723. <limits.h> exists even on freestanding compilers. */
  1724. #ifdef __STDC__
  1725. # include <limits.h>
  1726. #else
  1727. # include <assert.h>
  1728. #endif
  1729. #undef $2
  1730. /* Override any GCC internal prototype to avoid an error.
  1731. Use char because int might match the return type of a GCC
  1732. builtin and then its argument prototype would still apply. */
  1733. #ifdef __cplusplus
  1734. extern "C"
  1735. #endif
  1736. char $2 ();
  1737. /* The GNU C library defines this for functions which it implements
  1738. to always fail with ENOSYS. Some functions are actually named
  1739. something starting with __ and the normal name is an alias. */
  1740. #if defined __stub_$2 || defined __stub___$2
  1741. choke me
  1742. #endif
  1743. int
  1744. main ()
  1745. {
  1746. return $2 ();
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. if ac_fn_c_try_link "$LINENO"; then :
  1752. eval "$3=yes"
  1753. else
  1754. eval "$3=no"
  1755. fi
  1756. rm -f core conftest.err conftest.$ac_objext \
  1757. conftest$ac_exeext conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1763. } # ac_fn_c_check_func
  1764. # ac_fn_cxx_try_cpp LINENO
  1765. # ------------------------
  1766. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1767. ac_fn_cxx_try_cpp ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. $as_echo "$ac_try_echo"; } >&5
  1777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } >/dev/null && {
  1786. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1787. test ! -s conftest.err
  1788. }; then :
  1789. ac_retval=0
  1790. else
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1796. return $ac_retval
  1797. } # ac_fn_cxx_try_cpp
  1798. # ac_fn_cxx_try_link LINENO
  1799. # -------------------------
  1800. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_cxx_try_link ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest$ac_exeext
  1805. if { { ac_try="$ac_link"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_link") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_cxx_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest$ac_exeext && {
  1824. test "$cross_compiling" = yes ||
  1825. $as_test_x conftest$ac_exeext
  1826. }; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1834. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1835. # interfere with the next link command; also delete a directory that is
  1836. # left behind by Apple's compiler. We do this before executing the actions.
  1837. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1838. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1839. return $ac_retval
  1840. } # ac_fn_cxx_try_link
  1841. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1842. # --------------------------------------------
  1843. # Tries to find the compile-time value of EXPR in a program that includes
  1844. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1845. # computed
  1846. ac_fn_c_compute_int ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if test "$cross_compiling" = yes; then
  1850. # Depending upon the size, compute the lo and hi bounds.
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. $4
  1854. int
  1855. main ()
  1856. {
  1857. static int test_array [1 - 2 * !(($2) >= 0)];
  1858. test_array [0] = 0
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"; then :
  1864. ac_lo=0 ac_mid=0
  1865. while :; do
  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) <= $ac_mid)];
  1873. test_array [0] = 0
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_c_try_compile "$LINENO"; then :
  1879. ac_hi=$ac_mid; break
  1880. else
  1881. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1882. if test $ac_lo -le $ac_mid; then
  1883. ac_lo= ac_hi=
  1884. break
  1885. fi
  1886. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1889. done
  1890. else
  1891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1892. /* end confdefs.h. */
  1893. $4
  1894. int
  1895. main ()
  1896. {
  1897. static int test_array [1 - 2 * !(($2) < 0)];
  1898. test_array [0] = 0
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. if ac_fn_c_try_compile "$LINENO"; then :
  1904. ac_hi=-1 ac_mid=-1
  1905. while :; do
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h. */
  1908. $4
  1909. int
  1910. main ()
  1911. {
  1912. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1913. test_array [0] = 0
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. ac_lo=$ac_mid; break
  1920. else
  1921. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1922. if test $ac_mid -le $ac_hi; then
  1923. ac_lo= ac_hi=
  1924. break
  1925. fi
  1926. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1927. fi
  1928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1929. done
  1930. else
  1931. ac_lo= ac_hi=
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1936. # Binary search between lo and hi bounds.
  1937. while test "x$ac_lo" != "x$ac_hi"; do
  1938. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1940. /* end confdefs.h. */
  1941. $4
  1942. int
  1943. main ()
  1944. {
  1945. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1946. test_array [0] = 0
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. ac_hi=$ac_mid
  1953. else
  1954. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1957. done
  1958. case $ac_lo in #((
  1959. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1960. '') ac_retval=1 ;;
  1961. esac
  1962. else
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $4
  1966. static long int longval () { return $2; }
  1967. static unsigned long int ulongval () { return $2; }
  1968. #include <stdio.h>
  1969. #include <stdlib.h>
  1970. int
  1971. main ()
  1972. {
  1973. FILE *f = fopen ("conftest.val", "w");
  1974. if (! f)
  1975. return 1;
  1976. if (($2) < 0)
  1977. {
  1978. long int i = longval ();
  1979. if (i != ($2))
  1980. return 1;
  1981. fprintf (f, "%ld", i);
  1982. }
  1983. else
  1984. {
  1985. unsigned long int i = ulongval ();
  1986. if (i != ($2))
  1987. return 1;
  1988. fprintf (f, "%lu", i);
  1989. }
  1990. /* Do not output a trailing newline, as this causes \r\n confusion
  1991. on some platforms. */
  1992. return ferror (f) || fclose (f) != 0;
  1993. ;
  1994. return 0;
  1995. }
  1996. _ACEOF
  1997. if ac_fn_c_try_run "$LINENO"; then :
  1998. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1999. else
  2000. ac_retval=1
  2001. fi
  2002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2003. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2004. rm -f conftest.val
  2005. fi
  2006. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2007. return $ac_retval
  2008. } # ac_fn_c_compute_int
  2009. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2010. # -------------------------------------------------------
  2011. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2012. # the include files in INCLUDES and setting the cache variable VAR
  2013. # accordingly.
  2014. ac_fn_c_check_header_mongrel ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2019. $as_echo_n "checking for $2... " >&6; }
  2020. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2021. $as_echo_n "(cached) " >&6
  2022. fi
  2023. eval ac_res=\$$3
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2025. $as_echo "$ac_res" >&6; }
  2026. else
  2027. # Is the header compilable?
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2029. $as_echo_n "checking $2 usability... " >&6; }
  2030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2031. /* end confdefs.h. */
  2032. $4
  2033. #include <$2>
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. ac_header_compiler=yes
  2037. else
  2038. ac_header_compiler=no
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2042. $as_echo "$ac_header_compiler" >&6; }
  2043. # Is the header present?
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2045. $as_echo_n "checking $2 presence... " >&6; }
  2046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h. */
  2048. #include <$2>
  2049. _ACEOF
  2050. if ac_fn_c_try_cpp "$LINENO"; then :
  2051. ac_header_preproc=yes
  2052. else
  2053. ac_header_preproc=no
  2054. fi
  2055. rm -f conftest.err conftest.$ac_ext
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2057. $as_echo "$ac_header_preproc" >&6; }
  2058. # So? What about this header?
  2059. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2060. yes:no: )
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2062. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2064. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2065. ;;
  2066. no:yes:* )
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2068. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2070. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2072. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2074. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2076. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2077. ( cat <<\_ASBOX
  2078. ## --------------------------------------------- ##
  2079. ## Report this to serj.kalichev at gmail dot com ##
  2080. ## --------------------------------------------- ##
  2081. _ASBOX
  2082. ) | sed "s/^/$as_me: WARNING: /" >&2
  2083. ;;
  2084. esac
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2086. $as_echo_n "checking for $2... " >&6; }
  2087. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2088. $as_echo_n "(cached) " >&6
  2089. else
  2090. eval "$3=\$ac_header_compiler"
  2091. fi
  2092. eval ac_res=\$$3
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2094. $as_echo "$ac_res" >&6; }
  2095. fi
  2096. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2097. } # ac_fn_c_check_header_mongrel
  2098. cat >config.log <<_ACEOF
  2099. This file contains any messages produced by compilers while
  2100. running configure, to aid debugging if configure makes a mistake.
  2101. It was created by clish $as_me 1.3.0, which was
  2102. generated by GNU Autoconf 2.64. Invocation command line was
  2103. $ $0 $@
  2104. _ACEOF
  2105. exec 5>>config.log
  2106. {
  2107. cat <<_ASUNAME
  2108. ## --------- ##
  2109. ## Platform. ##
  2110. ## --------- ##
  2111. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2112. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2113. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2114. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2115. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2116. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2117. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2118. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2119. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2120. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2121. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2122. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2123. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2124. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2125. _ASUNAME
  2126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2127. for as_dir in $PATH
  2128. do
  2129. IFS=$as_save_IFS
  2130. test -z "$as_dir" && as_dir=.
  2131. $as_echo "PATH: $as_dir"
  2132. done
  2133. IFS=$as_save_IFS
  2134. } >&5
  2135. cat >&5 <<_ACEOF
  2136. ## ----------- ##
  2137. ## Core tests. ##
  2138. ## ----------- ##
  2139. _ACEOF
  2140. # Keep a trace of the command line.
  2141. # Strip out --no-create and --no-recursion so they do not pile up.
  2142. # Strip out --silent because we don't want to record it for future runs.
  2143. # Also quote any args containing shell meta-characters.
  2144. # Make two passes to allow for proper duplicate-argument suppression.
  2145. ac_configure_args=
  2146. ac_configure_args0=
  2147. ac_configure_args1=
  2148. ac_must_keep_next=false
  2149. for ac_pass in 1 2
  2150. do
  2151. for ac_arg
  2152. do
  2153. case $ac_arg in
  2154. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2155. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2156. | -silent | --silent | --silen | --sile | --sil)
  2157. continue ;;
  2158. *\'*)
  2159. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2160. esac
  2161. case $ac_pass in
  2162. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2163. 2)
  2164. as_fn_append ac_configure_args1 " '$ac_arg'"
  2165. if test $ac_must_keep_next = true; then
  2166. ac_must_keep_next=false # Got value, back to normal.
  2167. else
  2168. case $ac_arg in
  2169. *=* | --config-cache | -C | -disable-* | --disable-* \
  2170. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2171. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2172. | -with-* | --with-* | -without-* | --without-* | --x)
  2173. case "$ac_configure_args0 " in
  2174. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2175. esac
  2176. ;;
  2177. -* ) ac_must_keep_next=true ;;
  2178. esac
  2179. fi
  2180. as_fn_append ac_configure_args " '$ac_arg'"
  2181. ;;
  2182. esac
  2183. done
  2184. done
  2185. { ac_configure_args0=; unset ac_configure_args0;}
  2186. { ac_configure_args1=; unset ac_configure_args1;}
  2187. # When interrupted or exit'd, cleanup temporary files, and complete
  2188. # config.log. We remove comments because anyway the quotes in there
  2189. # would cause problems or look ugly.
  2190. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2191. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2192. trap 'exit_status=$?
  2193. # Save into config.log some information that might help in debugging.
  2194. {
  2195. echo
  2196. cat <<\_ASBOX
  2197. ## ---------------- ##
  2198. ## Cache variables. ##
  2199. ## ---------------- ##
  2200. _ASBOX
  2201. echo
  2202. # The following way of writing the cache mishandles newlines in values,
  2203. (
  2204. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2205. eval ac_val=\$$ac_var
  2206. case $ac_val in #(
  2207. *${as_nl}*)
  2208. case $ac_var in #(
  2209. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2210. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2211. esac
  2212. case $ac_var in #(
  2213. _ | IFS | as_nl) ;; #(
  2214. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2215. *) { eval $ac_var=; unset $ac_var;} ;;
  2216. esac ;;
  2217. esac
  2218. done
  2219. (set) 2>&1 |
  2220. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2221. *${as_nl}ac_space=\ *)
  2222. sed -n \
  2223. "s/'\''/'\''\\\\'\'''\''/g;
  2224. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2225. ;; #(
  2226. *)
  2227. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2228. ;;
  2229. esac |
  2230. sort
  2231. )
  2232. echo
  2233. cat <<\_ASBOX
  2234. ## ----------------- ##
  2235. ## Output variables. ##
  2236. ## ----------------- ##
  2237. _ASBOX
  2238. echo
  2239. for ac_var in $ac_subst_vars
  2240. do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in
  2243. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2244. esac
  2245. $as_echo "$ac_var='\''$ac_val'\''"
  2246. done | sort
  2247. echo
  2248. if test -n "$ac_subst_files"; then
  2249. cat <<\_ASBOX
  2250. ## ------------------- ##
  2251. ## File substitutions. ##
  2252. ## ------------------- ##
  2253. _ASBOX
  2254. echo
  2255. for ac_var in $ac_subst_files
  2256. do
  2257. eval ac_val=\$$ac_var
  2258. case $ac_val in
  2259. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2260. esac
  2261. $as_echo "$ac_var='\''$ac_val'\''"
  2262. done | sort
  2263. echo
  2264. fi
  2265. if test -s confdefs.h; then
  2266. cat <<\_ASBOX
  2267. ## ----------- ##
  2268. ## confdefs.h. ##
  2269. ## ----------- ##
  2270. _ASBOX
  2271. echo
  2272. cat confdefs.h
  2273. echo
  2274. fi
  2275. test "$ac_signal" != 0 &&
  2276. $as_echo "$as_me: caught signal $ac_signal"
  2277. $as_echo "$as_me: exit $exit_status"
  2278. } >&5
  2279. rm -f core *.core core.conftest.* &&
  2280. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2281. exit $exit_status
  2282. ' 0
  2283. for ac_signal in 1 2 13 15; do
  2284. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2285. done
  2286. ac_signal=0
  2287. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2288. rm -f -r conftest* confdefs.h
  2289. $as_echo "/* confdefs.h */" > confdefs.h
  2290. # Predefined preprocessor variables.
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_NAME "$PACKAGE_NAME"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2296. _ACEOF
  2297. cat >>confdefs.h <<_ACEOF
  2298. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2299. _ACEOF
  2300. cat >>confdefs.h <<_ACEOF
  2301. #define PACKAGE_STRING "$PACKAGE_STRING"
  2302. _ACEOF
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2305. _ACEOF
  2306. cat >>confdefs.h <<_ACEOF
  2307. #define PACKAGE_URL "$PACKAGE_URL"
  2308. _ACEOF
  2309. # Let the site file select an alternate cache file if it wants to.
  2310. # Prefer an explicitly selected file to automatically selected ones.
  2311. ac_site_file1=NONE
  2312. ac_site_file2=NONE
  2313. if test -n "$CONFIG_SITE"; then
  2314. ac_site_file1=$CONFIG_SITE
  2315. elif test "x$prefix" != xNONE; then
  2316. ac_site_file1=$prefix/share/config.site
  2317. ac_site_file2=$prefix/etc/config.site
  2318. else
  2319. ac_site_file1=$ac_default_prefix/share/config.site
  2320. ac_site_file2=$ac_default_prefix/etc/config.site
  2321. fi
  2322. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2323. do
  2324. test "x$ac_site_file" = xNONE && continue
  2325. if test -r "$ac_site_file"; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2327. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2328. sed 's/^/| /' "$ac_site_file" >&5
  2329. . "$ac_site_file"
  2330. fi
  2331. done
  2332. if test -r "$cache_file"; then
  2333. # Some versions of bash will fail to source /dev/null (special
  2334. # files actually), so we avoid doing that.
  2335. if test -f "$cache_file"; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2337. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2338. case $cache_file in
  2339. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2340. *) . "./$cache_file";;
  2341. esac
  2342. fi
  2343. else
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2345. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2346. >$cache_file
  2347. fi
  2348. # Check that the precious variables saved in the cache have kept the same
  2349. # value.
  2350. ac_cache_corrupted=false
  2351. for ac_var in $ac_precious_vars; do
  2352. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2353. eval ac_new_set=\$ac_env_${ac_var}_set
  2354. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2355. eval ac_new_val=\$ac_env_${ac_var}_value
  2356. case $ac_old_set,$ac_new_set in
  2357. set,)
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2359. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2360. ac_cache_corrupted=: ;;
  2361. ,set)
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2363. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2364. ac_cache_corrupted=: ;;
  2365. ,);;
  2366. *)
  2367. if test "x$ac_old_val" != "x$ac_new_val"; then
  2368. # differences in whitespace do not lead to failure.
  2369. ac_old_val_w=`echo x $ac_old_val`
  2370. ac_new_val_w=`echo x $ac_new_val`
  2371. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2373. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2374. ac_cache_corrupted=:
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2377. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2378. eval $ac_var=\$ac_old_val
  2379. fi
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2381. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2383. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2384. fi;;
  2385. esac
  2386. # Pass precious variables to config.status.
  2387. if test "$ac_new_set" = set; then
  2388. case $ac_new_val in
  2389. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2390. *) ac_arg=$ac_var=$ac_new_val ;;
  2391. esac
  2392. case " $ac_configure_args " in
  2393. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2394. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2395. esac
  2396. fi
  2397. done
  2398. if $ac_cache_corrupted; then
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2402. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2403. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2404. fi
  2405. ## -------------------- ##
  2406. ## Main body of script. ##
  2407. ## -------------------- ##
  2408. ac_ext=c
  2409. ac_cpp='$CPP $CPPFLAGS'
  2410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2413. ac_aux_dir=
  2414. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2415. for ac_t in install-sh install.sh shtool; do
  2416. if test -f "$ac_dir/$ac_t"; then
  2417. ac_aux_dir=$ac_dir
  2418. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. if test -z "$ac_aux_dir"; then
  2424. as_fn_error "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2425. fi
  2426. # These three variables are undocumented and unsupported,
  2427. # and are intended to be withdrawn in a future Autoconf release.
  2428. # They can cause serious problems if a builder's source tree is in a directory
  2429. # whose full name contains unusual characters.
  2430. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2431. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2432. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2433. # Checks for programs.
  2434. ac_ext=c
  2435. ac_cpp='$CPP $CPPFLAGS'
  2436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2439. if test -n "$ac_tool_prefix"; then
  2440. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2441. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2443. $as_echo_n "checking for $ac_word... " >&6; }
  2444. if test "${ac_cv_prog_CC+set}" = set; then :
  2445. $as_echo_n "(cached) " >&6
  2446. else
  2447. if test -n "$CC"; then
  2448. ac_cv_prog_CC="$CC" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. CC=$ac_cv_prog_CC
  2467. if test -n "$CC"; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2469. $as_echo "$CC" >&6; }
  2470. else
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. fi
  2474. fi
  2475. if test -z "$ac_cv_prog_CC"; then
  2476. ac_ct_CC=$CC
  2477. # Extract the first word of "gcc", so it can be a program name with args.
  2478. set dummy gcc; ac_word=$2
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2480. $as_echo_n "checking for $ac_word... " >&6; }
  2481. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2482. $as_echo_n "(cached) " >&6
  2483. else
  2484. if test -n "$ac_ct_CC"; then
  2485. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2486. else
  2487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2488. for as_dir in $PATH
  2489. do
  2490. IFS=$as_save_IFS
  2491. test -z "$as_dir" && as_dir=.
  2492. for ac_exec_ext in '' $ac_executable_extensions; do
  2493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2494. ac_cv_prog_ac_ct_CC="gcc"
  2495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2496. break 2
  2497. fi
  2498. done
  2499. done
  2500. IFS=$as_save_IFS
  2501. fi
  2502. fi
  2503. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2504. if test -n "$ac_ct_CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2506. $as_echo "$ac_ct_CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. if test "x$ac_ct_CC" = x; then
  2512. CC=""
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2518. ac_tool_warned=yes ;;
  2519. esac
  2520. CC=$ac_ct_CC
  2521. fi
  2522. else
  2523. CC="$ac_cv_prog_CC"
  2524. fi
  2525. if test -z "$CC"; then
  2526. if test -n "$ac_tool_prefix"; then
  2527. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2528. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if test "${ac_cv_prog_CC+set}" = set; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$CC"; then
  2535. ac_cv_prog_CC="$CC" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2544. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. CC=$ac_cv_prog_CC
  2554. if test -n "$CC"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2556. $as_echo "$CC" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. fi
  2562. fi
  2563. if test -z "$CC"; then
  2564. # Extract the first word of "cc", so it can be a program name with args.
  2565. set dummy cc; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if test "${ac_cv_prog_CC+set}" = set; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$CC"; then
  2572. ac_cv_prog_CC="$CC" # Let the user override the test.
  2573. else
  2574. ac_prog_rejected=no
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2582. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2583. ac_prog_rejected=yes
  2584. continue
  2585. fi
  2586. ac_cv_prog_CC="cc"
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. if test $ac_prog_rejected = yes; then
  2594. # We found a bogon in the path, so make sure we never use it.
  2595. set dummy $ac_cv_prog_CC
  2596. shift
  2597. if test $# != 0; then
  2598. # We chose a different compiler from the bogus one.
  2599. # However, it has the same basename, so the bogon will be chosen
  2600. # first if we set CC to just the basename; use the full file name.
  2601. shift
  2602. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2603. fi
  2604. fi
  2605. fi
  2606. fi
  2607. CC=$ac_cv_prog_CC
  2608. if test -n "$CC"; then
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2610. $as_echo "$CC" >&6; }
  2611. else
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2613. $as_echo "no" >&6; }
  2614. fi
  2615. fi
  2616. if test -z "$CC"; then
  2617. if test -n "$ac_tool_prefix"; then
  2618. for ac_prog in cl.exe
  2619. do
  2620. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2621. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if test "${ac_cv_prog_CC+set}" = set; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$CC"; then
  2628. ac_cv_prog_CC="$CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2637. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. $as_echo "$CC" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. test -n "$CC" && break
  2655. done
  2656. fi
  2657. if test -z "$CC"; then
  2658. ac_ct_CC=$CC
  2659. for ac_prog in cl.exe
  2660. do
  2661. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2662. set dummy $ac_prog; ac_word=$2
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2664. $as_echo_n "checking for $ac_word... " >&6; }
  2665. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2666. $as_echo_n "(cached) " >&6
  2667. else
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. test -z "$as_dir" && as_dir=.
  2676. for ac_exec_ext in '' $ac_executable_extensions; do
  2677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2678. ac_cv_prog_ac_ct_CC="$ac_prog"
  2679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2680. break 2
  2681. fi
  2682. done
  2683. done
  2684. IFS=$as_save_IFS
  2685. fi
  2686. fi
  2687. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2688. if test -n "$ac_ct_CC"; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2690. $as_echo "$ac_ct_CC" >&6; }
  2691. else
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2693. $as_echo "no" >&6; }
  2694. fi
  2695. test -n "$ac_ct_CC" && break
  2696. done
  2697. if test "x$ac_ct_CC" = x; then
  2698. CC=""
  2699. else
  2700. case $cross_compiling:$ac_tool_warned in
  2701. yes:)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2704. ac_tool_warned=yes ;;
  2705. esac
  2706. CC=$ac_ct_CC
  2707. fi
  2708. fi
  2709. fi
  2710. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2711. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2712. as_fn_error "no acceptable C compiler found in \$PATH
  2713. See \`config.log' for more details." "$LINENO" 5; }
  2714. # Provide some information about the compiler.
  2715. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2716. set X $ac_compile
  2717. ac_compiler=$2
  2718. for ac_option in --version -v -V -qversion; do
  2719. { { ac_try="$ac_compiler $ac_option >&5"
  2720. case "(($ac_try" in
  2721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722. *) ac_try_echo=$ac_try;;
  2723. esac
  2724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2725. $as_echo "$ac_try_echo"; } >&5
  2726. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2727. ac_status=$?
  2728. if test -s conftest.err; then
  2729. sed '10a\
  2730. ... rest of stderr output deleted ...
  2731. 10q' conftest.err >conftest.er1
  2732. cat conftest.er1 >&5
  2733. rm -f conftest.er1 conftest.err
  2734. fi
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2736. test $ac_status = 0; }
  2737. done
  2738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2739. /* end confdefs.h. */
  2740. #include <stdio.h>
  2741. int
  2742. main ()
  2743. {
  2744. FILE *f = fopen ("conftest.out", "w");
  2745. return ferror (f) || fclose (f) != 0;
  2746. ;
  2747. return 0;
  2748. }
  2749. _ACEOF
  2750. ac_clean_files_save=$ac_clean_files
  2751. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2752. # Try to create an executable without -o first, disregard a.out.
  2753. # It will help us diagnose broken compilers, and finding out an intuition
  2754. # of exeext.
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2756. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2757. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2758. # The possible output files:
  2759. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2760. ac_rmfiles=
  2761. for ac_file in $ac_files
  2762. do
  2763. case $ac_file in
  2764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2765. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2766. esac
  2767. done
  2768. rm -f $ac_rmfiles
  2769. if { { ac_try="$ac_link_default"
  2770. case "(($ac_try" in
  2771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2772. *) ac_try_echo=$ac_try;;
  2773. esac
  2774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2775. $as_echo "$ac_try_echo"; } >&5
  2776. (eval "$ac_link_default") 2>&5
  2777. ac_status=$?
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2779. test $ac_status = 0; }; then :
  2780. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2781. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2782. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2783. # so that the user can short-circuit this test for compilers unknown to
  2784. # Autoconf.
  2785. for ac_file in $ac_files ''
  2786. do
  2787. test -f "$ac_file" || continue
  2788. case $ac_file in
  2789. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2790. ;;
  2791. [ab].out )
  2792. # We found the default executable, but exeext='' is most
  2793. # certainly right.
  2794. break;;
  2795. *.* )
  2796. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2797. then :; else
  2798. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2799. fi
  2800. # We set ac_cv_exeext here because the later test for it is not
  2801. # safe: cross compilers may not add the suffix if given an `-o'
  2802. # argument, so we may need to know it at that point already.
  2803. # Even if this section looks crufty: it has the advantage of
  2804. # actually working.
  2805. break;;
  2806. * )
  2807. break;;
  2808. esac
  2809. done
  2810. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2811. else
  2812. ac_file=''
  2813. fi
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2815. $as_echo "$ac_file" >&6; }
  2816. if test -z "$ac_file"; then :
  2817. $as_echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2820. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2821. { as_fn_set_status 77
  2822. as_fn_error "C compiler cannot create executables
  2823. See \`config.log' for more details." "$LINENO" 5; }; }
  2824. fi
  2825. ac_exeext=$ac_cv_exeext
  2826. # Check that the compiler produces executables we can run. If not, either
  2827. # the compiler is broken, or we cross compile.
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2829. $as_echo_n "checking whether the C compiler works... " >&6; }
  2830. # If not cross compiling, check that we can run a simple program.
  2831. if test "$cross_compiling" != yes; then
  2832. if { ac_try='./$ac_file'
  2833. { { case "(($ac_try" in
  2834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2835. *) ac_try_echo=$ac_try;;
  2836. esac
  2837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2838. $as_echo "$ac_try_echo"; } >&5
  2839. (eval "$ac_try") 2>&5
  2840. ac_status=$?
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2842. test $ac_status = 0; }; }; then
  2843. cross_compiling=no
  2844. else
  2845. if test "$cross_compiling" = maybe; then
  2846. cross_compiling=yes
  2847. else
  2848. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2850. as_fn_error "cannot run C compiled programs.
  2851. If you meant to cross compile, use \`--host'.
  2852. See \`config.log' for more details." "$LINENO" 5; }
  2853. fi
  2854. fi
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2857. $as_echo "yes" >&6; }
  2858. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2859. ac_clean_files=$ac_clean_files_save
  2860. # Check that the compiler produces executables we can run. If not, either
  2861. # the compiler is broken, or we cross compile.
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2863. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2865. $as_echo "$cross_compiling" >&6; }
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2867. $as_echo_n "checking for suffix of executables... " >&6; }
  2868. if { { ac_try="$ac_link"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_link") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }; then :
  2879. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2880. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2881. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2882. # `rm'.
  2883. for ac_file in conftest.exe conftest conftest.*; do
  2884. test -f "$ac_file" || continue
  2885. case $ac_file in
  2886. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2887. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2888. break;;
  2889. * ) break;;
  2890. esac
  2891. done
  2892. else
  2893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2895. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2896. See \`config.log' for more details." "$LINENO" 5; }
  2897. fi
  2898. rm -f conftest$ac_cv_exeext
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2900. $as_echo "$ac_cv_exeext" >&6; }
  2901. rm -f conftest.$ac_ext
  2902. EXEEXT=$ac_cv_exeext
  2903. ac_exeext=$EXEEXT
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2905. $as_echo_n "checking for suffix of object files... " >&6; }
  2906. if test "${ac_cv_objext+set}" = set; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. int
  2912. main ()
  2913. {
  2914. ;
  2915. return 0;
  2916. }
  2917. _ACEOF
  2918. rm -f conftest.o conftest.obj
  2919. if { { ac_try="$ac_compile"
  2920. case "(($ac_try" in
  2921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2922. *) ac_try_echo=$ac_try;;
  2923. esac
  2924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2925. $as_echo "$ac_try_echo"; } >&5
  2926. (eval "$ac_compile") 2>&5
  2927. ac_status=$?
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2929. test $ac_status = 0; }; then :
  2930. for ac_file in conftest.o conftest.obj conftest.*; do
  2931. test -f "$ac_file" || continue;
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2934. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2935. break;;
  2936. esac
  2937. done
  2938. else
  2939. $as_echo "$as_me: failed program was:" >&5
  2940. sed 's/^/| /' conftest.$ac_ext >&5
  2941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2943. as_fn_error "cannot compute suffix of object files: cannot compile
  2944. See \`config.log' for more details." "$LINENO" 5; }
  2945. fi
  2946. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2947. fi
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2949. $as_echo "$ac_cv_objext" >&6; }
  2950. OBJEXT=$ac_cv_objext
  2951. ac_objext=$OBJEXT
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2953. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2954. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2958. /* end confdefs.h. */
  2959. int
  2960. main ()
  2961. {
  2962. #ifndef __GNUC__
  2963. choke me
  2964. #endif
  2965. ;
  2966. return 0;
  2967. }
  2968. _ACEOF
  2969. if ac_fn_c_try_compile "$LINENO"; then :
  2970. ac_compiler_gnu=yes
  2971. else
  2972. ac_compiler_gnu=no
  2973. fi
  2974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2975. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2976. fi
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2978. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2979. if test $ac_compiler_gnu = yes; then
  2980. GCC=yes
  2981. else
  2982. GCC=
  2983. fi
  2984. ac_test_CFLAGS=${CFLAGS+set}
  2985. ac_save_CFLAGS=$CFLAGS
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2987. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2988. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2989. $as_echo_n "(cached) " >&6
  2990. else
  2991. ac_save_c_werror_flag=$ac_c_werror_flag
  2992. ac_c_werror_flag=yes
  2993. ac_cv_prog_cc_g=no
  2994. CFLAGS="-g"
  2995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2996. /* end confdefs.h. */
  2997. int
  2998. main ()
  2999. {
  3000. ;
  3001. return 0;
  3002. }
  3003. _ACEOF
  3004. if ac_fn_c_try_compile "$LINENO"; then :
  3005. ac_cv_prog_cc_g=yes
  3006. else
  3007. CFLAGS=""
  3008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3009. /* end confdefs.h. */
  3010. int
  3011. main ()
  3012. {
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. if ac_fn_c_try_compile "$LINENO"; then :
  3018. else
  3019. ac_c_werror_flag=$ac_save_c_werror_flag
  3020. CFLAGS="-g"
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. if ac_fn_c_try_compile "$LINENO"; then :
  3031. ac_cv_prog_cc_g=yes
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3034. fi
  3035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3036. fi
  3037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3038. ac_c_werror_flag=$ac_save_c_werror_flag
  3039. fi
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3041. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3042. if test "$ac_test_CFLAGS" = set; then
  3043. CFLAGS=$ac_save_CFLAGS
  3044. elif test $ac_cv_prog_cc_g = yes; then
  3045. if test "$GCC" = yes; then
  3046. CFLAGS="-g -O2"
  3047. else
  3048. CFLAGS="-g"
  3049. fi
  3050. else
  3051. if test "$GCC" = yes; then
  3052. CFLAGS="-O2"
  3053. else
  3054. CFLAGS=
  3055. fi
  3056. fi
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3058. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3059. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3060. $as_echo_n "(cached) " >&6
  3061. else
  3062. ac_cv_prog_cc_c89=no
  3063. ac_save_CC=$CC
  3064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3065. /* end confdefs.h. */
  3066. #include <stdarg.h>
  3067. #include <stdio.h>
  3068. #include <sys/types.h>
  3069. #include <sys/stat.h>
  3070. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3071. struct buf { int x; };
  3072. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3073. static char *e (p, i)
  3074. char **p;
  3075. int i;
  3076. {
  3077. return p[i];
  3078. }
  3079. static char *f (char * (*g) (char **, int), char **p, ...)
  3080. {
  3081. char *s;
  3082. va_list v;
  3083. va_start (v,p);
  3084. s = g (p, va_arg (v,int));
  3085. va_end (v);
  3086. return s;
  3087. }
  3088. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3089. function prototypes and stuff, but not '\xHH' hex character constants.
  3090. These don't provoke an error unfortunately, instead are silently treated
  3091. as 'x'. The following induces an error, until -std is added to get
  3092. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3093. array size at least. It's necessary to write '\x00'==0 to get something
  3094. that's true only with -std. */
  3095. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3096. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3097. inside strings and character constants. */
  3098. #define FOO(x) 'x'
  3099. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3100. int test (int i, double x);
  3101. struct s1 {int (*f) (int a);};
  3102. struct s2 {int (*f) (double a);};
  3103. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3104. int argc;
  3105. char **argv;
  3106. int
  3107. main ()
  3108. {
  3109. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3115. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3116. do
  3117. CC="$ac_save_CC $ac_arg"
  3118. if ac_fn_c_try_compile "$LINENO"; then :
  3119. ac_cv_prog_cc_c89=$ac_arg
  3120. fi
  3121. rm -f core conftest.err conftest.$ac_objext
  3122. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3123. done
  3124. rm -f conftest.$ac_ext
  3125. CC=$ac_save_CC
  3126. fi
  3127. # AC_CACHE_VAL
  3128. case "x$ac_cv_prog_cc_c89" in
  3129. x)
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3131. $as_echo "none needed" >&6; } ;;
  3132. xno)
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3134. $as_echo "unsupported" >&6; } ;;
  3135. *)
  3136. CC="$CC $ac_cv_prog_cc_c89"
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3138. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3139. esac
  3140. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3141. fi
  3142. ac_ext=c
  3143. ac_cpp='$CPP $CPPFLAGS'
  3144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3147. ac_ext=cpp
  3148. ac_cpp='$CXXCPP $CPPFLAGS'
  3149. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3150. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3151. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3152. if test -z "$CXX"; then
  3153. if test -n "$CCC"; then
  3154. CXX=$CCC
  3155. else
  3156. if test -n "$ac_tool_prefix"; then
  3157. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3158. do
  3159. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3160. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3162. $as_echo_n "checking for $ac_word... " >&6; }
  3163. if test "${ac_cv_prog_CXX+set}" = set; then :
  3164. $as_echo_n "(cached) " >&6
  3165. else
  3166. if test -n "$CXX"; then
  3167. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3168. else
  3169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3170. for as_dir in $PATH
  3171. do
  3172. IFS=$as_save_IFS
  3173. test -z "$as_dir" && as_dir=.
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3176. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3178. break 2
  3179. fi
  3180. done
  3181. done
  3182. IFS=$as_save_IFS
  3183. fi
  3184. fi
  3185. CXX=$ac_cv_prog_CXX
  3186. if test -n "$CXX"; then
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3188. $as_echo "$CXX" >&6; }
  3189. else
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3191. $as_echo "no" >&6; }
  3192. fi
  3193. test -n "$CXX" && break
  3194. done
  3195. fi
  3196. if test -z "$CXX"; then
  3197. ac_ct_CXX=$CXX
  3198. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3199. do
  3200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3201. set dummy $ac_prog; ac_word=$2
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3203. $as_echo_n "checking for $ac_word... " >&6; }
  3204. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. if test -n "$ac_ct_CXX"; then
  3208. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3209. else
  3210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3211. for as_dir in $PATH
  3212. do
  3213. IFS=$as_save_IFS
  3214. test -z "$as_dir" && as_dir=.
  3215. for ac_exec_ext in '' $ac_executable_extensions; do
  3216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3217. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3219. break 2
  3220. fi
  3221. done
  3222. done
  3223. IFS=$as_save_IFS
  3224. fi
  3225. fi
  3226. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3227. if test -n "$ac_ct_CXX"; then
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3229. $as_echo "$ac_ct_CXX" >&6; }
  3230. else
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3232. $as_echo "no" >&6; }
  3233. fi
  3234. test -n "$ac_ct_CXX" && break
  3235. done
  3236. if test "x$ac_ct_CXX" = x; then
  3237. CXX="g++"
  3238. else
  3239. case $cross_compiling:$ac_tool_warned in
  3240. yes:)
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3242. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3243. ac_tool_warned=yes ;;
  3244. esac
  3245. CXX=$ac_ct_CXX
  3246. fi
  3247. fi
  3248. fi
  3249. fi
  3250. # Provide some information about the compiler.
  3251. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3252. set X $ac_compile
  3253. ac_compiler=$2
  3254. for ac_option in --version -v -V -qversion; do
  3255. { { ac_try="$ac_compiler $ac_option >&5"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3261. $as_echo "$ac_try_echo"; } >&5
  3262. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3263. ac_status=$?
  3264. if test -s conftest.err; then
  3265. sed '10a\
  3266. ... rest of stderr output deleted ...
  3267. 10q' conftest.err >conftest.er1
  3268. cat conftest.er1 >&5
  3269. rm -f conftest.er1 conftest.err
  3270. fi
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3272. test $ac_status = 0; }
  3273. done
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3275. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3276. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3280. /* end confdefs.h. */
  3281. int
  3282. main ()
  3283. {
  3284. #ifndef __GNUC__
  3285. choke me
  3286. #endif
  3287. ;
  3288. return 0;
  3289. }
  3290. _ACEOF
  3291. if ac_fn_cxx_try_compile "$LINENO"; then :
  3292. ac_compiler_gnu=yes
  3293. else
  3294. ac_compiler_gnu=no
  3295. fi
  3296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3297. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3298. fi
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3300. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3301. if test $ac_compiler_gnu = yes; then
  3302. GXX=yes
  3303. else
  3304. GXX=
  3305. fi
  3306. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3307. ac_save_CXXFLAGS=$CXXFLAGS
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3309. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3310. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3311. $as_echo_n "(cached) " >&6
  3312. else
  3313. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3314. ac_cxx_werror_flag=yes
  3315. ac_cv_prog_cxx_g=no
  3316. CXXFLAGS="-g"
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. int
  3320. main ()
  3321. {
  3322. ;
  3323. return 0;
  3324. }
  3325. _ACEOF
  3326. if ac_fn_cxx_try_compile "$LINENO"; then :
  3327. ac_cv_prog_cxx_g=yes
  3328. else
  3329. CXXFLAGS=""
  3330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3331. /* end confdefs.h. */
  3332. int
  3333. main ()
  3334. {
  3335. ;
  3336. return 0;
  3337. }
  3338. _ACEOF
  3339. if ac_fn_cxx_try_compile "$LINENO"; then :
  3340. else
  3341. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3342. CXXFLAGS="-g"
  3343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3344. /* end confdefs.h. */
  3345. int
  3346. main ()
  3347. {
  3348. ;
  3349. return 0;
  3350. }
  3351. _ACEOF
  3352. if ac_fn_cxx_try_compile "$LINENO"; then :
  3353. ac_cv_prog_cxx_g=yes
  3354. fi
  3355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. fi
  3357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. fi
  3359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3360. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3363. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3364. if test "$ac_test_CXXFLAGS" = set; then
  3365. CXXFLAGS=$ac_save_CXXFLAGS
  3366. elif test $ac_cv_prog_cxx_g = yes; then
  3367. if test "$GXX" = yes; then
  3368. CXXFLAGS="-g -O2"
  3369. else
  3370. CXXFLAGS="-g"
  3371. fi
  3372. else
  3373. if test "$GXX" = yes; then
  3374. CXXFLAGS="-O2"
  3375. else
  3376. CXXFLAGS=
  3377. fi
  3378. fi
  3379. ac_ext=c
  3380. ac_cpp='$CPP $CPPFLAGS'
  3381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3384. # Make sure we can run config.sub.
  3385. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3386. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3388. $as_echo_n "checking build system type... " >&6; }
  3389. if test "${ac_cv_build+set}" = set; then :
  3390. $as_echo_n "(cached) " >&6
  3391. else
  3392. ac_build_alias=$build_alias
  3393. test "x$ac_build_alias" = x &&
  3394. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3395. test "x$ac_build_alias" = x &&
  3396. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3397. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3398. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3401. $as_echo "$ac_cv_build" >&6; }
  3402. case $ac_cv_build in
  3403. *-*-*) ;;
  3404. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3405. esac
  3406. build=$ac_cv_build
  3407. ac_save_IFS=$IFS; IFS='-'
  3408. set x $ac_cv_build
  3409. shift
  3410. build_cpu=$1
  3411. build_vendor=$2
  3412. shift; shift
  3413. # Remember, the first character of IFS is used to create $*,
  3414. # except with old shells:
  3415. build_os=$*
  3416. IFS=$ac_save_IFS
  3417. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3419. $as_echo_n "checking host system type... " >&6; }
  3420. if test "${ac_cv_host+set}" = set; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. if test "x$host_alias" = x; then
  3424. ac_cv_host=$ac_cv_build
  3425. else
  3426. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3427. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3428. fi
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3431. $as_echo "$ac_cv_host" >&6; }
  3432. case $ac_cv_host in
  3433. *-*-*) ;;
  3434. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3435. esac
  3436. host=$ac_cv_host
  3437. ac_save_IFS=$IFS; IFS='-'
  3438. set x $ac_cv_host
  3439. shift
  3440. host_cpu=$1
  3441. host_vendor=$2
  3442. shift; shift
  3443. # Remember, the first character of IFS is used to create $*,
  3444. # except with old shells:
  3445. host_os=$*
  3446. IFS=$ac_save_IFS
  3447. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3448. enable_win32_dll=yes
  3449. case $host in
  3450. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3451. if test -n "$ac_tool_prefix"; then
  3452. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3453. set dummy ${ac_tool_prefix}as; ac_word=$2
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3455. $as_echo_n "checking for $ac_word... " >&6; }
  3456. if test "${ac_cv_prog_AS+set}" = set; then :
  3457. $as_echo_n "(cached) " >&6
  3458. else
  3459. if test -n "$AS"; then
  3460. ac_cv_prog_AS="$AS" # Let the user override the test.
  3461. else
  3462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3463. for as_dir in $PATH
  3464. do
  3465. IFS=$as_save_IFS
  3466. test -z "$as_dir" && as_dir=.
  3467. for ac_exec_ext in '' $ac_executable_extensions; do
  3468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3469. ac_cv_prog_AS="${ac_tool_prefix}as"
  3470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3471. break 2
  3472. fi
  3473. done
  3474. done
  3475. IFS=$as_save_IFS
  3476. fi
  3477. fi
  3478. AS=$ac_cv_prog_AS
  3479. if test -n "$AS"; then
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3481. $as_echo "$AS" >&6; }
  3482. else
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3484. $as_echo "no" >&6; }
  3485. fi
  3486. fi
  3487. if test -z "$ac_cv_prog_AS"; then
  3488. ac_ct_AS=$AS
  3489. # Extract the first word of "as", so it can be a program name with args.
  3490. set dummy as; ac_word=$2
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. $as_echo_n "checking for $ac_word... " >&6; }
  3493. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3494. $as_echo_n "(cached) " >&6
  3495. else
  3496. if test -n "$ac_ct_AS"; then
  3497. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3498. else
  3499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3500. for as_dir in $PATH
  3501. do
  3502. IFS=$as_save_IFS
  3503. test -z "$as_dir" && as_dir=.
  3504. for ac_exec_ext in '' $ac_executable_extensions; do
  3505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3506. ac_cv_prog_ac_ct_AS="as"
  3507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3508. break 2
  3509. fi
  3510. done
  3511. done
  3512. IFS=$as_save_IFS
  3513. fi
  3514. fi
  3515. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3516. if test -n "$ac_ct_AS"; then
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3518. $as_echo "$ac_ct_AS" >&6; }
  3519. else
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3521. $as_echo "no" >&6; }
  3522. fi
  3523. if test "x$ac_ct_AS" = x; then
  3524. AS="false"
  3525. else
  3526. case $cross_compiling:$ac_tool_warned in
  3527. yes:)
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3530. ac_tool_warned=yes ;;
  3531. esac
  3532. AS=$ac_ct_AS
  3533. fi
  3534. else
  3535. AS="$ac_cv_prog_AS"
  3536. fi
  3537. if test -n "$ac_tool_prefix"; then
  3538. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3539. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3541. $as_echo_n "checking for $ac_word... " >&6; }
  3542. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if test -n "$DLLTOOL"; then
  3546. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3547. else
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH
  3550. do
  3551. IFS=$as_save_IFS
  3552. test -z "$as_dir" && as_dir=.
  3553. for ac_exec_ext in '' $ac_executable_extensions; do
  3554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3555. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3557. break 2
  3558. fi
  3559. done
  3560. done
  3561. IFS=$as_save_IFS
  3562. fi
  3563. fi
  3564. DLLTOOL=$ac_cv_prog_DLLTOOL
  3565. if test -n "$DLLTOOL"; then
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3567. $as_echo "$DLLTOOL" >&6; }
  3568. else
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3570. $as_echo "no" >&6; }
  3571. fi
  3572. fi
  3573. if test -z "$ac_cv_prog_DLLTOOL"; then
  3574. ac_ct_DLLTOOL=$DLLTOOL
  3575. # Extract the first word of "dlltool", so it can be a program name with args.
  3576. set dummy dlltool; ac_word=$2
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. $as_echo_n "checking for $ac_word... " >&6; }
  3579. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. if test -n "$ac_ct_DLLTOOL"; then
  3583. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3584. else
  3585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3592. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. fi
  3600. fi
  3601. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3602. if test -n "$ac_ct_DLLTOOL"; then
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3604. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3605. else
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3607. $as_echo "no" >&6; }
  3608. fi
  3609. if test "x$ac_ct_DLLTOOL" = x; then
  3610. DLLTOOL="false"
  3611. else
  3612. case $cross_compiling:$ac_tool_warned in
  3613. yes:)
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3616. ac_tool_warned=yes ;;
  3617. esac
  3618. DLLTOOL=$ac_ct_DLLTOOL
  3619. fi
  3620. else
  3621. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3622. fi
  3623. if test -n "$ac_tool_prefix"; then
  3624. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3625. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3627. $as_echo_n "checking for $ac_word... " >&6; }
  3628. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3629. $as_echo_n "(cached) " >&6
  3630. else
  3631. if test -n "$OBJDUMP"; then
  3632. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3633. else
  3634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3635. for as_dir in $PATH
  3636. do
  3637. IFS=$as_save_IFS
  3638. test -z "$as_dir" && as_dir=.
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3641. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3643. break 2
  3644. fi
  3645. done
  3646. done
  3647. IFS=$as_save_IFS
  3648. fi
  3649. fi
  3650. OBJDUMP=$ac_cv_prog_OBJDUMP
  3651. if test -n "$OBJDUMP"; then
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3653. $as_echo "$OBJDUMP" >&6; }
  3654. else
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3656. $as_echo "no" >&6; }
  3657. fi
  3658. fi
  3659. if test -z "$ac_cv_prog_OBJDUMP"; then
  3660. ac_ct_OBJDUMP=$OBJDUMP
  3661. # Extract the first word of "objdump", so it can be a program name with args.
  3662. set dummy objdump; ac_word=$2
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3664. $as_echo_n "checking for $ac_word... " >&6; }
  3665. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. if test -n "$ac_ct_OBJDUMP"; then
  3669. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3670. else
  3671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3672. for as_dir in $PATH
  3673. do
  3674. IFS=$as_save_IFS
  3675. test -z "$as_dir" && as_dir=.
  3676. for ac_exec_ext in '' $ac_executable_extensions; do
  3677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3678. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3680. break 2
  3681. fi
  3682. done
  3683. done
  3684. IFS=$as_save_IFS
  3685. fi
  3686. fi
  3687. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3688. if test -n "$ac_ct_OBJDUMP"; then
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3690. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3691. else
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3693. $as_echo "no" >&6; }
  3694. fi
  3695. if test "x$ac_ct_OBJDUMP" = x; then
  3696. OBJDUMP="false"
  3697. else
  3698. case $cross_compiling:$ac_tool_warned in
  3699. yes:)
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3701. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3702. ac_tool_warned=yes ;;
  3703. esac
  3704. OBJDUMP=$ac_ct_OBJDUMP
  3705. fi
  3706. else
  3707. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3708. fi
  3709. ;;
  3710. esac
  3711. test -z "$AS" && AS=as
  3712. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3713. test -z "$OBJDUMP" && OBJDUMP=objdump
  3714. case `pwd` in
  3715. *\ * | *\ *)
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3717. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3718. esac
  3719. macro_version='2.2.6'
  3720. macro_revision='1.3012'
  3721. ltmain="$ac_aux_dir/ltmain.sh"
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3723. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3724. if test "${ac_cv_path_SED+set}" = set; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3728. for ac_i in 1 2 3 4 5 6 7; do
  3729. ac_script="$ac_script$as_nl$ac_script"
  3730. done
  3731. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3732. { ac_script=; unset ac_script;}
  3733. if test -z "$SED"; then
  3734. ac_path_SED_found=false
  3735. # Loop through the user's path and test for each of PROGNAME-LIST
  3736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3737. for as_dir in $PATH
  3738. do
  3739. IFS=$as_save_IFS
  3740. test -z "$as_dir" && as_dir=.
  3741. for ac_prog in sed gsed; do
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3744. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3745. # Check for GNU ac_path_SED and select it if it is found.
  3746. # Check for GNU $ac_path_SED
  3747. case `"$ac_path_SED" --version 2>&1` in
  3748. *GNU*)
  3749. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3750. *)
  3751. ac_count=0
  3752. $as_echo_n 0123456789 >"conftest.in"
  3753. while :
  3754. do
  3755. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3756. mv "conftest.tmp" "conftest.in"
  3757. cp "conftest.in" "conftest.nl"
  3758. $as_echo '' >> "conftest.nl"
  3759. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3760. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3761. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3762. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3763. # Best one so far, save it but keep looking for a better one
  3764. ac_cv_path_SED="$ac_path_SED"
  3765. ac_path_SED_max=$ac_count
  3766. fi
  3767. # 10*(2^10) chars as input seems more than enough
  3768. test $ac_count -gt 10 && break
  3769. done
  3770. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3771. esac
  3772. $ac_path_SED_found && break 3
  3773. done
  3774. done
  3775. done
  3776. IFS=$as_save_IFS
  3777. if test -z "$ac_cv_path_SED"; then
  3778. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3779. fi
  3780. else
  3781. ac_cv_path_SED=$SED
  3782. fi
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3785. $as_echo "$ac_cv_path_SED" >&6; }
  3786. SED="$ac_cv_path_SED"
  3787. rm -f conftest.sed
  3788. test -z "$SED" && SED=sed
  3789. Xsed="$SED -e 1s/^X//"
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3791. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3792. if test "${ac_cv_path_GREP+set}" = set; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -z "$GREP"; then
  3796. ac_path_GREP_found=false
  3797. # Loop through the user's path and test for each of PROGNAME-LIST
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3800. do
  3801. IFS=$as_save_IFS
  3802. test -z "$as_dir" && as_dir=.
  3803. for ac_prog in grep ggrep; do
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3806. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3807. # Check for GNU ac_path_GREP and select it if it is found.
  3808. # Check for GNU $ac_path_GREP
  3809. case `"$ac_path_GREP" --version 2>&1` in
  3810. *GNU*)
  3811. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3812. *)
  3813. ac_count=0
  3814. $as_echo_n 0123456789 >"conftest.in"
  3815. while :
  3816. do
  3817. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3818. mv "conftest.tmp" "conftest.in"
  3819. cp "conftest.in" "conftest.nl"
  3820. $as_echo 'GREP' >> "conftest.nl"
  3821. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3822. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3823. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3824. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3825. # Best one so far, save it but keep looking for a better one
  3826. ac_cv_path_GREP="$ac_path_GREP"
  3827. ac_path_GREP_max=$ac_count
  3828. fi
  3829. # 10*(2^10) chars as input seems more than enough
  3830. test $ac_count -gt 10 && break
  3831. done
  3832. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3833. esac
  3834. $ac_path_GREP_found && break 3
  3835. done
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. if test -z "$ac_cv_path_GREP"; then
  3840. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3841. fi
  3842. else
  3843. ac_cv_path_GREP=$GREP
  3844. fi
  3845. fi
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3847. $as_echo "$ac_cv_path_GREP" >&6; }
  3848. GREP="$ac_cv_path_GREP"
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3850. $as_echo_n "checking for egrep... " >&6; }
  3851. if test "${ac_cv_path_EGREP+set}" = set; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3855. then ac_cv_path_EGREP="$GREP -E"
  3856. else
  3857. if test -z "$EGREP"; then
  3858. ac_path_EGREP_found=false
  3859. # Loop through the user's path and test for each of PROGNAME-LIST
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_prog in egrep; do
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3868. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3869. # Check for GNU ac_path_EGREP and select it if it is found.
  3870. # Check for GNU $ac_path_EGREP
  3871. case `"$ac_path_EGREP" --version 2>&1` in
  3872. *GNU*)
  3873. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3874. *)
  3875. ac_count=0
  3876. $as_echo_n 0123456789 >"conftest.in"
  3877. while :
  3878. do
  3879. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3880. mv "conftest.tmp" "conftest.in"
  3881. cp "conftest.in" "conftest.nl"
  3882. $as_echo 'EGREP' >> "conftest.nl"
  3883. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3884. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3885. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3886. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3887. # Best one so far, save it but keep looking for a better one
  3888. ac_cv_path_EGREP="$ac_path_EGREP"
  3889. ac_path_EGREP_max=$ac_count
  3890. fi
  3891. # 10*(2^10) chars as input seems more than enough
  3892. test $ac_count -gt 10 && break
  3893. done
  3894. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3895. esac
  3896. $ac_path_EGREP_found && break 3
  3897. done
  3898. done
  3899. done
  3900. IFS=$as_save_IFS
  3901. if test -z "$ac_cv_path_EGREP"; then
  3902. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3903. fi
  3904. else
  3905. ac_cv_path_EGREP=$EGREP
  3906. fi
  3907. fi
  3908. fi
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3910. $as_echo "$ac_cv_path_EGREP" >&6; }
  3911. EGREP="$ac_cv_path_EGREP"
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3913. $as_echo_n "checking for fgrep... " >&6; }
  3914. if test "${ac_cv_path_FGREP+set}" = set; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3918. then ac_cv_path_FGREP="$GREP -F"
  3919. else
  3920. if test -z "$FGREP"; then
  3921. ac_path_FGREP_found=false
  3922. # Loop through the user's path and test for each of PROGNAME-LIST
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_prog in fgrep; do
  3929. for ac_exec_ext in '' $ac_executable_extensions; do
  3930. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3931. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3932. # Check for GNU ac_path_FGREP and select it if it is found.
  3933. # Check for GNU $ac_path_FGREP
  3934. case `"$ac_path_FGREP" --version 2>&1` in
  3935. *GNU*)
  3936. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3937. *)
  3938. ac_count=0
  3939. $as_echo_n 0123456789 >"conftest.in"
  3940. while :
  3941. do
  3942. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3943. mv "conftest.tmp" "conftest.in"
  3944. cp "conftest.in" "conftest.nl"
  3945. $as_echo 'FGREP' >> "conftest.nl"
  3946. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3947. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3948. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3949. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3950. # Best one so far, save it but keep looking for a better one
  3951. ac_cv_path_FGREP="$ac_path_FGREP"
  3952. ac_path_FGREP_max=$ac_count
  3953. fi
  3954. # 10*(2^10) chars as input seems more than enough
  3955. test $ac_count -gt 10 && break
  3956. done
  3957. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3958. esac
  3959. $ac_path_FGREP_found && break 3
  3960. done
  3961. done
  3962. done
  3963. IFS=$as_save_IFS
  3964. if test -z "$ac_cv_path_FGREP"; then
  3965. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3966. fi
  3967. else
  3968. ac_cv_path_FGREP=$FGREP
  3969. fi
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3973. $as_echo "$ac_cv_path_FGREP" >&6; }
  3974. FGREP="$ac_cv_path_FGREP"
  3975. test -z "$GREP" && GREP=grep
  3976. # Check whether --with-gnu-ld was given.
  3977. if test "${with_gnu_ld+set}" = set; then :
  3978. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3979. else
  3980. with_gnu_ld=no
  3981. fi
  3982. ac_prog=ld
  3983. if test "$GCC" = yes; then
  3984. # Check if gcc -print-prog-name=ld gives a path.
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3986. $as_echo_n "checking for ld used by $CC... " >&6; }
  3987. case $host in
  3988. *-*-mingw*)
  3989. # gcc leaves a trailing carriage return which upsets mingw
  3990. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3991. *)
  3992. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3993. esac
  3994. case $ac_prog in
  3995. # Accept absolute paths.
  3996. [\\/]* | ?:[\\/]*)
  3997. re_direlt='/[^/][^/]*/\.\./'
  3998. # Canonicalize the pathname of ld
  3999. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4000. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4001. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4002. done
  4003. test -z "$LD" && LD="$ac_prog"
  4004. ;;
  4005. "")
  4006. # If it fails, then pretend we aren't using GCC.
  4007. ac_prog=ld
  4008. ;;
  4009. *)
  4010. # If it is relative, then search for the first ld in PATH.
  4011. with_gnu_ld=unknown
  4012. ;;
  4013. esac
  4014. elif test "$with_gnu_ld" = yes; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4016. $as_echo_n "checking for GNU ld... " >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4019. $as_echo_n "checking for non-GNU ld... " >&6; }
  4020. fi
  4021. if test "${lt_cv_path_LD+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -z "$LD"; then
  4025. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4026. for ac_dir in $PATH; do
  4027. IFS="$lt_save_ifs"
  4028. test -z "$ac_dir" && ac_dir=.
  4029. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4030. lt_cv_path_LD="$ac_dir/$ac_prog"
  4031. # Check to see if the program is GNU ld. I'd rather use --version,
  4032. # but apparently some variants of GNU ld only accept -v.
  4033. # Break only if it was the GNU/non-GNU ld that we prefer.
  4034. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4035. *GNU* | *'with BFD'*)
  4036. test "$with_gnu_ld" != no && break
  4037. ;;
  4038. *)
  4039. test "$with_gnu_ld" != yes && break
  4040. ;;
  4041. esac
  4042. fi
  4043. done
  4044. IFS="$lt_save_ifs"
  4045. else
  4046. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4047. fi
  4048. fi
  4049. LD="$lt_cv_path_LD"
  4050. if test -n "$LD"; then
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4052. $as_echo "$LD" >&6; }
  4053. else
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4055. $as_echo "no" >&6; }
  4056. fi
  4057. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4059. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4060. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4064. case `$LD -v 2>&1 </dev/null` in
  4065. *GNU* | *'with BFD'*)
  4066. lt_cv_prog_gnu_ld=yes
  4067. ;;
  4068. *)
  4069. lt_cv_prog_gnu_ld=no
  4070. ;;
  4071. esac
  4072. fi
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4074. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4075. with_gnu_ld=$lt_cv_prog_gnu_ld
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4077. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4078. if test "${lt_cv_path_NM+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$NM"; then
  4082. # Let the user override the test.
  4083. lt_cv_path_NM="$NM"
  4084. else
  4085. lt_nm_to_check="${ac_tool_prefix}nm"
  4086. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4087. lt_nm_to_check="$lt_nm_to_check nm"
  4088. fi
  4089. for lt_tmp_nm in $lt_nm_to_check; do
  4090. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4091. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4092. IFS="$lt_save_ifs"
  4093. test -z "$ac_dir" && ac_dir=.
  4094. tmp_nm="$ac_dir/$lt_tmp_nm"
  4095. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4096. # Check to see if the nm accepts a BSD-compat flag.
  4097. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4098. # nm: unknown option "B" ignored
  4099. # Tru64's nm complains that /dev/null is an invalid object file
  4100. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4101. */dev/null* | *'Invalid file or object type'*)
  4102. lt_cv_path_NM="$tmp_nm -B"
  4103. break
  4104. ;;
  4105. *)
  4106. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4107. */dev/null*)
  4108. lt_cv_path_NM="$tmp_nm -p"
  4109. break
  4110. ;;
  4111. *)
  4112. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4113. continue # so that we can try to find one that supports BSD flags
  4114. ;;
  4115. esac
  4116. ;;
  4117. esac
  4118. fi
  4119. done
  4120. IFS="$lt_save_ifs"
  4121. done
  4122. : ${lt_cv_path_NM=no}
  4123. fi
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4126. $as_echo "$lt_cv_path_NM" >&6; }
  4127. if test "$lt_cv_path_NM" != "no"; then
  4128. NM="$lt_cv_path_NM"
  4129. else
  4130. # Didn't find any BSD compatible name lister, look for dumpbin.
  4131. if test -n "$ac_tool_prefix"; then
  4132. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4133. do
  4134. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4135. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4137. $as_echo_n "checking for $ac_word... " >&6; }
  4138. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4139. $as_echo_n "(cached) " >&6
  4140. else
  4141. if test -n "$DUMPBIN"; then
  4142. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4143. else
  4144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4145. for as_dir in $PATH
  4146. do
  4147. IFS=$as_save_IFS
  4148. test -z "$as_dir" && as_dir=.
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4151. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4153. break 2
  4154. fi
  4155. done
  4156. done
  4157. IFS=$as_save_IFS
  4158. fi
  4159. fi
  4160. DUMPBIN=$ac_cv_prog_DUMPBIN
  4161. if test -n "$DUMPBIN"; then
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4163. $as_echo "$DUMPBIN" >&6; }
  4164. else
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4166. $as_echo "no" >&6; }
  4167. fi
  4168. test -n "$DUMPBIN" && break
  4169. done
  4170. fi
  4171. if test -z "$DUMPBIN"; then
  4172. ac_ct_DUMPBIN=$DUMPBIN
  4173. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4174. do
  4175. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4176. set dummy $ac_prog; ac_word=$2
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4178. $as_echo_n "checking for $ac_word... " >&6; }
  4179. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -n "$ac_ct_DUMPBIN"; then
  4183. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4184. else
  4185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4186. for as_dir in $PATH
  4187. do
  4188. IFS=$as_save_IFS
  4189. test -z "$as_dir" && as_dir=.
  4190. for ac_exec_ext in '' $ac_executable_extensions; do
  4191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4192. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4194. break 2
  4195. fi
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. fi
  4200. fi
  4201. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4202. if test -n "$ac_ct_DUMPBIN"; then
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4204. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4207. $as_echo "no" >&6; }
  4208. fi
  4209. test -n "$ac_ct_DUMPBIN" && break
  4210. done
  4211. if test "x$ac_ct_DUMPBIN" = x; then
  4212. DUMPBIN=":"
  4213. else
  4214. case $cross_compiling:$ac_tool_warned in
  4215. yes:)
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4218. ac_tool_warned=yes ;;
  4219. esac
  4220. DUMPBIN=$ac_ct_DUMPBIN
  4221. fi
  4222. fi
  4223. if test "$DUMPBIN" != ":"; then
  4224. NM="$DUMPBIN"
  4225. fi
  4226. fi
  4227. test -z "$NM" && NM=nm
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4229. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4230. if test "${lt_cv_nm_interface+set}" = set; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. lt_cv_nm_interface="BSD nm"
  4234. echo "int some_variable = 0;" > conftest.$ac_ext
  4235. (eval echo "\"\$as_me:4685: $ac_compile\"" >&5)
  4236. (eval "$ac_compile" 2>conftest.err)
  4237. cat conftest.err >&5
  4238. (eval echo "\"\$as_me:4688: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4239. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4240. cat conftest.err >&5
  4241. (eval echo "\"\$as_me:4691: output\"" >&5)
  4242. cat conftest.out >&5
  4243. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4244. lt_cv_nm_interface="MS dumpbin"
  4245. fi
  4246. rm -f conftest*
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4249. $as_echo "$lt_cv_nm_interface" >&6; }
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4251. $as_echo_n "checking whether ln -s works... " >&6; }
  4252. LN_S=$as_ln_s
  4253. if test "$LN_S" = "ln -s"; then
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4255. $as_echo "yes" >&6; }
  4256. else
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4258. $as_echo "no, using $LN_S" >&6; }
  4259. fi
  4260. # find the maximum length of command line arguments
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4262. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4263. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. i=0
  4267. teststring="ABCD"
  4268. case $build_os in
  4269. msdosdjgpp*)
  4270. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4271. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4272. # during glob expansion). Even if it were fixed, the result of this
  4273. # check would be larger than it should be.
  4274. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4275. ;;
  4276. gnu*)
  4277. # Under GNU Hurd, this test is not required because there is
  4278. # no limit to the length of command line arguments.
  4279. # Libtool will interpret -1 as no limit whatsoever
  4280. lt_cv_sys_max_cmd_len=-1;
  4281. ;;
  4282. cygwin* | mingw* | cegcc*)
  4283. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4284. # about 5 minutes as the teststring grows exponentially.
  4285. # Worse, since 9x/ME are not pre-emptively multitasking,
  4286. # you end up with a "frozen" computer, even though with patience
  4287. # the test eventually succeeds (with a max line length of 256k).
  4288. # Instead, let's just punt: use the minimum linelength reported by
  4289. # all of the supported platforms: 8192 (on NT/2K/XP).
  4290. lt_cv_sys_max_cmd_len=8192;
  4291. ;;
  4292. amigaos*)
  4293. # On AmigaOS with pdksh, this test takes hours, literally.
  4294. # So we just punt and use a minimum line length of 8192.
  4295. lt_cv_sys_max_cmd_len=8192;
  4296. ;;
  4297. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4298. # This has been around since 386BSD, at least. Likely further.
  4299. if test -x /sbin/sysctl; then
  4300. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4301. elif test -x /usr/sbin/sysctl; then
  4302. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4303. else
  4304. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4305. fi
  4306. # And add a safety zone
  4307. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4308. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4309. ;;
  4310. interix*)
  4311. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4312. lt_cv_sys_max_cmd_len=196608
  4313. ;;
  4314. osf*)
  4315. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4316. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4317. # nice to cause kernel panics so lets avoid the loop below.
  4318. # First set a reasonable default.
  4319. lt_cv_sys_max_cmd_len=16384
  4320. #
  4321. if test -x /sbin/sysconfig; then
  4322. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4323. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4324. esac
  4325. fi
  4326. ;;
  4327. sco3.2v5*)
  4328. lt_cv_sys_max_cmd_len=102400
  4329. ;;
  4330. sysv5* | sco5v6* | sysv4.2uw2*)
  4331. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4332. if test -n "$kargmax"; then
  4333. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4334. else
  4335. lt_cv_sys_max_cmd_len=32768
  4336. fi
  4337. ;;
  4338. *)
  4339. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4340. if test -n "$lt_cv_sys_max_cmd_len"; then
  4341. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4342. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4343. else
  4344. # Make teststring a little bigger before we do anything with it.
  4345. # a 1K string should be a reasonable start.
  4346. for i in 1 2 3 4 5 6 7 8 ; do
  4347. teststring=$teststring$teststring
  4348. done
  4349. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4350. # If test is not a shell built-in, we'll probably end up computing a
  4351. # maximum length that is only half of the actual maximum length, but
  4352. # we can't tell.
  4353. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4354. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4355. test $i != 17 # 1/2 MB should be enough
  4356. do
  4357. i=`expr $i + 1`
  4358. teststring=$teststring$teststring
  4359. done
  4360. # Only check the string length outside the loop.
  4361. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4362. teststring=
  4363. # Add a significant safety factor because C++ compilers can tack on
  4364. # massive amounts of additional arguments before passing them to the
  4365. # linker. It appears as though 1/2 is a usable value.
  4366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4367. fi
  4368. ;;
  4369. esac
  4370. fi
  4371. if test -n $lt_cv_sys_max_cmd_len ; then
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4373. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4374. else
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4376. $as_echo "none" >&6; }
  4377. fi
  4378. max_cmd_len=$lt_cv_sys_max_cmd_len
  4379. : ${CP="cp -f"}
  4380. : ${MV="mv -f"}
  4381. : ${RM="rm -f"}
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4383. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4384. # Try some XSI features
  4385. xsi_shell=no
  4386. ( _lt_dummy="a/b/c"
  4387. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4388. = c,a/b,, \
  4389. && eval 'test $(( 1 + 1 )) -eq 2 \
  4390. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4391. && xsi_shell=yes
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4393. $as_echo "$xsi_shell" >&6; }
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4395. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4396. lt_shell_append=no
  4397. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4398. >/dev/null 2>&1 \
  4399. && lt_shell_append=yes
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4401. $as_echo "$lt_shell_append" >&6; }
  4402. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4403. lt_unset=unset
  4404. else
  4405. lt_unset=false
  4406. fi
  4407. # test EBCDIC or ASCII
  4408. case `echo X|tr X '\101'` in
  4409. A) # ASCII based system
  4410. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4411. lt_SP2NL='tr \040 \012'
  4412. lt_NL2SP='tr \015\012 \040\040'
  4413. ;;
  4414. *) # EBCDIC based system
  4415. lt_SP2NL='tr \100 \n'
  4416. lt_NL2SP='tr \r\n \100\100'
  4417. ;;
  4418. esac
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4420. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4421. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4422. $as_echo_n "(cached) " >&6
  4423. else
  4424. lt_cv_ld_reload_flag='-r'
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4427. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4428. reload_flag=$lt_cv_ld_reload_flag
  4429. case $reload_flag in
  4430. "" | " "*) ;;
  4431. *) reload_flag=" $reload_flag" ;;
  4432. esac
  4433. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4434. case $host_os in
  4435. darwin*)
  4436. if test "$GCC" = yes; then
  4437. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4438. else
  4439. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4440. fi
  4441. ;;
  4442. esac
  4443. if test -n "$ac_tool_prefix"; then
  4444. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4445. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4447. $as_echo_n "checking for $ac_word... " >&6; }
  4448. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. if test -n "$OBJDUMP"; then
  4452. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4453. else
  4454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4455. for as_dir in $PATH
  4456. do
  4457. IFS=$as_save_IFS
  4458. test -z "$as_dir" && as_dir=.
  4459. for ac_exec_ext in '' $ac_executable_extensions; do
  4460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4461. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4463. break 2
  4464. fi
  4465. done
  4466. done
  4467. IFS=$as_save_IFS
  4468. fi
  4469. fi
  4470. OBJDUMP=$ac_cv_prog_OBJDUMP
  4471. if test -n "$OBJDUMP"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4473. $as_echo "$OBJDUMP" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. fi
  4479. if test -z "$ac_cv_prog_OBJDUMP"; then
  4480. ac_ct_OBJDUMP=$OBJDUMP
  4481. # Extract the first word of "objdump", so it can be a program name with args.
  4482. set dummy objdump; ac_word=$2
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4484. $as_echo_n "checking for $ac_word... " >&6; }
  4485. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4486. $as_echo_n "(cached) " >&6
  4487. else
  4488. if test -n "$ac_ct_OBJDUMP"; then
  4489. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4490. else
  4491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4492. for as_dir in $PATH
  4493. do
  4494. IFS=$as_save_IFS
  4495. test -z "$as_dir" && as_dir=.
  4496. for ac_exec_ext in '' $ac_executable_extensions; do
  4497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4498. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4499. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4500. break 2
  4501. fi
  4502. done
  4503. done
  4504. IFS=$as_save_IFS
  4505. fi
  4506. fi
  4507. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4508. if test -n "$ac_ct_OBJDUMP"; then
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4510. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4511. else
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4513. $as_echo "no" >&6; }
  4514. fi
  4515. if test "x$ac_ct_OBJDUMP" = x; then
  4516. OBJDUMP="false"
  4517. else
  4518. case $cross_compiling:$ac_tool_warned in
  4519. yes:)
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4521. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4522. ac_tool_warned=yes ;;
  4523. esac
  4524. OBJDUMP=$ac_ct_OBJDUMP
  4525. fi
  4526. else
  4527. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4528. fi
  4529. test -z "$OBJDUMP" && OBJDUMP=objdump
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4531. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4532. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4533. $as_echo_n "(cached) " >&6
  4534. else
  4535. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4536. lt_cv_file_magic_test_file=
  4537. lt_cv_deplibs_check_method='unknown'
  4538. # Need to set the preceding variable on all platforms that support
  4539. # interlibrary dependencies.
  4540. # 'none' -- dependencies not supported.
  4541. # `unknown' -- same as none, but documents that we really don't know.
  4542. # 'pass_all' -- all dependencies passed with no checks.
  4543. # 'test_compile' -- check by making test program.
  4544. # 'file_magic [[regex]]' -- check by looking for files in library path
  4545. # which responds to the $file_magic_cmd with a given extended regex.
  4546. # If you have `file' or equivalent on your system and you're not sure
  4547. # whether `pass_all' will *always* work, you probably want this one.
  4548. case $host_os in
  4549. aix[4-9]*)
  4550. lt_cv_deplibs_check_method=pass_all
  4551. ;;
  4552. beos*)
  4553. lt_cv_deplibs_check_method=pass_all
  4554. ;;
  4555. bsdi[45]*)
  4556. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4557. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4558. lt_cv_file_magic_test_file=/shlib/libc.so
  4559. ;;
  4560. cygwin*)
  4561. # func_win32_libid is a shell function defined in ltmain.sh
  4562. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4563. lt_cv_file_magic_cmd='func_win32_libid'
  4564. ;;
  4565. mingw* | pw32*)
  4566. # Base MSYS/MinGW do not provide the 'file' command needed by
  4567. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4568. # unless we find 'file', for example because we are cross-compiling.
  4569. if ( file / ) >/dev/null 2>&1; then
  4570. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4571. lt_cv_file_magic_cmd='func_win32_libid'
  4572. else
  4573. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4574. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4575. fi
  4576. ;;
  4577. cegcc)
  4578. # use the weaker test based on 'objdump'. See mingw*.
  4579. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4580. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4581. ;;
  4582. darwin* | rhapsody*)
  4583. lt_cv_deplibs_check_method=pass_all
  4584. ;;
  4585. freebsd* | dragonfly*)
  4586. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4587. case $host_cpu in
  4588. i*86 )
  4589. # Not sure whether the presence of OpenBSD here was a mistake.
  4590. # Let's accept both of them until this is cleared up.
  4591. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4592. lt_cv_file_magic_cmd=/usr/bin/file
  4593. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4594. ;;
  4595. esac
  4596. else
  4597. lt_cv_deplibs_check_method=pass_all
  4598. fi
  4599. ;;
  4600. gnu*)
  4601. lt_cv_deplibs_check_method=pass_all
  4602. ;;
  4603. hpux10.20* | hpux11*)
  4604. lt_cv_file_magic_cmd=/usr/bin/file
  4605. case $host_cpu in
  4606. ia64*)
  4607. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4608. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4609. ;;
  4610. hppa*64*)
  4611. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4612. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4613. ;;
  4614. *)
  4615. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4616. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4617. ;;
  4618. esac
  4619. ;;
  4620. interix[3-9]*)
  4621. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4622. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4623. ;;
  4624. irix5* | irix6* | nonstopux*)
  4625. case $LD in
  4626. *-32|*"-32 ") libmagic=32-bit;;
  4627. *-n32|*"-n32 ") libmagic=N32;;
  4628. *-64|*"-64 ") libmagic=64-bit;;
  4629. *) libmagic=never-match;;
  4630. esac
  4631. lt_cv_deplibs_check_method=pass_all
  4632. ;;
  4633. # This must be Linux ELF.
  4634. linux* | k*bsd*-gnu)
  4635. lt_cv_deplibs_check_method=pass_all
  4636. ;;
  4637. netbsd* | netbsdelf*-gnu)
  4638. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4639. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4640. else
  4641. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4642. fi
  4643. ;;
  4644. newos6*)
  4645. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4646. lt_cv_file_magic_cmd=/usr/bin/file
  4647. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4648. ;;
  4649. *nto* | *qnx*)
  4650. lt_cv_deplibs_check_method=pass_all
  4651. ;;
  4652. openbsd*)
  4653. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4654. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4655. else
  4656. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4657. fi
  4658. ;;
  4659. osf3* | osf4* | osf5*)
  4660. lt_cv_deplibs_check_method=pass_all
  4661. ;;
  4662. rdos*)
  4663. lt_cv_deplibs_check_method=pass_all
  4664. ;;
  4665. solaris*)
  4666. lt_cv_deplibs_check_method=pass_all
  4667. ;;
  4668. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4669. lt_cv_deplibs_check_method=pass_all
  4670. ;;
  4671. sysv4 | sysv4.3*)
  4672. case $host_vendor in
  4673. motorola)
  4674. 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]'
  4675. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4676. ;;
  4677. ncr)
  4678. lt_cv_deplibs_check_method=pass_all
  4679. ;;
  4680. sequent)
  4681. lt_cv_file_magic_cmd='/bin/file'
  4682. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4683. ;;
  4684. sni)
  4685. lt_cv_file_magic_cmd='/bin/file'
  4686. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4687. lt_cv_file_magic_test_file=/lib/libc.so
  4688. ;;
  4689. siemens)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. pc)
  4693. lt_cv_deplibs_check_method=pass_all
  4694. ;;
  4695. esac
  4696. ;;
  4697. tpf*)
  4698. lt_cv_deplibs_check_method=pass_all
  4699. ;;
  4700. esac
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4703. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4704. file_magic_cmd=$lt_cv_file_magic_cmd
  4705. deplibs_check_method=$lt_cv_deplibs_check_method
  4706. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4707. if test -n "$ac_tool_prefix"; then
  4708. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4709. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if test "${ac_cv_prog_AR+set}" = set; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$AR"; then
  4716. ac_cv_prog_AR="$AR" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4725. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. AR=$ac_cv_prog_AR
  4735. if test -n "$AR"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4737. $as_echo "$AR" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. fi
  4743. if test -z "$ac_cv_prog_AR"; then
  4744. ac_ct_AR=$AR
  4745. # Extract the first word of "ar", so it can be a program name with args.
  4746. set dummy ar; ac_word=$2
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4748. $as_echo_n "checking for $ac_word... " >&6; }
  4749. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. if test -n "$ac_ct_AR"; then
  4753. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762. ac_cv_prog_ac_ct_AR="ar"
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. fi
  4770. fi
  4771. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4772. if test -n "$ac_ct_AR"; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4774. $as_echo "$ac_ct_AR" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. fi
  4779. if test "x$ac_ct_AR" = x; then
  4780. AR="false"
  4781. else
  4782. case $cross_compiling:$ac_tool_warned in
  4783. yes:)
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4786. ac_tool_warned=yes ;;
  4787. esac
  4788. AR=$ac_ct_AR
  4789. fi
  4790. else
  4791. AR="$ac_cv_prog_AR"
  4792. fi
  4793. test -z "$AR" && AR=ar
  4794. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4795. if test -n "$ac_tool_prefix"; then
  4796. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4797. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4799. $as_echo_n "checking for $ac_word... " >&6; }
  4800. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -n "$STRIP"; then
  4804. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4805. else
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_exec_ext in '' $ac_executable_extensions; do
  4812. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4813. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4815. break 2
  4816. fi
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. fi
  4822. STRIP=$ac_cv_prog_STRIP
  4823. if test -n "$STRIP"; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4825. $as_echo "$STRIP" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. fi
  4830. fi
  4831. if test -z "$ac_cv_prog_STRIP"; then
  4832. ac_ct_STRIP=$STRIP
  4833. # Extract the first word of "strip", so it can be a program name with args.
  4834. set dummy strip; ac_word=$2
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4836. $as_echo_n "checking for $ac_word... " >&6; }
  4837. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -n "$ac_ct_STRIP"; then
  4841. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4842. else
  4843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4844. for as_dir in $PATH
  4845. do
  4846. IFS=$as_save_IFS
  4847. test -z "$as_dir" && as_dir=.
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4850. ac_cv_prog_ac_ct_STRIP="strip"
  4851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4852. break 2
  4853. fi
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. fi
  4858. fi
  4859. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4860. if test -n "$ac_ct_STRIP"; then
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4862. $as_echo "$ac_ct_STRIP" >&6; }
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867. if test "x$ac_ct_STRIP" = x; then
  4868. STRIP=":"
  4869. else
  4870. case $cross_compiling:$ac_tool_warned in
  4871. yes:)
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4874. ac_tool_warned=yes ;;
  4875. esac
  4876. STRIP=$ac_ct_STRIP
  4877. fi
  4878. else
  4879. STRIP="$ac_cv_prog_STRIP"
  4880. fi
  4881. test -z "$STRIP" && STRIP=:
  4882. if test -n "$ac_tool_prefix"; then
  4883. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4884. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4886. $as_echo_n "checking for $ac_word... " >&6; }
  4887. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if test -n "$RANLIB"; then
  4891. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4900. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. RANLIB=$ac_cv_prog_RANLIB
  4910. if test -n "$RANLIB"; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4912. $as_echo "$RANLIB" >&6; }
  4913. else
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. $as_echo "no" >&6; }
  4916. fi
  4917. fi
  4918. if test -z "$ac_cv_prog_RANLIB"; then
  4919. ac_ct_RANLIB=$RANLIB
  4920. # Extract the first word of "ranlib", so it can be a program name with args.
  4921. set dummy ranlib; ac_word=$2
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4923. $as_echo_n "checking for $ac_word... " >&6; }
  4924. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. if test -n "$ac_ct_RANLIB"; then
  4928. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4929. else
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4937. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4939. break 2
  4940. fi
  4941. done
  4942. done
  4943. IFS=$as_save_IFS
  4944. fi
  4945. fi
  4946. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4947. if test -n "$ac_ct_RANLIB"; then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4949. $as_echo "$ac_ct_RANLIB" >&6; }
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. fi
  4954. if test "x$ac_ct_RANLIB" = x; then
  4955. RANLIB=":"
  4956. else
  4957. case $cross_compiling:$ac_tool_warned in
  4958. yes:)
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4961. ac_tool_warned=yes ;;
  4962. esac
  4963. RANLIB=$ac_ct_RANLIB
  4964. fi
  4965. else
  4966. RANLIB="$ac_cv_prog_RANLIB"
  4967. fi
  4968. test -z "$RANLIB" && RANLIB=:
  4969. # Determine commands to create old-style static archives.
  4970. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4971. old_postinstall_cmds='chmod 644 $oldlib'
  4972. old_postuninstall_cmds=
  4973. if test -n "$RANLIB"; then
  4974. case $host_os in
  4975. openbsd*)
  4976. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4977. ;;
  4978. *)
  4979. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4980. ;;
  4981. esac
  4982. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4983. fi
  4984. # If no C compiler was specified, use CC.
  4985. LTCC=${LTCC-"$CC"}
  4986. # If no C compiler flags were specified, use CFLAGS.
  4987. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4988. # Allow CC to be a program name with arguments.
  4989. compiler=$CC
  4990. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4992. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4993. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. # These are sane defaults that work on at least a few old systems.
  4997. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4998. # Character class describing NM global symbol codes.
  4999. symcode='[BCDEGRST]'
  5000. # Regexp to match symbols that can be accessed directly from C.
  5001. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5002. # Define system-specific variables.
  5003. case $host_os in
  5004. aix*)
  5005. symcode='[BCDT]'
  5006. ;;
  5007. cygwin* | mingw* | pw32* | cegcc*)
  5008. symcode='[ABCDGISTW]'
  5009. ;;
  5010. hpux*)
  5011. if test "$host_cpu" = ia64; then
  5012. symcode='[ABCDEGRST]'
  5013. fi
  5014. ;;
  5015. irix* | nonstopux*)
  5016. symcode='[BCDEGRST]'
  5017. ;;
  5018. osf*)
  5019. symcode='[BCDEGQRST]'
  5020. ;;
  5021. solaris*)
  5022. symcode='[BDRT]'
  5023. ;;
  5024. sco3.2v5*)
  5025. symcode='[DT]'
  5026. ;;
  5027. sysv4.2uw2*)
  5028. symcode='[DT]'
  5029. ;;
  5030. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5031. symcode='[ABDT]'
  5032. ;;
  5033. sysv4)
  5034. symcode='[DFNSTU]'
  5035. ;;
  5036. esac
  5037. # If we're using GNU nm, then use its standard symbol codes.
  5038. case `$NM -V 2>&1` in
  5039. *GNU* | *'with BFD'*)
  5040. symcode='[ABCDGIRSTW]' ;;
  5041. esac
  5042. # Transform an extracted symbol line into a proper C declaration.
  5043. # Some systems (esp. on ia64) link data and code symbols differently,
  5044. # so use this general approach.
  5045. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5046. # Transform an extracted symbol line into symbol name and symbol address
  5047. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5048. 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'"
  5049. # Handle CRLF in mingw tool chain
  5050. opt_cr=
  5051. case $build_os in
  5052. mingw*)
  5053. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5054. ;;
  5055. esac
  5056. # Try without a prefix underscore, then with it.
  5057. for ac_symprfx in "" "_"; do
  5058. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5059. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5060. # Write the raw and C identifiers.
  5061. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5062. # Fake it for dumpbin and say T for any non-static function
  5063. # and D for any global variable.
  5064. # Also find C++ and __fastcall symbols from MSVC++,
  5065. # which start with @ or ?.
  5066. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5067. " {last_section=section; section=\$ 3};"\
  5068. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5069. " \$ 0!~/External *\|/{next};"\
  5070. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5071. " {if(hide[section]) next};"\
  5072. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5073. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5074. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5075. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5076. " ' prfx=^$ac_symprfx"
  5077. else
  5078. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5079. fi
  5080. # Check to see that the pipe works correctly.
  5081. pipe_works=no
  5082. rm -f conftest*
  5083. cat > conftest.$ac_ext <<_LT_EOF
  5084. #ifdef __cplusplus
  5085. extern "C" {
  5086. #endif
  5087. char nm_test_var;
  5088. void nm_test_func(void);
  5089. void nm_test_func(void){}
  5090. #ifdef __cplusplus
  5091. }
  5092. #endif
  5093. int main(){nm_test_var='a';nm_test_func();return(0);}
  5094. _LT_EOF
  5095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5096. (eval $ac_compile) 2>&5
  5097. ac_status=$?
  5098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5099. test $ac_status = 0; }; then
  5100. # Now try to grab the symbols.
  5101. nlist=conftest.nm
  5102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5103. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5104. ac_status=$?
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5106. test $ac_status = 0; } && test -s "$nlist"; then
  5107. # Try sorting and uniquifying the output.
  5108. if sort "$nlist" | uniq > "$nlist"T; then
  5109. mv -f "$nlist"T "$nlist"
  5110. else
  5111. rm -f "$nlist"T
  5112. fi
  5113. # Make sure that we snagged all the symbols we need.
  5114. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5115. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5116. cat <<_LT_EOF > conftest.$ac_ext
  5117. #ifdef __cplusplus
  5118. extern "C" {
  5119. #endif
  5120. _LT_EOF
  5121. # Now generate the symbol file.
  5122. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5123. cat <<_LT_EOF >> conftest.$ac_ext
  5124. /* The mapping between symbol names and symbols. */
  5125. const struct {
  5126. const char *name;
  5127. void *address;
  5128. }
  5129. lt__PROGRAM__LTX_preloaded_symbols[] =
  5130. {
  5131. { "@PROGRAM@", (void *) 0 },
  5132. _LT_EOF
  5133. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5134. cat <<\_LT_EOF >> conftest.$ac_ext
  5135. {0, (void *) 0}
  5136. };
  5137. /* This works around a problem in FreeBSD linker */
  5138. #ifdef FREEBSD_WORKAROUND
  5139. static const void *lt_preloaded_setup() {
  5140. return lt__PROGRAM__LTX_preloaded_symbols;
  5141. }
  5142. #endif
  5143. #ifdef __cplusplus
  5144. }
  5145. #endif
  5146. _LT_EOF
  5147. # Now try linking the two files.
  5148. mv conftest.$ac_objext conftstm.$ac_objext
  5149. lt_save_LIBS="$LIBS"
  5150. lt_save_CFLAGS="$CFLAGS"
  5151. LIBS="conftstm.$ac_objext"
  5152. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5154. (eval $ac_link) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5158. pipe_works=yes
  5159. fi
  5160. LIBS="$lt_save_LIBS"
  5161. CFLAGS="$lt_save_CFLAGS"
  5162. else
  5163. echo "cannot find nm_test_func in $nlist" >&5
  5164. fi
  5165. else
  5166. echo "cannot find nm_test_var in $nlist" >&5
  5167. fi
  5168. else
  5169. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5170. fi
  5171. else
  5172. echo "$progname: failed program was:" >&5
  5173. cat conftest.$ac_ext >&5
  5174. fi
  5175. rm -rf conftest* conftst*
  5176. # Do not use the global_symbol_pipe unless it works.
  5177. if test "$pipe_works" = yes; then
  5178. break
  5179. else
  5180. lt_cv_sys_global_symbol_pipe=
  5181. fi
  5182. done
  5183. fi
  5184. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5185. lt_cv_sys_global_symbol_to_cdecl=
  5186. fi
  5187. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5189. $as_echo "failed" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5192. $as_echo "ok" >&6; }
  5193. fi
  5194. # Check whether --enable-libtool-lock was given.
  5195. if test "${enable_libtool_lock+set}" = set; then :
  5196. enableval=$enable_libtool_lock;
  5197. fi
  5198. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5199. # Some flags need to be propagated to the compiler or linker for good
  5200. # libtool support.
  5201. case $host in
  5202. ia64-*-hpux*)
  5203. # Find out which ABI we are using.
  5204. echo 'int i;' > conftest.$ac_ext
  5205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5206. (eval $ac_compile) 2>&5
  5207. ac_status=$?
  5208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5209. test $ac_status = 0; }; then
  5210. case `/usr/bin/file conftest.$ac_objext` in
  5211. *ELF-32*)
  5212. HPUX_IA64_MODE="32"
  5213. ;;
  5214. *ELF-64*)
  5215. HPUX_IA64_MODE="64"
  5216. ;;
  5217. esac
  5218. fi
  5219. rm -rf conftest*
  5220. ;;
  5221. *-*-irix6*)
  5222. # Find out which ABI we are using.
  5223. echo '#line 5894 "configure"' > conftest.$ac_ext
  5224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5225. (eval $ac_compile) 2>&5
  5226. ac_status=$?
  5227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5228. test $ac_status = 0; }; then
  5229. if test "$lt_cv_prog_gnu_ld" = yes; then
  5230. case `/usr/bin/file conftest.$ac_objext` in
  5231. *32-bit*)
  5232. LD="${LD-ld} -melf32bsmip"
  5233. ;;
  5234. *N32*)
  5235. LD="${LD-ld} -melf32bmipn32"
  5236. ;;
  5237. *64-bit*)
  5238. LD="${LD-ld} -melf64bmip"
  5239. ;;
  5240. esac
  5241. else
  5242. case `/usr/bin/file conftest.$ac_objext` in
  5243. *32-bit*)
  5244. LD="${LD-ld} -32"
  5245. ;;
  5246. *N32*)
  5247. LD="${LD-ld} -n32"
  5248. ;;
  5249. *64-bit*)
  5250. LD="${LD-ld} -64"
  5251. ;;
  5252. esac
  5253. fi
  5254. fi
  5255. rm -rf conftest*
  5256. ;;
  5257. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5258. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5259. # Find out which ABI we are using.
  5260. echo 'int i;' > conftest.$ac_ext
  5261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5262. (eval $ac_compile) 2>&5
  5263. ac_status=$?
  5264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5265. test $ac_status = 0; }; then
  5266. case `/usr/bin/file conftest.o` in
  5267. *32-bit*)
  5268. case $host in
  5269. x86_64-*kfreebsd*-gnu)
  5270. LD="${LD-ld} -m elf_i386_fbsd"
  5271. ;;
  5272. x86_64-*linux*)
  5273. LD="${LD-ld} -m elf_i386"
  5274. ;;
  5275. ppc64-*linux*|powerpc64-*linux*)
  5276. LD="${LD-ld} -m elf32ppclinux"
  5277. ;;
  5278. s390x-*linux*)
  5279. LD="${LD-ld} -m elf_s390"
  5280. ;;
  5281. sparc64-*linux*)
  5282. LD="${LD-ld} -m elf32_sparc"
  5283. ;;
  5284. esac
  5285. ;;
  5286. *64-bit*)
  5287. case $host in
  5288. x86_64-*kfreebsd*-gnu)
  5289. LD="${LD-ld} -m elf_x86_64_fbsd"
  5290. ;;
  5291. x86_64-*linux*)
  5292. LD="${LD-ld} -m elf_x86_64"
  5293. ;;
  5294. ppc*-*linux*|powerpc*-*linux*)
  5295. LD="${LD-ld} -m elf64ppc"
  5296. ;;
  5297. s390*-*linux*|s390*-*tpf*)
  5298. LD="${LD-ld} -m elf64_s390"
  5299. ;;
  5300. sparc*-*linux*)
  5301. LD="${LD-ld} -m elf64_sparc"
  5302. ;;
  5303. esac
  5304. ;;
  5305. esac
  5306. fi
  5307. rm -rf conftest*
  5308. ;;
  5309. *-*-sco3.2v5*)
  5310. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5311. SAVE_CFLAGS="$CFLAGS"
  5312. CFLAGS="$CFLAGS -belf"
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5314. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5315. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5316. $as_echo_n "(cached) " >&6
  5317. else
  5318. ac_ext=c
  5319. ac_cpp='$CPP $CPPFLAGS'
  5320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. int
  5326. main ()
  5327. {
  5328. ;
  5329. return 0;
  5330. }
  5331. _ACEOF
  5332. if ac_fn_c_try_link "$LINENO"; then :
  5333. lt_cv_cc_needs_belf=yes
  5334. else
  5335. lt_cv_cc_needs_belf=no
  5336. fi
  5337. rm -f core conftest.err conftest.$ac_objext \
  5338. conftest$ac_exeext conftest.$ac_ext
  5339. ac_ext=c
  5340. ac_cpp='$CPP $CPPFLAGS'
  5341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5344. fi
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5346. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5347. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5348. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5349. CFLAGS="$SAVE_CFLAGS"
  5350. fi
  5351. ;;
  5352. sparc*-*solaris*)
  5353. # Find out which ABI we are using.
  5354. echo 'int i;' > conftest.$ac_ext
  5355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5356. (eval $ac_compile) 2>&5
  5357. ac_status=$?
  5358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5359. test $ac_status = 0; }; then
  5360. case `/usr/bin/file conftest.o` in
  5361. *64-bit*)
  5362. case $lt_cv_prog_gnu_ld in
  5363. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5364. *)
  5365. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5366. LD="${LD-ld} -64"
  5367. fi
  5368. ;;
  5369. esac
  5370. ;;
  5371. esac
  5372. fi
  5373. rm -rf conftest*
  5374. ;;
  5375. esac
  5376. need_locks="$enable_libtool_lock"
  5377. case $host_os in
  5378. rhapsody* | darwin*)
  5379. if test -n "$ac_tool_prefix"; then
  5380. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5381. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$DSYMUTIL"; then
  5388. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5407. if test -n "$DSYMUTIL"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5409. $as_echo "$DSYMUTIL" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. fi
  5415. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5416. ac_ct_DSYMUTIL=$DSYMUTIL
  5417. # Extract the first word of "dsymutil", so it can be a program name with args.
  5418. set dummy dsymutil; ac_word=$2
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5420. $as_echo_n "checking for $ac_word... " >&6; }
  5421. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. if test -n "$ac_ct_DSYMUTIL"; then
  5425. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5426. else
  5427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5428. for as_dir in $PATH
  5429. do
  5430. IFS=$as_save_IFS
  5431. test -z "$as_dir" && as_dir=.
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5434. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5436. break 2
  5437. fi
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. fi
  5442. fi
  5443. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5444. if test -n "$ac_ct_DSYMUTIL"; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5446. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5447. else
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5449. $as_echo "no" >&6; }
  5450. fi
  5451. if test "x$ac_ct_DSYMUTIL" = x; then
  5452. DSYMUTIL=":"
  5453. else
  5454. case $cross_compiling:$ac_tool_warned in
  5455. yes:)
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5458. ac_tool_warned=yes ;;
  5459. esac
  5460. DSYMUTIL=$ac_ct_DSYMUTIL
  5461. fi
  5462. else
  5463. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5464. fi
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$NMEDIT"; then
  5474. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5483. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. NMEDIT=$ac_cv_prog_NMEDIT
  5493. if test -n "$NMEDIT"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5495. $as_echo "$NMEDIT" >&6; }
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. fi
  5501. if test -z "$ac_cv_prog_NMEDIT"; then
  5502. ac_ct_NMEDIT=$NMEDIT
  5503. # Extract the first word of "nmedit", so it can be a program name with args.
  5504. set dummy nmedit; ac_word=$2
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5506. $as_echo_n "checking for $ac_word... " >&6; }
  5507. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if test -n "$ac_ct_NMEDIT"; then
  5511. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5512. else
  5513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514. for as_dir in $PATH
  5515. do
  5516. IFS=$as_save_IFS
  5517. test -z "$as_dir" && as_dir=.
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5530. if test -n "$ac_ct_NMEDIT"; then
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5532. $as_echo "$ac_ct_NMEDIT" >&6; }
  5533. else
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5535. $as_echo "no" >&6; }
  5536. fi
  5537. if test "x$ac_ct_NMEDIT" = x; then
  5538. NMEDIT=":"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. NMEDIT=$ac_ct_NMEDIT
  5547. fi
  5548. else
  5549. NMEDIT="$ac_cv_prog_NMEDIT"
  5550. fi
  5551. if test -n "$ac_tool_prefix"; then
  5552. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5553. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5555. $as_echo_n "checking for $ac_word... " >&6; }
  5556. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. if test -n "$LIPO"; then
  5560. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. for ac_exec_ext in '' $ac_executable_extensions; do
  5568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5569. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5571. break 2
  5572. fi
  5573. done
  5574. done
  5575. IFS=$as_save_IFS
  5576. fi
  5577. fi
  5578. LIPO=$ac_cv_prog_LIPO
  5579. if test -n "$LIPO"; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5581. $as_echo "$LIPO" >&6; }
  5582. else
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5584. $as_echo "no" >&6; }
  5585. fi
  5586. fi
  5587. if test -z "$ac_cv_prog_LIPO"; then
  5588. ac_ct_LIPO=$LIPO
  5589. # Extract the first word of "lipo", so it can be a program name with args.
  5590. set dummy lipo; ac_word=$2
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5592. $as_echo_n "checking for $ac_word... " >&6; }
  5593. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. if test -n "$ac_ct_LIPO"; then
  5597. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5598. else
  5599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5600. for as_dir in $PATH
  5601. do
  5602. IFS=$as_save_IFS
  5603. test -z "$as_dir" && as_dir=.
  5604. for ac_exec_ext in '' $ac_executable_extensions; do
  5605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5606. ac_cv_prog_ac_ct_LIPO="lipo"
  5607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5608. break 2
  5609. fi
  5610. done
  5611. done
  5612. IFS=$as_save_IFS
  5613. fi
  5614. fi
  5615. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5616. if test -n "$ac_ct_LIPO"; then
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5618. $as_echo "$ac_ct_LIPO" >&6; }
  5619. else
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5621. $as_echo "no" >&6; }
  5622. fi
  5623. if test "x$ac_ct_LIPO" = x; then
  5624. LIPO=":"
  5625. else
  5626. case $cross_compiling:$ac_tool_warned in
  5627. yes:)
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5630. ac_tool_warned=yes ;;
  5631. esac
  5632. LIPO=$ac_ct_LIPO
  5633. fi
  5634. else
  5635. LIPO="$ac_cv_prog_LIPO"
  5636. fi
  5637. if test -n "$ac_tool_prefix"; then
  5638. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5639. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$OTOOL"; then
  5646. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5655. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. OTOOL=$ac_cv_prog_OTOOL
  5665. if test -n "$OTOOL"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5667. $as_echo "$OTOOL" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. fi
  5673. if test -z "$ac_cv_prog_OTOOL"; then
  5674. ac_ct_OTOOL=$OTOOL
  5675. # Extract the first word of "otool", so it can be a program name with args.
  5676. set dummy otool; ac_word=$2
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5678. $as_echo_n "checking for $ac_word... " >&6; }
  5679. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. if test -n "$ac_ct_OTOOL"; then
  5683. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5684. else
  5685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5686. for as_dir in $PATH
  5687. do
  5688. IFS=$as_save_IFS
  5689. test -z "$as_dir" && as_dir=.
  5690. for ac_exec_ext in '' $ac_executable_extensions; do
  5691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5692. ac_cv_prog_ac_ct_OTOOL="otool"
  5693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5694. break 2
  5695. fi
  5696. done
  5697. done
  5698. IFS=$as_save_IFS
  5699. fi
  5700. fi
  5701. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5702. if test -n "$ac_ct_OTOOL"; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5704. $as_echo "$ac_ct_OTOOL" >&6; }
  5705. else
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5707. $as_echo "no" >&6; }
  5708. fi
  5709. if test "x$ac_ct_OTOOL" = x; then
  5710. OTOOL=":"
  5711. else
  5712. case $cross_compiling:$ac_tool_warned in
  5713. yes:)
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5716. ac_tool_warned=yes ;;
  5717. esac
  5718. OTOOL=$ac_ct_OTOOL
  5719. fi
  5720. else
  5721. OTOOL="$ac_cv_prog_OTOOL"
  5722. fi
  5723. if test -n "$ac_tool_prefix"; then
  5724. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5725. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5727. $as_echo_n "checking for $ac_word... " >&6; }
  5728. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5729. $as_echo_n "(cached) " >&6
  5730. else
  5731. if test -n "$OTOOL64"; then
  5732. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5733. else
  5734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5735. for as_dir in $PATH
  5736. do
  5737. IFS=$as_save_IFS
  5738. test -z "$as_dir" && as_dir=.
  5739. for ac_exec_ext in '' $ac_executable_extensions; do
  5740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5741. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5743. break 2
  5744. fi
  5745. done
  5746. done
  5747. IFS=$as_save_IFS
  5748. fi
  5749. fi
  5750. OTOOL64=$ac_cv_prog_OTOOL64
  5751. if test -n "$OTOOL64"; then
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5753. $as_echo "$OTOOL64" >&6; }
  5754. else
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5756. $as_echo "no" >&6; }
  5757. fi
  5758. fi
  5759. if test -z "$ac_cv_prog_OTOOL64"; then
  5760. ac_ct_OTOOL64=$OTOOL64
  5761. # Extract the first word of "otool64", so it can be a program name with args.
  5762. set dummy otool64; ac_word=$2
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5764. $as_echo_n "checking for $ac_word... " >&6; }
  5765. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. if test -n "$ac_ct_OTOOL64"; then
  5769. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5770. else
  5771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5772. for as_dir in $PATH
  5773. do
  5774. IFS=$as_save_IFS
  5775. test -z "$as_dir" && as_dir=.
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5778. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5788. if test -n "$ac_ct_OTOOL64"; then
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5790. $as_echo "$ac_ct_OTOOL64" >&6; }
  5791. else
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795. if test "x$ac_ct_OTOOL64" = x; then
  5796. OTOOL64=":"
  5797. else
  5798. case $cross_compiling:$ac_tool_warned in
  5799. yes:)
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5802. ac_tool_warned=yes ;;
  5803. esac
  5804. OTOOL64=$ac_ct_OTOOL64
  5805. fi
  5806. else
  5807. OTOOL64="$ac_cv_prog_OTOOL64"
  5808. fi
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5810. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5811. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. lt_cv_apple_cc_single_mod=no
  5815. if test -z "${LT_MULTI_MODULE}"; then
  5816. # By default we will add the -single_module flag. You can override
  5817. # by either setting the environment variable LT_MULTI_MODULE
  5818. # non-empty at configure time, or by adding -multi_module to the
  5819. # link flags.
  5820. rm -rf libconftest.dylib*
  5821. echo "int foo(void){return 1;}" > conftest.c
  5822. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5823. -dynamiclib -Wl,-single_module conftest.c" >&5
  5824. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5825. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5826. _lt_result=$?
  5827. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5828. lt_cv_apple_cc_single_mod=yes
  5829. else
  5830. cat conftest.err >&5
  5831. fi
  5832. rm -rf libconftest.dylib*
  5833. rm -f conftest.*
  5834. fi
  5835. fi
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5837. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5839. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5840. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. lt_cv_ld_exported_symbols_list=no
  5844. save_LDFLAGS=$LDFLAGS
  5845. echo "_main" > conftest.sym
  5846. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5848. /* end confdefs.h. */
  5849. int
  5850. main ()
  5851. {
  5852. ;
  5853. return 0;
  5854. }
  5855. _ACEOF
  5856. if ac_fn_c_try_link "$LINENO"; then :
  5857. lt_cv_ld_exported_symbols_list=yes
  5858. else
  5859. lt_cv_ld_exported_symbols_list=no
  5860. fi
  5861. rm -f core conftest.err conftest.$ac_objext \
  5862. conftest$ac_exeext conftest.$ac_ext
  5863. LDFLAGS="$save_LDFLAGS"
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5866. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5867. case $host_os in
  5868. rhapsody* | darwin1.[012])
  5869. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5870. darwin1.*)
  5871. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5872. darwin*) # darwin 5.x on
  5873. # if running on 10.5 or later, the deployment target defaults
  5874. # to the OS version, if on x86, and 10.4, the deployment
  5875. # target defaults to 10.4. Don't you love it?
  5876. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5877. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5878. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5879. 10.[012]*)
  5880. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5881. 10.*)
  5882. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5883. esac
  5884. ;;
  5885. esac
  5886. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5887. _lt_dar_single_mod='$single_module'
  5888. fi
  5889. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5890. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5891. else
  5892. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5893. fi
  5894. if test "$DSYMUTIL" != ":"; then
  5895. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5896. else
  5897. _lt_dsymutil=
  5898. fi
  5899. ;;
  5900. esac
  5901. ac_ext=c
  5902. ac_cpp='$CPP $CPPFLAGS'
  5903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5907. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5908. # On Suns, sometimes $CPP names a directory.
  5909. if test -n "$CPP" && test -d "$CPP"; then
  5910. CPP=
  5911. fi
  5912. if test -z "$CPP"; then
  5913. if test "${ac_cv_prog_CPP+set}" = set; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. # Double quotes because CPP needs to be expanded
  5917. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5918. do
  5919. ac_preproc_ok=false
  5920. for ac_c_preproc_warn_flag in '' yes
  5921. do
  5922. # Use a header file that comes with gcc, so configuring glibc
  5923. # with a fresh cross-compiler works.
  5924. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5925. # <limits.h> exists even on freestanding compilers.
  5926. # On the NeXT, cc -E runs the code through the compiler's parser,
  5927. # not just through cpp. "Syntax error" is here to catch this case.
  5928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5929. /* end confdefs.h. */
  5930. #ifdef __STDC__
  5931. # include <limits.h>
  5932. #else
  5933. # include <assert.h>
  5934. #endif
  5935. Syntax error
  5936. _ACEOF
  5937. if ac_fn_c_try_cpp "$LINENO"; then :
  5938. else
  5939. # Broken: fails on valid input.
  5940. continue
  5941. fi
  5942. rm -f conftest.err conftest.$ac_ext
  5943. # OK, works on sane cases. Now check whether nonexistent headers
  5944. # can be detected and how.
  5945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5946. /* end confdefs.h. */
  5947. #include <ac_nonexistent.h>
  5948. _ACEOF
  5949. if ac_fn_c_try_cpp "$LINENO"; then :
  5950. # Broken: success on invalid input.
  5951. continue
  5952. else
  5953. # Passes both tests.
  5954. ac_preproc_ok=:
  5955. break
  5956. fi
  5957. rm -f conftest.err conftest.$ac_ext
  5958. done
  5959. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5960. rm -f conftest.err conftest.$ac_ext
  5961. if $ac_preproc_ok; then :
  5962. break
  5963. fi
  5964. done
  5965. ac_cv_prog_CPP=$CPP
  5966. fi
  5967. CPP=$ac_cv_prog_CPP
  5968. else
  5969. ac_cv_prog_CPP=$CPP
  5970. fi
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5972. $as_echo "$CPP" >&6; }
  5973. ac_preproc_ok=false
  5974. for ac_c_preproc_warn_flag in '' yes
  5975. do
  5976. # Use a header file that comes with gcc, so configuring glibc
  5977. # with a fresh cross-compiler works.
  5978. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5979. # <limits.h> exists even on freestanding compilers.
  5980. # On the NeXT, cc -E runs the code through the compiler's parser,
  5981. # not just through cpp. "Syntax error" is here to catch this case.
  5982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5983. /* end confdefs.h. */
  5984. #ifdef __STDC__
  5985. # include <limits.h>
  5986. #else
  5987. # include <assert.h>
  5988. #endif
  5989. Syntax error
  5990. _ACEOF
  5991. if ac_fn_c_try_cpp "$LINENO"; then :
  5992. else
  5993. # Broken: fails on valid input.
  5994. continue
  5995. fi
  5996. rm -f conftest.err conftest.$ac_ext
  5997. # OK, works on sane cases. Now check whether nonexistent headers
  5998. # can be detected and how.
  5999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6000. /* end confdefs.h. */
  6001. #include <ac_nonexistent.h>
  6002. _ACEOF
  6003. if ac_fn_c_try_cpp "$LINENO"; then :
  6004. # Broken: success on invalid input.
  6005. continue
  6006. else
  6007. # Passes both tests.
  6008. ac_preproc_ok=:
  6009. break
  6010. fi
  6011. rm -f conftest.err conftest.$ac_ext
  6012. done
  6013. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6014. rm -f conftest.err conftest.$ac_ext
  6015. if $ac_preproc_ok; then :
  6016. else
  6017. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6019. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6020. See \`config.log' for more details." "$LINENO" 5; }
  6021. fi
  6022. ac_ext=c
  6023. ac_cpp='$CPP $CPPFLAGS'
  6024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6028. $as_echo_n "checking for ANSI C header files... " >&6; }
  6029. if test "${ac_cv_header_stdc+set}" = set; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. #include <stdlib.h>
  6035. #include <stdarg.h>
  6036. #include <string.h>
  6037. #include <float.h>
  6038. int
  6039. main ()
  6040. {
  6041. ;
  6042. return 0;
  6043. }
  6044. _ACEOF
  6045. if ac_fn_c_try_compile "$LINENO"; then :
  6046. ac_cv_header_stdc=yes
  6047. else
  6048. ac_cv_header_stdc=no
  6049. fi
  6050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6051. if test $ac_cv_header_stdc = yes; then
  6052. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. #include <string.h>
  6056. _ACEOF
  6057. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6058. $EGREP "memchr" >/dev/null 2>&1; then :
  6059. else
  6060. ac_cv_header_stdc=no
  6061. fi
  6062. rm -f conftest*
  6063. fi
  6064. if test $ac_cv_header_stdc = yes; then
  6065. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. #include <stdlib.h>
  6069. _ACEOF
  6070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6071. $EGREP "free" >/dev/null 2>&1; then :
  6072. else
  6073. ac_cv_header_stdc=no
  6074. fi
  6075. rm -f conftest*
  6076. fi
  6077. if test $ac_cv_header_stdc = yes; then
  6078. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6079. if test "$cross_compiling" = yes; then :
  6080. :
  6081. else
  6082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6083. /* end confdefs.h. */
  6084. #include <ctype.h>
  6085. #include <stdlib.h>
  6086. #if ((' ' & 0x0FF) == 0x020)
  6087. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6088. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6089. #else
  6090. # define ISLOWER(c) \
  6091. (('a' <= (c) && (c) <= 'i') \
  6092. || ('j' <= (c) && (c) <= 'r') \
  6093. || ('s' <= (c) && (c) <= 'z'))
  6094. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6095. #endif
  6096. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6097. int
  6098. main ()
  6099. {
  6100. int i;
  6101. for (i = 0; i < 256; i++)
  6102. if (XOR (islower (i), ISLOWER (i))
  6103. || toupper (i) != TOUPPER (i))
  6104. return 2;
  6105. return 0;
  6106. }
  6107. _ACEOF
  6108. if ac_fn_c_try_run "$LINENO"; then :
  6109. else
  6110. ac_cv_header_stdc=no
  6111. fi
  6112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6113. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6114. fi
  6115. fi
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6118. $as_echo "$ac_cv_header_stdc" >&6; }
  6119. if test $ac_cv_header_stdc = yes; then
  6120. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6121. fi
  6122. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6123. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6124. inttypes.h stdint.h unistd.h
  6125. do :
  6126. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6127. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6128. "
  6129. eval as_val=\$$as_ac_Header
  6130. if test "x$as_val" = x""yes; then :
  6131. cat >>confdefs.h <<_ACEOF
  6132. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6133. _ACEOF
  6134. fi
  6135. done
  6136. for ac_header in dlfcn.h
  6137. do :
  6138. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6139. "
  6140. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6141. cat >>confdefs.h <<_ACEOF
  6142. #define HAVE_DLFCN_H 1
  6143. _ACEOF
  6144. fi
  6145. done
  6146. ac_ext=cpp
  6147. ac_cpp='$CXXCPP $CPPFLAGS'
  6148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6151. if test -z "$CXX"; then
  6152. if test -n "$CCC"; then
  6153. CXX=$CCC
  6154. else
  6155. if test -n "$ac_tool_prefix"; then
  6156. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6157. do
  6158. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6159. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if test "${ac_cv_prog_CXX+set}" = set; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$CXX"; then
  6166. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6175. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. CXX=$ac_cv_prog_CXX
  6185. if test -n "$CXX"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6187. $as_echo "$CXX" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. test -n "$CXX" && break
  6193. done
  6194. fi
  6195. if test -z "$CXX"; then
  6196. ac_ct_CXX=$CXX
  6197. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6198. do
  6199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6200. set dummy $ac_prog; ac_word=$2
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6202. $as_echo_n "checking for $ac_word... " >&6; }
  6203. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6204. $as_echo_n "(cached) " >&6
  6205. else
  6206. if test -n "$ac_ct_CXX"; then
  6207. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6208. else
  6209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6210. for as_dir in $PATH
  6211. do
  6212. IFS=$as_save_IFS
  6213. test -z "$as_dir" && as_dir=.
  6214. for ac_exec_ext in '' $ac_executable_extensions; do
  6215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6216. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6218. break 2
  6219. fi
  6220. done
  6221. done
  6222. IFS=$as_save_IFS
  6223. fi
  6224. fi
  6225. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6226. if test -n "$ac_ct_CXX"; then
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6228. $as_echo "$ac_ct_CXX" >&6; }
  6229. else
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6231. $as_echo "no" >&6; }
  6232. fi
  6233. test -n "$ac_ct_CXX" && break
  6234. done
  6235. if test "x$ac_ct_CXX" = x; then
  6236. CXX="g++"
  6237. else
  6238. case $cross_compiling:$ac_tool_warned in
  6239. yes:)
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6242. ac_tool_warned=yes ;;
  6243. esac
  6244. CXX=$ac_ct_CXX
  6245. fi
  6246. fi
  6247. fi
  6248. fi
  6249. # Provide some information about the compiler.
  6250. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6251. set X $ac_compile
  6252. ac_compiler=$2
  6253. for ac_option in --version -v -V -qversion; do
  6254. { { ac_try="$ac_compiler $ac_option >&5"
  6255. case "(($ac_try" in
  6256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6257. *) ac_try_echo=$ac_try;;
  6258. esac
  6259. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6260. $as_echo "$ac_try_echo"; } >&5
  6261. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6262. ac_status=$?
  6263. if test -s conftest.err; then
  6264. sed '10a\
  6265. ... rest of stderr output deleted ...
  6266. 10q' conftest.err >conftest.er1
  6267. cat conftest.er1 >&5
  6268. rm -f conftest.er1 conftest.err
  6269. fi
  6270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6271. test $ac_status = 0; }
  6272. done
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6274. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6275. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6279. /* end confdefs.h. */
  6280. int
  6281. main ()
  6282. {
  6283. #ifndef __GNUC__
  6284. choke me
  6285. #endif
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_cxx_try_compile "$LINENO"; then :
  6291. ac_compiler_gnu=yes
  6292. else
  6293. ac_compiler_gnu=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6299. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6300. if test $ac_compiler_gnu = yes; then
  6301. GXX=yes
  6302. else
  6303. GXX=
  6304. fi
  6305. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6306. ac_save_CXXFLAGS=$CXXFLAGS
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6308. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6309. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6310. $as_echo_n "(cached) " >&6
  6311. else
  6312. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6313. ac_cxx_werror_flag=yes
  6314. ac_cv_prog_cxx_g=no
  6315. CXXFLAGS="-g"
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. int
  6319. main ()
  6320. {
  6321. ;
  6322. return 0;
  6323. }
  6324. _ACEOF
  6325. if ac_fn_cxx_try_compile "$LINENO"; then :
  6326. ac_cv_prog_cxx_g=yes
  6327. else
  6328. CXXFLAGS=""
  6329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6330. /* end confdefs.h. */
  6331. int
  6332. main ()
  6333. {
  6334. ;
  6335. return 0;
  6336. }
  6337. _ACEOF
  6338. if ac_fn_cxx_try_compile "$LINENO"; then :
  6339. else
  6340. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6341. CXXFLAGS="-g"
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. int
  6345. main ()
  6346. {
  6347. ;
  6348. return 0;
  6349. }
  6350. _ACEOF
  6351. if ac_fn_cxx_try_compile "$LINENO"; then :
  6352. ac_cv_prog_cxx_g=yes
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6357. fi
  6358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6359. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6360. fi
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6362. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6363. if test "$ac_test_CXXFLAGS" = set; then
  6364. CXXFLAGS=$ac_save_CXXFLAGS
  6365. elif test $ac_cv_prog_cxx_g = yes; then
  6366. if test "$GXX" = yes; then
  6367. CXXFLAGS="-g -O2"
  6368. else
  6369. CXXFLAGS="-g"
  6370. fi
  6371. else
  6372. if test "$GXX" = yes; then
  6373. CXXFLAGS="-O2"
  6374. else
  6375. CXXFLAGS=
  6376. fi
  6377. fi
  6378. ac_ext=c
  6379. ac_cpp='$CPP $CPPFLAGS'
  6380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6383. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6384. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6385. (test "X$CXX" != "Xg++"))) ; then
  6386. ac_ext=cpp
  6387. ac_cpp='$CXXCPP $CPPFLAGS'
  6388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6392. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6393. if test -z "$CXXCPP"; then
  6394. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. # Double quotes because CXXCPP needs to be expanded
  6398. for CXXCPP in "$CXX -E" "/lib/cpp"
  6399. do
  6400. ac_preproc_ok=false
  6401. for ac_cxx_preproc_warn_flag in '' yes
  6402. do
  6403. # Use a header file that comes with gcc, so configuring glibc
  6404. # with a fresh cross-compiler works.
  6405. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6406. # <limits.h> exists even on freestanding compilers.
  6407. # On the NeXT, cc -E runs the code through the compiler's parser,
  6408. # not just through cpp. "Syntax error" is here to catch this case.
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. #ifdef __STDC__
  6412. # include <limits.h>
  6413. #else
  6414. # include <assert.h>
  6415. #endif
  6416. Syntax error
  6417. _ACEOF
  6418. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6419. else
  6420. # Broken: fails on valid input.
  6421. continue
  6422. fi
  6423. rm -f conftest.err conftest.$ac_ext
  6424. # OK, works on sane cases. Now check whether nonexistent headers
  6425. # can be detected and how.
  6426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6427. /* end confdefs.h. */
  6428. #include <ac_nonexistent.h>
  6429. _ACEOF
  6430. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6431. # Broken: success on invalid input.
  6432. continue
  6433. else
  6434. # Passes both tests.
  6435. ac_preproc_ok=:
  6436. break
  6437. fi
  6438. rm -f conftest.err conftest.$ac_ext
  6439. done
  6440. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6441. rm -f conftest.err conftest.$ac_ext
  6442. if $ac_preproc_ok; then :
  6443. break
  6444. fi
  6445. done
  6446. ac_cv_prog_CXXCPP=$CXXCPP
  6447. fi
  6448. CXXCPP=$ac_cv_prog_CXXCPP
  6449. else
  6450. ac_cv_prog_CXXCPP=$CXXCPP
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6453. $as_echo "$CXXCPP" >&6; }
  6454. ac_preproc_ok=false
  6455. for ac_cxx_preproc_warn_flag in '' yes
  6456. do
  6457. # Use a header file that comes with gcc, so configuring glibc
  6458. # with a fresh cross-compiler works.
  6459. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6460. # <limits.h> exists even on freestanding compilers.
  6461. # On the NeXT, cc -E runs the code through the compiler's parser,
  6462. # not just through cpp. "Syntax error" is here to catch this case.
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. #ifdef __STDC__
  6466. # include <limits.h>
  6467. #else
  6468. # include <assert.h>
  6469. #endif
  6470. Syntax error
  6471. _ACEOF
  6472. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6473. else
  6474. # Broken: fails on valid input.
  6475. continue
  6476. fi
  6477. rm -f conftest.err conftest.$ac_ext
  6478. # OK, works on sane cases. Now check whether nonexistent headers
  6479. # can be detected and how.
  6480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6481. /* end confdefs.h. */
  6482. #include <ac_nonexistent.h>
  6483. _ACEOF
  6484. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6485. # Broken: success on invalid input.
  6486. continue
  6487. else
  6488. # Passes both tests.
  6489. ac_preproc_ok=:
  6490. break
  6491. fi
  6492. rm -f conftest.err conftest.$ac_ext
  6493. done
  6494. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6495. rm -f conftest.err conftest.$ac_ext
  6496. if $ac_preproc_ok; then :
  6497. else
  6498. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6499. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6500. _lt_caught_CXX_error=yes; }
  6501. fi
  6502. ac_ext=c
  6503. ac_cpp='$CPP $CPPFLAGS'
  6504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6507. else
  6508. _lt_caught_CXX_error=yes
  6509. fi
  6510. # Set options
  6511. enable_dlopen=no
  6512. # Check whether --enable-shared was given.
  6513. if test "${enable_shared+set}" = set; then :
  6514. enableval=$enable_shared; p=${PACKAGE-default}
  6515. case $enableval in
  6516. yes) enable_shared=yes ;;
  6517. no) enable_shared=no ;;
  6518. *)
  6519. enable_shared=no
  6520. # Look at the argument we got. We use all the common list separators.
  6521. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6522. for pkg in $enableval; do
  6523. IFS="$lt_save_ifs"
  6524. if test "X$pkg" = "X$p"; then
  6525. enable_shared=yes
  6526. fi
  6527. done
  6528. IFS="$lt_save_ifs"
  6529. ;;
  6530. esac
  6531. else
  6532. enable_shared=yes
  6533. fi
  6534. # Check whether --enable-static was given.
  6535. if test "${enable_static+set}" = set; then :
  6536. enableval=$enable_static; p=${PACKAGE-default}
  6537. case $enableval in
  6538. yes) enable_static=yes ;;
  6539. no) enable_static=no ;;
  6540. *)
  6541. enable_static=no
  6542. # Look at the argument we got. We use all the common list separators.
  6543. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6544. for pkg in $enableval; do
  6545. IFS="$lt_save_ifs"
  6546. if test "X$pkg" = "X$p"; then
  6547. enable_static=yes
  6548. fi
  6549. done
  6550. IFS="$lt_save_ifs"
  6551. ;;
  6552. esac
  6553. else
  6554. enable_static=yes
  6555. fi
  6556. # Check whether --with-pic was given.
  6557. if test "${with_pic+set}" = set; then :
  6558. withval=$with_pic; pic_mode="$withval"
  6559. else
  6560. pic_mode=default
  6561. fi
  6562. test -z "$pic_mode" && pic_mode=default
  6563. # Check whether --enable-fast-install was given.
  6564. if test "${enable_fast_install+set}" = set; then :
  6565. enableval=$enable_fast_install; p=${PACKAGE-default}
  6566. case $enableval in
  6567. yes) enable_fast_install=yes ;;
  6568. no) enable_fast_install=no ;;
  6569. *)
  6570. enable_fast_install=no
  6571. # Look at the argument we got. We use all the common list separators.
  6572. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6573. for pkg in $enableval; do
  6574. IFS="$lt_save_ifs"
  6575. if test "X$pkg" = "X$p"; then
  6576. enable_fast_install=yes
  6577. fi
  6578. done
  6579. IFS="$lt_save_ifs"
  6580. ;;
  6581. esac
  6582. else
  6583. enable_fast_install=yes
  6584. fi
  6585. # This can be used to rebuild libtool when needed
  6586. LIBTOOL_DEPS="$ltmain"
  6587. # Always use our own libtool.
  6588. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6589. test -z "$LN_S" && LN_S="ln -s"
  6590. if test -n "${ZSH_VERSION+set}" ; then
  6591. setopt NO_GLOB_SUBST
  6592. fi
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6594. $as_echo_n "checking for objdir... " >&6; }
  6595. if test "${lt_cv_objdir+set}" = set; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. rm -f .libs 2>/dev/null
  6599. mkdir .libs 2>/dev/null
  6600. if test -d .libs; then
  6601. lt_cv_objdir=.libs
  6602. else
  6603. # MS-DOS does not allow filenames that begin with a dot.
  6604. lt_cv_objdir=_libs
  6605. fi
  6606. rmdir .libs 2>/dev/null
  6607. fi
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6609. $as_echo "$lt_cv_objdir" >&6; }
  6610. objdir=$lt_cv_objdir
  6611. cat >>confdefs.h <<_ACEOF
  6612. #define LT_OBJDIR "$lt_cv_objdir/"
  6613. _ACEOF
  6614. case $host_os in
  6615. aix3*)
  6616. # AIX sometimes has problems with the GCC collect2 program. For some
  6617. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6618. # vanish in a puff of smoke.
  6619. if test "X${COLLECT_NAMES+set}" != Xset; then
  6620. COLLECT_NAMES=
  6621. export COLLECT_NAMES
  6622. fi
  6623. ;;
  6624. esac
  6625. # Sed substitution that helps us do robust quoting. It backslashifies
  6626. # metacharacters that are still active within double-quoted strings.
  6627. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6628. # Same as above, but do not quote variable references.
  6629. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6630. # Sed substitution to delay expansion of an escaped shell variable in a
  6631. # double_quote_subst'ed string.
  6632. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6633. # Sed substitution to delay expansion of an escaped single quote.
  6634. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6635. # Sed substitution to avoid accidental globbing in evaled expressions
  6636. no_glob_subst='s/\*/\\\*/g'
  6637. # Global variables:
  6638. ofile=libtool
  6639. can_build_shared=yes
  6640. # All known linkers require a `.a' archive for static linking (except MSVC,
  6641. # which needs '.lib').
  6642. libext=a
  6643. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6644. old_CC="$CC"
  6645. old_CFLAGS="$CFLAGS"
  6646. # Set sane defaults for various variables
  6647. test -z "$CC" && CC=cc
  6648. test -z "$LTCC" && LTCC=$CC
  6649. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6650. test -z "$LD" && LD=ld
  6651. test -z "$ac_objext" && ac_objext=o
  6652. for cc_temp in $compiler""; do
  6653. case $cc_temp in
  6654. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6655. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6656. \-*) ;;
  6657. *) break;;
  6658. esac
  6659. done
  6660. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6661. # Only perform the check for file, if the check method requires it
  6662. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6663. case $deplibs_check_method in
  6664. file_magic*)
  6665. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6667. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6668. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. case $MAGIC_CMD in
  6672. [\\/*] | ?:[\\/]*)
  6673. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6674. ;;
  6675. *)
  6676. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6677. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6678. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6679. for ac_dir in $ac_dummy; do
  6680. IFS="$lt_save_ifs"
  6681. test -z "$ac_dir" && ac_dir=.
  6682. if test -f $ac_dir/${ac_tool_prefix}file; then
  6683. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6684. if test -n "$file_magic_test_file"; then
  6685. case $deplibs_check_method in
  6686. "file_magic "*)
  6687. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6688. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6689. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6690. $EGREP "$file_magic_regex" > /dev/null; then
  6691. :
  6692. else
  6693. cat <<_LT_EOF 1>&2
  6694. *** Warning: the command libtool uses to detect shared libraries,
  6695. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6696. *** The result is that libtool may fail to recognize shared libraries
  6697. *** as such. This will affect the creation of libtool libraries that
  6698. *** depend on shared libraries, but programs linked with such libtool
  6699. *** libraries will work regardless of this problem. Nevertheless, you
  6700. *** may want to report the problem to your system manager and/or to
  6701. *** bug-libtool@gnu.org
  6702. _LT_EOF
  6703. fi ;;
  6704. esac
  6705. fi
  6706. break
  6707. fi
  6708. done
  6709. IFS="$lt_save_ifs"
  6710. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6711. ;;
  6712. esac
  6713. fi
  6714. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6715. if test -n "$MAGIC_CMD"; then
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6717. $as_echo "$MAGIC_CMD" >&6; }
  6718. else
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6720. $as_echo "no" >&6; }
  6721. fi
  6722. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6723. if test -n "$ac_tool_prefix"; then
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6725. $as_echo_n "checking for file... " >&6; }
  6726. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. case $MAGIC_CMD in
  6730. [\\/*] | ?:[\\/]*)
  6731. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6732. ;;
  6733. *)
  6734. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6735. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6736. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6737. for ac_dir in $ac_dummy; do
  6738. IFS="$lt_save_ifs"
  6739. test -z "$ac_dir" && ac_dir=.
  6740. if test -f $ac_dir/file; then
  6741. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6742. if test -n "$file_magic_test_file"; then
  6743. case $deplibs_check_method in
  6744. "file_magic "*)
  6745. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6746. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6747. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6748. $EGREP "$file_magic_regex" > /dev/null; then
  6749. :
  6750. else
  6751. cat <<_LT_EOF 1>&2
  6752. *** Warning: the command libtool uses to detect shared libraries,
  6753. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6754. *** The result is that libtool may fail to recognize shared libraries
  6755. *** as such. This will affect the creation of libtool libraries that
  6756. *** depend on shared libraries, but programs linked with such libtool
  6757. *** libraries will work regardless of this problem. Nevertheless, you
  6758. *** may want to report the problem to your system manager and/or to
  6759. *** bug-libtool@gnu.org
  6760. _LT_EOF
  6761. fi ;;
  6762. esac
  6763. fi
  6764. break
  6765. fi
  6766. done
  6767. IFS="$lt_save_ifs"
  6768. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6769. ;;
  6770. esac
  6771. fi
  6772. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6773. if test -n "$MAGIC_CMD"; then
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6775. $as_echo "$MAGIC_CMD" >&6; }
  6776. else
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6778. $as_echo "no" >&6; }
  6779. fi
  6780. else
  6781. MAGIC_CMD=:
  6782. fi
  6783. fi
  6784. fi
  6785. ;;
  6786. esac
  6787. # Use C for the default configuration in the libtool script
  6788. lt_save_CC="$CC"
  6789. ac_ext=c
  6790. ac_cpp='$CPP $CPPFLAGS'
  6791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6794. # Source file extension for C test sources.
  6795. ac_ext=c
  6796. # Object file extension for compiled C test sources.
  6797. objext=o
  6798. objext=$objext
  6799. # Code to be used in simple compile tests
  6800. lt_simple_compile_test_code="int some_variable = 0;"
  6801. # Code to be used in simple link tests
  6802. lt_simple_link_test_code='int main(){return(0);}'
  6803. # If no C compiler was specified, use CC.
  6804. LTCC=${LTCC-"$CC"}
  6805. # If no C compiler flags were specified, use CFLAGS.
  6806. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6807. # Allow CC to be a program name with arguments.
  6808. compiler=$CC
  6809. # Save the default compiler, since it gets overwritten when the other
  6810. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6811. compiler_DEFAULT=$CC
  6812. # save warnings/boilerplate of simple test code
  6813. ac_outfile=conftest.$ac_objext
  6814. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6815. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6816. _lt_compiler_boilerplate=`cat conftest.err`
  6817. $RM conftest*
  6818. ac_outfile=conftest.$ac_objext
  6819. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6820. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6821. _lt_linker_boilerplate=`cat conftest.err`
  6822. $RM -r conftest*
  6823. if test -n "$compiler"; then
  6824. lt_prog_compiler_no_builtin_flag=
  6825. if test "$GCC" = yes; then
  6826. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6828. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6829. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. lt_cv_prog_compiler_rtti_exceptions=no
  6833. ac_outfile=conftest.$ac_objext
  6834. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6835. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6836. # Insert the option either (1) after the last *FLAGS variable, or
  6837. # (2) before a word containing "conftest.", or (3) at the end.
  6838. # Note that $ac_compile itself does not contain backslashes and begins
  6839. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6840. # The option is referenced via a variable to avoid confusing sed.
  6841. lt_compile=`echo "$ac_compile" | $SED \
  6842. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6844. -e 's:$: $lt_compiler_flag:'`
  6845. (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
  6846. (eval "$lt_compile" 2>conftest.err)
  6847. ac_status=$?
  6848. cat conftest.err >&5
  6849. echo "$as_me:7822: \$? = $ac_status" >&5
  6850. if (exit $ac_status) && test -s "$ac_outfile"; then
  6851. # The compiler can only warn and ignore the option if not recognized
  6852. # So say no if there are warnings other than the usual output.
  6853. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6854. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6855. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6856. lt_cv_prog_compiler_rtti_exceptions=yes
  6857. fi
  6858. fi
  6859. $RM conftest*
  6860. fi
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6862. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6863. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6864. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6865. else
  6866. :
  6867. fi
  6868. fi
  6869. lt_prog_compiler_wl=
  6870. lt_prog_compiler_pic=
  6871. lt_prog_compiler_static=
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6873. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6874. if test "$GCC" = yes; then
  6875. lt_prog_compiler_wl='-Wl,'
  6876. lt_prog_compiler_static='-static'
  6877. case $host_os in
  6878. aix*)
  6879. # All AIX code is PIC.
  6880. if test "$host_cpu" = ia64; then
  6881. # AIX 5 now supports IA64 processor
  6882. lt_prog_compiler_static='-Bstatic'
  6883. fi
  6884. ;;
  6885. amigaos*)
  6886. case $host_cpu in
  6887. powerpc)
  6888. # see comment about AmigaOS4 .so support
  6889. lt_prog_compiler_pic='-fPIC'
  6890. ;;
  6891. m68k)
  6892. # FIXME: we need at least 68020 code to build shared libraries, but
  6893. # adding the `-m68020' flag to GCC prevents building anything better,
  6894. # like `-m68040'.
  6895. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6896. ;;
  6897. esac
  6898. ;;
  6899. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6900. # PIC is the default for these OSes.
  6901. ;;
  6902. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6903. # This hack is so that the source file can tell whether it is being
  6904. # built for inclusion in a dll (and should export symbols for example).
  6905. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6906. # (--disable-auto-import) libraries
  6907. lt_prog_compiler_pic='-DDLL_EXPORT'
  6908. ;;
  6909. darwin* | rhapsody*)
  6910. # PIC is the default on this platform
  6911. # Common symbols not allowed in MH_DYLIB files
  6912. lt_prog_compiler_pic='-fno-common'
  6913. ;;
  6914. hpux*)
  6915. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6916. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6917. # sets the default TLS model and affects inlining.
  6918. case $host_cpu in
  6919. hppa*64*)
  6920. # +Z the default
  6921. ;;
  6922. *)
  6923. lt_prog_compiler_pic='-fPIC'
  6924. ;;
  6925. esac
  6926. ;;
  6927. interix[3-9]*)
  6928. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6929. # Instead, we relocate shared libraries at runtime.
  6930. ;;
  6931. msdosdjgpp*)
  6932. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6933. # on systems that don't support them.
  6934. lt_prog_compiler_can_build_shared=no
  6935. enable_shared=no
  6936. ;;
  6937. *nto* | *qnx*)
  6938. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6939. # it will coredump.
  6940. lt_prog_compiler_pic='-fPIC -shared'
  6941. ;;
  6942. sysv4*MP*)
  6943. if test -d /usr/nec; then
  6944. lt_prog_compiler_pic=-Kconform_pic
  6945. fi
  6946. ;;
  6947. *)
  6948. lt_prog_compiler_pic='-fPIC'
  6949. ;;
  6950. esac
  6951. else
  6952. # PORTME Check for flag to pass linker flags through the system compiler.
  6953. case $host_os in
  6954. aix*)
  6955. lt_prog_compiler_wl='-Wl,'
  6956. if test "$host_cpu" = ia64; then
  6957. # AIX 5 now supports IA64 processor
  6958. lt_prog_compiler_static='-Bstatic'
  6959. else
  6960. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6961. fi
  6962. ;;
  6963. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6964. # This hack is so that the source file can tell whether it is being
  6965. # built for inclusion in a dll (and should export symbols for example).
  6966. lt_prog_compiler_pic='-DDLL_EXPORT'
  6967. ;;
  6968. hpux9* | hpux10* | hpux11*)
  6969. lt_prog_compiler_wl='-Wl,'
  6970. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6971. # not for PA HP-UX.
  6972. case $host_cpu in
  6973. hppa*64*|ia64*)
  6974. # +Z the default
  6975. ;;
  6976. *)
  6977. lt_prog_compiler_pic='+Z'
  6978. ;;
  6979. esac
  6980. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6981. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6982. ;;
  6983. irix5* | irix6* | nonstopux*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # PIC (with -KPIC) is the default.
  6986. lt_prog_compiler_static='-non_shared'
  6987. ;;
  6988. linux* | k*bsd*-gnu)
  6989. case $cc_basename in
  6990. # old Intel for x86_64 which still supported -KPIC.
  6991. ecc*)
  6992. lt_prog_compiler_wl='-Wl,'
  6993. lt_prog_compiler_pic='-KPIC'
  6994. lt_prog_compiler_static='-static'
  6995. ;;
  6996. # icc used to be incompatible with GCC.
  6997. # ICC 10 doesn't accept -KPIC any more.
  6998. icc* | ifort*)
  6999. lt_prog_compiler_wl='-Wl,'
  7000. lt_prog_compiler_pic='-fPIC'
  7001. lt_prog_compiler_static='-static'
  7002. ;;
  7003. # Lahey Fortran 8.1.
  7004. lf95*)
  7005. lt_prog_compiler_wl='-Wl,'
  7006. lt_prog_compiler_pic='--shared'
  7007. lt_prog_compiler_static='--static'
  7008. ;;
  7009. pgcc* | pgf77* | pgf90* | pgf95*)
  7010. # Portland Group compilers (*not* the Pentium gcc compiler,
  7011. # which looks to be a dead project)
  7012. lt_prog_compiler_wl='-Wl,'
  7013. lt_prog_compiler_pic='-fpic'
  7014. lt_prog_compiler_static='-Bstatic'
  7015. ;;
  7016. ccc*)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. # All Alpha code is PIC.
  7019. lt_prog_compiler_static='-non_shared'
  7020. ;;
  7021. xl*)
  7022. # IBM XL C 8.0/Fortran 10.1 on PPC
  7023. lt_prog_compiler_wl='-Wl,'
  7024. lt_prog_compiler_pic='-qpic'
  7025. lt_prog_compiler_static='-qstaticlink'
  7026. ;;
  7027. *)
  7028. case `$CC -V 2>&1 | sed 5q` in
  7029. *Sun\ C*)
  7030. # Sun C 5.9
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-Bstatic'
  7033. lt_prog_compiler_wl='-Wl,'
  7034. ;;
  7035. *Sun\ F*)
  7036. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7037. lt_prog_compiler_pic='-KPIC'
  7038. lt_prog_compiler_static='-Bstatic'
  7039. lt_prog_compiler_wl=''
  7040. ;;
  7041. esac
  7042. ;;
  7043. esac
  7044. ;;
  7045. newsos6)
  7046. lt_prog_compiler_pic='-KPIC'
  7047. lt_prog_compiler_static='-Bstatic'
  7048. ;;
  7049. *nto* | *qnx*)
  7050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7051. # it will coredump.
  7052. lt_prog_compiler_pic='-fPIC -shared'
  7053. ;;
  7054. osf3* | osf4* | osf5*)
  7055. lt_prog_compiler_wl='-Wl,'
  7056. # All OSF/1 code is PIC.
  7057. lt_prog_compiler_static='-non_shared'
  7058. ;;
  7059. rdos*)
  7060. lt_prog_compiler_static='-non_shared'
  7061. ;;
  7062. solaris*)
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. case $cc_basename in
  7066. f77* | f90* | f95*)
  7067. lt_prog_compiler_wl='-Qoption ld ';;
  7068. *)
  7069. lt_prog_compiler_wl='-Wl,';;
  7070. esac
  7071. ;;
  7072. sunos4*)
  7073. lt_prog_compiler_wl='-Qoption ld '
  7074. lt_prog_compiler_pic='-PIC'
  7075. lt_prog_compiler_static='-Bstatic'
  7076. ;;
  7077. sysv4 | sysv4.2uw2* | sysv4.3*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. lt_prog_compiler_pic='-KPIC'
  7080. lt_prog_compiler_static='-Bstatic'
  7081. ;;
  7082. sysv4*MP*)
  7083. if test -d /usr/nec ;then
  7084. lt_prog_compiler_pic='-Kconform_pic'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. fi
  7087. ;;
  7088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7089. lt_prog_compiler_wl='-Wl,'
  7090. lt_prog_compiler_pic='-KPIC'
  7091. lt_prog_compiler_static='-Bstatic'
  7092. ;;
  7093. unicos*)
  7094. lt_prog_compiler_wl='-Wl,'
  7095. lt_prog_compiler_can_build_shared=no
  7096. ;;
  7097. uts4*)
  7098. lt_prog_compiler_pic='-pic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. *)
  7102. lt_prog_compiler_can_build_shared=no
  7103. ;;
  7104. esac
  7105. fi
  7106. case $host_os in
  7107. # For platforms which do not support PIC, -DPIC is meaningless:
  7108. *djgpp*)
  7109. lt_prog_compiler_pic=
  7110. ;;
  7111. *)
  7112. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7113. ;;
  7114. esac
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7116. $as_echo "$lt_prog_compiler_pic" >&6; }
  7117. #
  7118. # Check to make sure the PIC flag actually works.
  7119. #
  7120. if test -n "$lt_prog_compiler_pic"; then
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7122. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7123. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. lt_cv_prog_compiler_pic_works=no
  7127. ac_outfile=conftest.$ac_objext
  7128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7129. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7130. # Insert the option either (1) after the last *FLAGS variable, or
  7131. # (2) before a word containing "conftest.", or (3) at the end.
  7132. # Note that $ac_compile itself does not contain backslashes and begins
  7133. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7134. # The option is referenced via a variable to avoid confusing sed.
  7135. lt_compile=`echo "$ac_compile" | $SED \
  7136. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7137. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7138. -e 's:$: $lt_compiler_flag:'`
  7139. (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
  7140. (eval "$lt_compile" 2>conftest.err)
  7141. ac_status=$?
  7142. cat conftest.err >&5
  7143. echo "$as_me:8161: \$? = $ac_status" >&5
  7144. if (exit $ac_status) && test -s "$ac_outfile"; then
  7145. # The compiler can only warn and ignore the option if not recognized
  7146. # So say no if there are warnings other than the usual output.
  7147. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7148. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7149. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7150. lt_cv_prog_compiler_pic_works=yes
  7151. fi
  7152. fi
  7153. $RM conftest*
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7156. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7157. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7158. case $lt_prog_compiler_pic in
  7159. "" | " "*) ;;
  7160. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7161. esac
  7162. else
  7163. lt_prog_compiler_pic=
  7164. lt_prog_compiler_can_build_shared=no
  7165. fi
  7166. fi
  7167. #
  7168. # Check to make sure the static flag actually works.
  7169. #
  7170. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7172. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7173. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7174. $as_echo_n "(cached) " >&6
  7175. else
  7176. lt_cv_prog_compiler_static_works=no
  7177. save_LDFLAGS="$LDFLAGS"
  7178. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7179. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7181. # The linker can only warn and ignore the option if not recognized
  7182. # So say no if there are warnings
  7183. if test -s conftest.err; then
  7184. # Append any errors to the config.log.
  7185. cat conftest.err 1>&5
  7186. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7188. if diff conftest.exp conftest.er2 >/dev/null; then
  7189. lt_cv_prog_compiler_static_works=yes
  7190. fi
  7191. else
  7192. lt_cv_prog_compiler_static_works=yes
  7193. fi
  7194. fi
  7195. $RM -r conftest*
  7196. LDFLAGS="$save_LDFLAGS"
  7197. fi
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7199. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7200. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7201. :
  7202. else
  7203. lt_prog_compiler_static=
  7204. fi
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7206. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7207. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7208. $as_echo_n "(cached) " >&6
  7209. else
  7210. lt_cv_prog_compiler_c_o=no
  7211. $RM -r conftest 2>/dev/null
  7212. mkdir conftest
  7213. cd conftest
  7214. mkdir out
  7215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7216. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7217. # Insert the option either (1) after the last *FLAGS variable, or
  7218. # (2) before a word containing "conftest.", or (3) at the end.
  7219. # Note that $ac_compile itself does not contain backslashes and begins
  7220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7221. lt_compile=`echo "$ac_compile" | $SED \
  7222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7224. -e 's:$: $lt_compiler_flag:'`
  7225. (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
  7226. (eval "$lt_compile" 2>out/conftest.err)
  7227. ac_status=$?
  7228. cat out/conftest.err >&5
  7229. echo "$as_me:8266: \$? = $ac_status" >&5
  7230. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7231. then
  7232. # The compiler can only warn and ignore the option if not recognized
  7233. # So say no if there are warnings
  7234. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7235. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7236. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7237. lt_cv_prog_compiler_c_o=yes
  7238. fi
  7239. fi
  7240. chmod u+w . 2>&5
  7241. $RM conftest*
  7242. # SGI C++ compiler will create directory out/ii_files/ for
  7243. # template instantiation
  7244. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7245. $RM out/* && rmdir out
  7246. cd ..
  7247. $RM -r conftest
  7248. $RM conftest*
  7249. fi
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7251. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7253. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7254. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. lt_cv_prog_compiler_c_o=no
  7258. $RM -r conftest 2>/dev/null
  7259. mkdir conftest
  7260. cd conftest
  7261. mkdir out
  7262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7263. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7264. # Insert the option either (1) after the last *FLAGS variable, or
  7265. # (2) before a word containing "conftest.", or (3) at the end.
  7266. # Note that $ac_compile itself does not contain backslashes and begins
  7267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7268. lt_compile=`echo "$ac_compile" | $SED \
  7269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7271. -e 's:$: $lt_compiler_flag:'`
  7272. (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
  7273. (eval "$lt_compile" 2>out/conftest.err)
  7274. ac_status=$?
  7275. cat out/conftest.err >&5
  7276. echo "$as_me:8321: \$? = $ac_status" >&5
  7277. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7278. then
  7279. # The compiler can only warn and ignore the option if not recognized
  7280. # So say no if there are warnings
  7281. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7282. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7283. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7284. lt_cv_prog_compiler_c_o=yes
  7285. fi
  7286. fi
  7287. chmod u+w . 2>&5
  7288. $RM conftest*
  7289. # SGI C++ compiler will create directory out/ii_files/ for
  7290. # template instantiation
  7291. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7292. $RM out/* && rmdir out
  7293. cd ..
  7294. $RM -r conftest
  7295. $RM conftest*
  7296. fi
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7298. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7299. hard_links="nottested"
  7300. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7301. # do not overwrite the value of need_locks provided by the user
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7303. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7304. hard_links=yes
  7305. $RM conftest*
  7306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7307. touch conftest.a
  7308. ln conftest.a conftest.b 2>&5 || hard_links=no
  7309. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7311. $as_echo "$hard_links" >&6; }
  7312. if test "$hard_links" = no; then
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7314. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7315. need_locks=warn
  7316. fi
  7317. else
  7318. need_locks=no
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7321. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7322. runpath_var=
  7323. allow_undefined_flag=
  7324. always_export_symbols=no
  7325. archive_cmds=
  7326. archive_expsym_cmds=
  7327. compiler_needs_object=no
  7328. enable_shared_with_static_runtimes=no
  7329. export_dynamic_flag_spec=
  7330. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7331. hardcode_automatic=no
  7332. hardcode_direct=no
  7333. hardcode_direct_absolute=no
  7334. hardcode_libdir_flag_spec=
  7335. hardcode_libdir_flag_spec_ld=
  7336. hardcode_libdir_separator=
  7337. hardcode_minus_L=no
  7338. hardcode_shlibpath_var=unsupported
  7339. inherit_rpath=no
  7340. link_all_deplibs=unknown
  7341. module_cmds=
  7342. module_expsym_cmds=
  7343. old_archive_from_new_cmds=
  7344. old_archive_from_expsyms_cmds=
  7345. thread_safe_flag_spec=
  7346. whole_archive_flag_spec=
  7347. # include_expsyms should be a list of space-separated symbols to be *always*
  7348. # included in the symbol list
  7349. include_expsyms=
  7350. # exclude_expsyms can be an extended regexp of symbols to exclude
  7351. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7352. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7353. # as well as any symbol that contains `d'.
  7354. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7355. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7356. # platforms (ab)use it in PIC code, but their linkers get confused if
  7357. # the symbol is explicitly referenced. Since portable code cannot
  7358. # rely on this symbol name, it's probably fine to never include it in
  7359. # preloaded symbol tables.
  7360. # Exclude shared library initialization/finalization symbols.
  7361. extract_expsyms_cmds=
  7362. case $host_os in
  7363. cygwin* | mingw* | pw32* | cegcc*)
  7364. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7365. # When not using gcc, we currently assume that we are using
  7366. # Microsoft Visual C++.
  7367. if test "$GCC" != yes; then
  7368. with_gnu_ld=no
  7369. fi
  7370. ;;
  7371. interix*)
  7372. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7373. with_gnu_ld=yes
  7374. ;;
  7375. openbsd*)
  7376. with_gnu_ld=no
  7377. ;;
  7378. linux* | k*bsd*-gnu)
  7379. link_all_deplibs=no
  7380. ;;
  7381. esac
  7382. ld_shlibs=yes
  7383. if test "$with_gnu_ld" = yes; then
  7384. # If archive_cmds runs LD, not CC, wlarc should be empty
  7385. wlarc='${wl}'
  7386. # Set some defaults for GNU ld with shared library support. These
  7387. # are reset later if shared libraries are not supported. Putting them
  7388. # here allows them to be overridden if necessary.
  7389. runpath_var=LD_RUN_PATH
  7390. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7391. export_dynamic_flag_spec='${wl}--export-dynamic'
  7392. # ancient GNU ld didn't support --whole-archive et. al.
  7393. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7394. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7395. else
  7396. whole_archive_flag_spec=
  7397. fi
  7398. supports_anon_versioning=no
  7399. case `$LD -v 2>&1` in
  7400. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7401. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7402. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7403. *\ 2.11.*) ;; # other 2.11 versions
  7404. *) supports_anon_versioning=yes ;;
  7405. esac
  7406. # See if GNU ld supports shared libraries.
  7407. case $host_os in
  7408. aix[3-9]*)
  7409. # On AIX/PPC, the GNU linker is very broken
  7410. if test "$host_cpu" != ia64; then
  7411. ld_shlibs=no
  7412. cat <<_LT_EOF 1>&2
  7413. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7414. *** to be unable to reliably create shared libraries on AIX.
  7415. *** Therefore, libtool is disabling shared libraries support. If you
  7416. *** really care for shared libraries, you may want to modify your PATH
  7417. *** so that a non-GNU linker is found, and then restart.
  7418. _LT_EOF
  7419. fi
  7420. ;;
  7421. amigaos*)
  7422. case $host_cpu in
  7423. powerpc)
  7424. # see comment about AmigaOS4 .so support
  7425. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7426. archive_expsym_cmds=''
  7427. ;;
  7428. m68k)
  7429. 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)'
  7430. hardcode_libdir_flag_spec='-L$libdir'
  7431. hardcode_minus_L=yes
  7432. ;;
  7433. esac
  7434. ;;
  7435. beos*)
  7436. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7437. allow_undefined_flag=unsupported
  7438. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7439. # support --undefined. This deserves some investigation. FIXME
  7440. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7441. else
  7442. ld_shlibs=no
  7443. fi
  7444. ;;
  7445. cygwin* | mingw* | pw32* | cegcc*)
  7446. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7447. # as there is no search path for DLLs.
  7448. hardcode_libdir_flag_spec='-L$libdir'
  7449. allow_undefined_flag=unsupported
  7450. always_export_symbols=no
  7451. enable_shared_with_static_runtimes=yes
  7452. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7453. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7454. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7455. # If the export-symbols file already is a .def file (1st line
  7456. # is EXPORTS), use it as is; otherwise, prepend...
  7457. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7458. cp $export_symbols $output_objdir/$soname.def;
  7459. else
  7460. echo EXPORTS > $output_objdir/$soname.def;
  7461. cat $export_symbols >> $output_objdir/$soname.def;
  7462. fi~
  7463. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7464. else
  7465. ld_shlibs=no
  7466. fi
  7467. ;;
  7468. interix[3-9]*)
  7469. hardcode_direct=no
  7470. hardcode_shlibpath_var=no
  7471. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7472. export_dynamic_flag_spec='${wl}-E'
  7473. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7474. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7475. # default) and relocated if they conflict, which is a slow very memory
  7476. # consuming and fragmenting process. To avoid this, we pick a random,
  7477. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7478. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7479. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7480. 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'
  7481. ;;
  7482. gnu* | linux* | tpf* | k*bsd*-gnu)
  7483. tmp_diet=no
  7484. if test "$host_os" = linux-dietlibc; then
  7485. case $cc_basename in
  7486. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7487. esac
  7488. fi
  7489. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7490. && test "$tmp_diet" = no
  7491. then
  7492. tmp_addflag=
  7493. tmp_sharedflag='-shared'
  7494. case $cc_basename,$host_cpu in
  7495. pgcc*) # Portland Group C compiler
  7496. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7497. tmp_addflag=' $pic_flag'
  7498. ;;
  7499. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7500. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7501. tmp_addflag=' $pic_flag -Mnomain' ;;
  7502. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7503. tmp_addflag=' -i_dynamic' ;;
  7504. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7505. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7506. ifc* | ifort*) # Intel Fortran compiler
  7507. tmp_addflag=' -nofor_main' ;;
  7508. lf95*) # Lahey Fortran 8.1
  7509. whole_archive_flag_spec=
  7510. tmp_sharedflag='--shared' ;;
  7511. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7512. tmp_sharedflag='-qmkshrobj'
  7513. tmp_addflag= ;;
  7514. esac
  7515. case `$CC -V 2>&1 | sed 5q` in
  7516. *Sun\ C*) # Sun C 5.9
  7517. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7518. compiler_needs_object=yes
  7519. tmp_sharedflag='-G' ;;
  7520. *Sun\ F*) # Sun Fortran 8.3
  7521. tmp_sharedflag='-G' ;;
  7522. esac
  7523. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7524. if test "x$supports_anon_versioning" = xyes; then
  7525. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7526. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7527. echo "local: *; };" >> $output_objdir/$libname.ver~
  7528. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7529. fi
  7530. case $cc_basename in
  7531. xlf*)
  7532. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7533. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7534. hardcode_libdir_flag_spec=
  7535. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7536. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7537. if test "x$supports_anon_versioning" = xyes; then
  7538. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7539. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7540. echo "local: *; };" >> $output_objdir/$libname.ver~
  7541. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7542. fi
  7543. ;;
  7544. esac
  7545. else
  7546. ld_shlibs=no
  7547. fi
  7548. ;;
  7549. netbsd* | netbsdelf*-gnu)
  7550. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7551. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7552. wlarc=
  7553. else
  7554. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7555. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7556. fi
  7557. ;;
  7558. solaris*)
  7559. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7560. ld_shlibs=no
  7561. cat <<_LT_EOF 1>&2
  7562. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7563. *** create shared libraries on Solaris systems. Therefore, libtool
  7564. *** is disabling shared libraries support. We urge you to upgrade GNU
  7565. *** binutils to release 2.9.1 or newer. Another option is to modify
  7566. *** your PATH or compiler configuration so that the native linker is
  7567. *** used, and then restart.
  7568. _LT_EOF
  7569. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7571. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7572. else
  7573. ld_shlibs=no
  7574. fi
  7575. ;;
  7576. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7577. case `$LD -v 2>&1` in
  7578. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7579. ld_shlibs=no
  7580. cat <<_LT_EOF 1>&2
  7581. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7582. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7583. *** is disabling shared libraries support. We urge you to upgrade GNU
  7584. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7585. *** your PATH or compiler configuration so that the native linker is
  7586. *** used, and then restart.
  7587. _LT_EOF
  7588. ;;
  7589. *)
  7590. # For security reasons, it is highly recommended that you always
  7591. # use absolute paths for naming shared libraries, and exclude the
  7592. # DT_RUNPATH tag from executables and libraries. But doing so
  7593. # requires that you compile everything twice, which is a pain.
  7594. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7595. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7597. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7598. else
  7599. ld_shlibs=no
  7600. fi
  7601. ;;
  7602. esac
  7603. ;;
  7604. sunos4*)
  7605. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7606. wlarc=
  7607. hardcode_direct=yes
  7608. hardcode_shlibpath_var=no
  7609. ;;
  7610. *)
  7611. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7613. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7614. else
  7615. ld_shlibs=no
  7616. fi
  7617. ;;
  7618. esac
  7619. if test "$ld_shlibs" = no; then
  7620. runpath_var=
  7621. hardcode_libdir_flag_spec=
  7622. export_dynamic_flag_spec=
  7623. whole_archive_flag_spec=
  7624. fi
  7625. else
  7626. # PORTME fill in a description of your system's linker (not GNU ld)
  7627. case $host_os in
  7628. aix3*)
  7629. allow_undefined_flag=unsupported
  7630. always_export_symbols=yes
  7631. 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'
  7632. # Note: this linker hardcodes the directories in LIBPATH if there
  7633. # are no directories specified by -L.
  7634. hardcode_minus_L=yes
  7635. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7636. # Neither direct hardcoding nor static linking is supported with a
  7637. # broken collect2.
  7638. hardcode_direct=unsupported
  7639. fi
  7640. ;;
  7641. aix[4-9]*)
  7642. if test "$host_cpu" = ia64; then
  7643. # On IA64, the linker does run time linking by default, so we don't
  7644. # have to do anything special.
  7645. aix_use_runtimelinking=no
  7646. exp_sym_flag='-Bexport'
  7647. no_entry_flag=""
  7648. else
  7649. # If we're using GNU nm, then we don't want the "-C" option.
  7650. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7651. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7652. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7653. else
  7654. 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'
  7655. fi
  7656. aix_use_runtimelinking=no
  7657. # Test if we are trying to use run time linking or normal
  7658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7659. # need to do runtime linking.
  7660. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7661. for ld_flag in $LDFLAGS; do
  7662. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7663. aix_use_runtimelinking=yes
  7664. break
  7665. fi
  7666. done
  7667. ;;
  7668. esac
  7669. exp_sym_flag='-bexport'
  7670. no_entry_flag='-bnoentry'
  7671. fi
  7672. # When large executables or shared objects are built, AIX ld can
  7673. # have problems creating the table of contents. If linking a library
  7674. # or program results in "error TOC overflow" add -mminimal-toc to
  7675. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7676. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7677. archive_cmds=''
  7678. hardcode_direct=yes
  7679. hardcode_direct_absolute=yes
  7680. hardcode_libdir_separator=':'
  7681. link_all_deplibs=yes
  7682. file_list_spec='${wl}-f,'
  7683. if test "$GCC" = yes; then
  7684. case $host_os in aix4.[012]|aix4.[012].*)
  7685. # We only want to do this on AIX 4.2 and lower, the check
  7686. # below for broken collect2 doesn't work under 4.3+
  7687. collect2name=`${CC} -print-prog-name=collect2`
  7688. if test -f "$collect2name" &&
  7689. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7690. then
  7691. # We have reworked collect2
  7692. :
  7693. else
  7694. # We have old collect2
  7695. hardcode_direct=unsupported
  7696. # It fails to find uninstalled libraries when the uninstalled
  7697. # path is not listed in the libpath. Setting hardcode_minus_L
  7698. # to unsupported forces relinking
  7699. hardcode_minus_L=yes
  7700. hardcode_libdir_flag_spec='-L$libdir'
  7701. hardcode_libdir_separator=
  7702. fi
  7703. ;;
  7704. esac
  7705. shared_flag='-shared'
  7706. if test "$aix_use_runtimelinking" = yes; then
  7707. shared_flag="$shared_flag "'${wl}-G'
  7708. fi
  7709. link_all_deplibs=no
  7710. else
  7711. # not using gcc
  7712. if test "$host_cpu" = ia64; then
  7713. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7714. # chokes on -Wl,-G. The following line is correct:
  7715. shared_flag='-G'
  7716. else
  7717. if test "$aix_use_runtimelinking" = yes; then
  7718. shared_flag='${wl}-G'
  7719. else
  7720. shared_flag='${wl}-bM:SRE'
  7721. fi
  7722. fi
  7723. fi
  7724. export_dynamic_flag_spec='${wl}-bexpall'
  7725. # It seems that -bexpall does not export symbols beginning with
  7726. # underscore (_), so it is better to generate a list of symbols to export.
  7727. always_export_symbols=yes
  7728. if test "$aix_use_runtimelinking" = yes; then
  7729. # Warning - without using the other runtime loading flags (-brtl),
  7730. # -berok will link without error, but may produce a broken library.
  7731. allow_undefined_flag='-berok'
  7732. # Determine the default libpath from the value encoded in an
  7733. # empty executable.
  7734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7735. /* end confdefs.h. */
  7736. int
  7737. main ()
  7738. {
  7739. ;
  7740. return 0;
  7741. }
  7742. _ACEOF
  7743. if ac_fn_c_try_link "$LINENO"; then :
  7744. lt_aix_libpath_sed='
  7745. /Import File Strings/,/^$/ {
  7746. /^0/ {
  7747. s/^0 *\(.*\)$/\1/
  7748. p
  7749. }
  7750. }'
  7751. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7752. # Check for a 64-bit object if we didn't find anything.
  7753. if test -z "$aix_libpath"; then
  7754. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7755. fi
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext \
  7758. conftest$ac_exeext conftest.$ac_ext
  7759. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7760. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7761. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7762. else
  7763. if test "$host_cpu" = ia64; then
  7764. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7765. allow_undefined_flag="-z nodefs"
  7766. 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"
  7767. else
  7768. # Determine the default libpath from the value encoded in an
  7769. # empty executable.
  7770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h. */
  7772. int
  7773. main ()
  7774. {
  7775. ;
  7776. return 0;
  7777. }
  7778. _ACEOF
  7779. if ac_fn_c_try_link "$LINENO"; then :
  7780. lt_aix_libpath_sed='
  7781. /Import File Strings/,/^$/ {
  7782. /^0/ {
  7783. s/^0 *\(.*\)$/\1/
  7784. p
  7785. }
  7786. }'
  7787. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7788. # Check for a 64-bit object if we didn't find anything.
  7789. if test -z "$aix_libpath"; then
  7790. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7791. fi
  7792. fi
  7793. rm -f core conftest.err conftest.$ac_objext \
  7794. conftest$ac_exeext conftest.$ac_ext
  7795. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7796. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7797. # Warning - without using the other run time loading flags,
  7798. # -berok will link without error, but may produce a broken library.
  7799. no_undefined_flag=' ${wl}-bernotok'
  7800. allow_undefined_flag=' ${wl}-berok'
  7801. # Exported symbols can be pulled into shared objects from archives
  7802. whole_archive_flag_spec='$convenience'
  7803. archive_cmds_need_lc=yes
  7804. # This is similar to how AIX traditionally builds its shared libraries.
  7805. 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'
  7806. fi
  7807. fi
  7808. ;;
  7809. amigaos*)
  7810. case $host_cpu in
  7811. powerpc)
  7812. # see comment about AmigaOS4 .so support
  7813. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7814. archive_expsym_cmds=''
  7815. ;;
  7816. m68k)
  7817. 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)'
  7818. hardcode_libdir_flag_spec='-L$libdir'
  7819. hardcode_minus_L=yes
  7820. ;;
  7821. esac
  7822. ;;
  7823. bsdi[45]*)
  7824. export_dynamic_flag_spec=-rdynamic
  7825. ;;
  7826. cygwin* | mingw* | pw32* | cegcc*)
  7827. # When not using gcc, we currently assume that we are using
  7828. # Microsoft Visual C++.
  7829. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7830. # no search path for DLLs.
  7831. hardcode_libdir_flag_spec=' '
  7832. allow_undefined_flag=unsupported
  7833. # Tell ltmain to make .lib files, not .a files.
  7834. libext=lib
  7835. # Tell ltmain to make .dll files, not .so files.
  7836. shrext_cmds=".dll"
  7837. # FIXME: Setting linknames here is a bad hack.
  7838. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7839. # The linker will automatically build a .lib file if we build a DLL.
  7840. old_archive_from_new_cmds='true'
  7841. # FIXME: Should let the user specify the lib program.
  7842. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7843. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7844. enable_shared_with_static_runtimes=yes
  7845. ;;
  7846. darwin* | rhapsody*)
  7847. archive_cmds_need_lc=no
  7848. hardcode_direct=no
  7849. hardcode_automatic=yes
  7850. hardcode_shlibpath_var=unsupported
  7851. whole_archive_flag_spec=''
  7852. link_all_deplibs=yes
  7853. allow_undefined_flag="$_lt_dar_allow_undefined"
  7854. case $cc_basename in
  7855. ifort*) _lt_dar_can_shared=yes ;;
  7856. *) _lt_dar_can_shared=$GCC ;;
  7857. esac
  7858. if test "$_lt_dar_can_shared" = "yes"; then
  7859. output_verbose_link_cmd=echo
  7860. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7861. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7862. 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}"
  7863. 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}"
  7864. else
  7865. ld_shlibs=no
  7866. fi
  7867. ;;
  7868. dgux*)
  7869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7870. hardcode_libdir_flag_spec='-L$libdir'
  7871. hardcode_shlibpath_var=no
  7872. ;;
  7873. freebsd1*)
  7874. ld_shlibs=no
  7875. ;;
  7876. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7877. # support. Future versions do this automatically, but an explicit c++rt0.o
  7878. # does not break anything, and helps significantly (at the cost of a little
  7879. # extra space).
  7880. freebsd2.2*)
  7881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7882. hardcode_libdir_flag_spec='-R$libdir'
  7883. hardcode_direct=yes
  7884. hardcode_shlibpath_var=no
  7885. ;;
  7886. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7887. freebsd2*)
  7888. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7889. hardcode_direct=yes
  7890. hardcode_minus_L=yes
  7891. hardcode_shlibpath_var=no
  7892. ;;
  7893. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7894. freebsd* | dragonfly*)
  7895. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7896. hardcode_libdir_flag_spec='-R$libdir'
  7897. hardcode_direct=yes
  7898. hardcode_shlibpath_var=no
  7899. ;;
  7900. hpux9*)
  7901. if test "$GCC" = yes; then
  7902. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7903. else
  7904. 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'
  7905. fi
  7906. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7907. hardcode_libdir_separator=:
  7908. hardcode_direct=yes
  7909. # hardcode_minus_L: Not really in the search PATH,
  7910. # but as the default location of the library.
  7911. hardcode_minus_L=yes
  7912. export_dynamic_flag_spec='${wl}-E'
  7913. ;;
  7914. hpux10*)
  7915. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7916. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7917. else
  7918. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7919. fi
  7920. if test "$with_gnu_ld" = no; then
  7921. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7922. hardcode_libdir_flag_spec_ld='+b $libdir'
  7923. hardcode_libdir_separator=:
  7924. hardcode_direct=yes
  7925. hardcode_direct_absolute=yes
  7926. export_dynamic_flag_spec='${wl}-E'
  7927. # hardcode_minus_L: Not really in the search PATH,
  7928. # but as the default location of the library.
  7929. hardcode_minus_L=yes
  7930. fi
  7931. ;;
  7932. hpux11*)
  7933. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7934. case $host_cpu in
  7935. hppa*64*)
  7936. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7937. ;;
  7938. ia64*)
  7939. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7940. ;;
  7941. *)
  7942. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7943. ;;
  7944. esac
  7945. else
  7946. case $host_cpu in
  7947. hppa*64*)
  7948. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7949. ;;
  7950. ia64*)
  7951. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7952. ;;
  7953. *)
  7954. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7955. ;;
  7956. esac
  7957. fi
  7958. if test "$with_gnu_ld" = no; then
  7959. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7960. hardcode_libdir_separator=:
  7961. case $host_cpu in
  7962. hppa*64*|ia64*)
  7963. hardcode_direct=no
  7964. hardcode_shlibpath_var=no
  7965. ;;
  7966. *)
  7967. hardcode_direct=yes
  7968. hardcode_direct_absolute=yes
  7969. export_dynamic_flag_spec='${wl}-E'
  7970. # hardcode_minus_L: Not really in the search PATH,
  7971. # but as the default location of the library.
  7972. hardcode_minus_L=yes
  7973. ;;
  7974. esac
  7975. fi
  7976. ;;
  7977. irix5* | irix6* | nonstopux*)
  7978. if test "$GCC" = yes; then
  7979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7980. # Try to use the -exported_symbol ld option, if it does not
  7981. # work, assume that -exports_file does not work either and
  7982. # implicitly export all symbols.
  7983. save_LDFLAGS="$LDFLAGS"
  7984. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7986. /* end confdefs.h. */
  7987. int foo(void) {}
  7988. _ACEOF
  7989. if ac_fn_c_try_link "$LINENO"; then :
  7990. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7991. fi
  7992. rm -f core conftest.err conftest.$ac_objext \
  7993. conftest$ac_exeext conftest.$ac_ext
  7994. LDFLAGS="$save_LDFLAGS"
  7995. else
  7996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7997. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7998. fi
  7999. archive_cmds_need_lc='no'
  8000. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8001. hardcode_libdir_separator=:
  8002. inherit_rpath=yes
  8003. link_all_deplibs=yes
  8004. ;;
  8005. netbsd* | netbsdelf*-gnu)
  8006. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8007. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8008. else
  8009. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8010. fi
  8011. hardcode_libdir_flag_spec='-R$libdir'
  8012. hardcode_direct=yes
  8013. hardcode_shlibpath_var=no
  8014. ;;
  8015. newsos6)
  8016. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8017. hardcode_direct=yes
  8018. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8019. hardcode_libdir_separator=:
  8020. hardcode_shlibpath_var=no
  8021. ;;
  8022. *nto* | *qnx*)
  8023. ;;
  8024. openbsd*)
  8025. if test -f /usr/libexec/ld.so; then
  8026. hardcode_direct=yes
  8027. hardcode_shlibpath_var=no
  8028. hardcode_direct_absolute=yes
  8029. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8030. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8031. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8032. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8033. export_dynamic_flag_spec='${wl}-E'
  8034. else
  8035. case $host_os in
  8036. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8037. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8038. hardcode_libdir_flag_spec='-R$libdir'
  8039. ;;
  8040. *)
  8041. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8042. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8043. ;;
  8044. esac
  8045. fi
  8046. else
  8047. ld_shlibs=no
  8048. fi
  8049. ;;
  8050. os2*)
  8051. hardcode_libdir_flag_spec='-L$libdir'
  8052. hardcode_minus_L=yes
  8053. allow_undefined_flag=unsupported
  8054. 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'
  8055. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8056. ;;
  8057. osf3*)
  8058. if test "$GCC" = yes; then
  8059. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8060. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8061. else
  8062. allow_undefined_flag=' -expect_unresolved \*'
  8063. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8064. fi
  8065. archive_cmds_need_lc='no'
  8066. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8067. hardcode_libdir_separator=:
  8068. ;;
  8069. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8070. if test "$GCC" = yes; then
  8071. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8072. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8073. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8074. else
  8075. allow_undefined_flag=' -expect_unresolved \*'
  8076. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8077. 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~
  8078. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8079. # Both c and cxx compiler support -rpath directly
  8080. hardcode_libdir_flag_spec='-rpath $libdir'
  8081. fi
  8082. archive_cmds_need_lc='no'
  8083. hardcode_libdir_separator=:
  8084. ;;
  8085. solaris*)
  8086. no_undefined_flag=' -z defs'
  8087. if test "$GCC" = yes; then
  8088. wlarc='${wl}'
  8089. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8090. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8091. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8092. else
  8093. case `$CC -V 2>&1` in
  8094. *"Compilers 5.0"*)
  8095. wlarc=''
  8096. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8097. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8098. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8099. ;;
  8100. *)
  8101. wlarc='${wl}'
  8102. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8103. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8104. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8105. ;;
  8106. esac
  8107. fi
  8108. hardcode_libdir_flag_spec='-R$libdir'
  8109. hardcode_shlibpath_var=no
  8110. case $host_os in
  8111. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8112. *)
  8113. # The compiler driver will combine and reorder linker options,
  8114. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8115. # but is careful enough not to reorder.
  8116. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8117. if test "$GCC" = yes; then
  8118. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8119. else
  8120. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8121. fi
  8122. ;;
  8123. esac
  8124. link_all_deplibs=yes
  8125. ;;
  8126. sunos4*)
  8127. if test "x$host_vendor" = xsequent; then
  8128. # Use $CC to link under sequent, because it throws in some extra .o
  8129. # files that make .init and .fini sections work.
  8130. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8131. else
  8132. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8133. fi
  8134. hardcode_libdir_flag_spec='-L$libdir'
  8135. hardcode_direct=yes
  8136. hardcode_minus_L=yes
  8137. hardcode_shlibpath_var=no
  8138. ;;
  8139. sysv4)
  8140. case $host_vendor in
  8141. sni)
  8142. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8143. hardcode_direct=yes # is this really true???
  8144. ;;
  8145. siemens)
  8146. ## LD is ld it makes a PLAMLIB
  8147. ## CC just makes a GrossModule.
  8148. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8149. reload_cmds='$CC -r -o $output$reload_objs'
  8150. hardcode_direct=no
  8151. ;;
  8152. motorola)
  8153. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8154. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8155. ;;
  8156. esac
  8157. runpath_var='LD_RUN_PATH'
  8158. hardcode_shlibpath_var=no
  8159. ;;
  8160. sysv4.3*)
  8161. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8162. hardcode_shlibpath_var=no
  8163. export_dynamic_flag_spec='-Bexport'
  8164. ;;
  8165. sysv4*MP*)
  8166. if test -d /usr/nec; then
  8167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. hardcode_shlibpath_var=no
  8169. runpath_var=LD_RUN_PATH
  8170. hardcode_runpath_var=yes
  8171. ld_shlibs=yes
  8172. fi
  8173. ;;
  8174. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8175. no_undefined_flag='${wl}-z,text'
  8176. archive_cmds_need_lc=no
  8177. hardcode_shlibpath_var=no
  8178. runpath_var='LD_RUN_PATH'
  8179. if test "$GCC" = yes; then
  8180. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8181. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8182. else
  8183. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8184. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8185. fi
  8186. ;;
  8187. sysv5* | sco3.2v5* | sco5v6*)
  8188. # Note: We can NOT use -z defs as we might desire, because we do not
  8189. # link with -lc, and that would cause any symbols used from libc to
  8190. # always be unresolved, which means just about no library would
  8191. # ever link correctly. If we're not using GNU ld we use -z text
  8192. # though, which does catch some bad symbols but isn't as heavy-handed
  8193. # as -z defs.
  8194. no_undefined_flag='${wl}-z,text'
  8195. allow_undefined_flag='${wl}-z,nodefs'
  8196. archive_cmds_need_lc=no
  8197. hardcode_shlibpath_var=no
  8198. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8199. hardcode_libdir_separator=':'
  8200. link_all_deplibs=yes
  8201. export_dynamic_flag_spec='${wl}-Bexport'
  8202. runpath_var='LD_RUN_PATH'
  8203. if test "$GCC" = yes; then
  8204. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8205. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8206. else
  8207. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8208. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8209. fi
  8210. ;;
  8211. uts4*)
  8212. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8213. hardcode_libdir_flag_spec='-L$libdir'
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. *)
  8217. ld_shlibs=no
  8218. ;;
  8219. esac
  8220. if test x$host_vendor = xsni; then
  8221. case $host in
  8222. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8223. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8224. ;;
  8225. esac
  8226. fi
  8227. fi
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8229. $as_echo "$ld_shlibs" >&6; }
  8230. test "$ld_shlibs" = no && can_build_shared=no
  8231. with_gnu_ld=$with_gnu_ld
  8232. #
  8233. # Do we need to explicitly link libc?
  8234. #
  8235. case "x$archive_cmds_need_lc" in
  8236. x|xyes)
  8237. # Assume -lc should be added
  8238. archive_cmds_need_lc=yes
  8239. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8240. case $archive_cmds in
  8241. *'~'*)
  8242. # FIXME: we may have to deal with multi-command sequences.
  8243. ;;
  8244. '$CC '*)
  8245. # Test whether the compiler implicitly links with -lc since on some
  8246. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8247. # to ld, don't add -lc before -lgcc.
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8249. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8250. $RM conftest*
  8251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8252. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8253. (eval $ac_compile) 2>&5
  8254. ac_status=$?
  8255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8256. test $ac_status = 0; } 2>conftest.err; then
  8257. soname=conftest
  8258. lib=conftest
  8259. libobjs=conftest.$ac_objext
  8260. deplibs=
  8261. wl=$lt_prog_compiler_wl
  8262. pic_flag=$lt_prog_compiler_pic
  8263. compiler_flags=-v
  8264. linker_flags=-v
  8265. verstring=
  8266. output_objdir=.
  8267. libname=conftest
  8268. lt_save_allow_undefined_flag=$allow_undefined_flag
  8269. allow_undefined_flag=
  8270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8271. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8272. ac_status=$?
  8273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8274. test $ac_status = 0; }
  8275. then
  8276. archive_cmds_need_lc=no
  8277. else
  8278. archive_cmds_need_lc=yes
  8279. fi
  8280. allow_undefined_flag=$lt_save_allow_undefined_flag
  8281. else
  8282. cat conftest.err 1>&5
  8283. fi
  8284. $RM conftest*
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8286. $as_echo "$archive_cmds_need_lc" >&6; }
  8287. ;;
  8288. esac
  8289. fi
  8290. ;;
  8291. esac
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8293. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8294. if test "$GCC" = yes; then
  8295. case $host_os in
  8296. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8297. *) lt_awk_arg="/^libraries:/" ;;
  8298. esac
  8299. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8300. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8301. # if the path contains ";" then we assume it to be the separator
  8302. # otherwise default to the standard path separator (i.e. ":") - it is
  8303. # assumed that no part of a normal pathname contains ";" but that should
  8304. # okay in the real world where ";" in dirpaths is itself problematic.
  8305. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8306. else
  8307. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8308. fi
  8309. # Ok, now we have the path, separated by spaces, we can step through it
  8310. # and add multilib dir if necessary.
  8311. lt_tmp_lt_search_path_spec=
  8312. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8313. for lt_sys_path in $lt_search_path_spec; do
  8314. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8315. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8316. else
  8317. test -d "$lt_sys_path" && \
  8318. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8319. fi
  8320. done
  8321. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8322. BEGIN {RS=" "; FS="/|\n";} {
  8323. lt_foo="";
  8324. lt_count=0;
  8325. for (lt_i = NF; lt_i > 0; lt_i--) {
  8326. if ($lt_i != "" && $lt_i != ".") {
  8327. if ($lt_i == "..") {
  8328. lt_count++;
  8329. } else {
  8330. if (lt_count == 0) {
  8331. lt_foo="/" $lt_i lt_foo;
  8332. } else {
  8333. lt_count--;
  8334. }
  8335. }
  8336. }
  8337. }
  8338. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8339. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8340. }'`
  8341. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8342. else
  8343. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8344. fi
  8345. library_names_spec=
  8346. libname_spec='lib$name'
  8347. soname_spec=
  8348. shrext_cmds=".so"
  8349. postinstall_cmds=
  8350. postuninstall_cmds=
  8351. finish_cmds=
  8352. finish_eval=
  8353. shlibpath_var=
  8354. shlibpath_overrides_runpath=unknown
  8355. version_type=none
  8356. dynamic_linker="$host_os ld.so"
  8357. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8358. need_lib_prefix=unknown
  8359. hardcode_into_libs=no
  8360. # when you set need_version to no, make sure it does not cause -set_version
  8361. # flags to be left without arguments
  8362. need_version=unknown
  8363. case $host_os in
  8364. aix3*)
  8365. version_type=linux
  8366. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8367. shlibpath_var=LIBPATH
  8368. # AIX 3 has no versioning support, so we append a major version to the name.
  8369. soname_spec='${libname}${release}${shared_ext}$major'
  8370. ;;
  8371. aix[4-9]*)
  8372. version_type=linux
  8373. need_lib_prefix=no
  8374. need_version=no
  8375. hardcode_into_libs=yes
  8376. if test "$host_cpu" = ia64; then
  8377. # AIX 5 supports IA64
  8378. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8379. shlibpath_var=LD_LIBRARY_PATH
  8380. else
  8381. # With GCC up to 2.95.x, collect2 would create an import file
  8382. # for dependence libraries. The import file would start with
  8383. # the line `#! .'. This would cause the generated library to
  8384. # depend on `.', always an invalid library. This was fixed in
  8385. # development snapshots of GCC prior to 3.0.
  8386. case $host_os in
  8387. aix4 | aix4.[01] | aix4.[01].*)
  8388. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8389. echo ' yes '
  8390. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8391. :
  8392. else
  8393. can_build_shared=no
  8394. fi
  8395. ;;
  8396. esac
  8397. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8398. # soname into executable. Probably we can add versioning support to
  8399. # collect2, so additional links can be useful in future.
  8400. if test "$aix_use_runtimelinking" = yes; then
  8401. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8402. # instead of lib<name>.a to let people know that these are not
  8403. # typical AIX shared libraries.
  8404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8405. else
  8406. # We preserve .a as extension for shared libraries through AIX4.2
  8407. # and later when we are not doing run time linking.
  8408. library_names_spec='${libname}${release}.a $libname.a'
  8409. soname_spec='${libname}${release}${shared_ext}$major'
  8410. fi
  8411. shlibpath_var=LIBPATH
  8412. fi
  8413. ;;
  8414. amigaos*)
  8415. case $host_cpu in
  8416. powerpc)
  8417. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8418. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8420. ;;
  8421. m68k)
  8422. library_names_spec='$libname.ixlibrary $libname.a'
  8423. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8424. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8425. ;;
  8426. esac
  8427. ;;
  8428. beos*)
  8429. library_names_spec='${libname}${shared_ext}'
  8430. dynamic_linker="$host_os ld.so"
  8431. shlibpath_var=LIBRARY_PATH
  8432. ;;
  8433. bsdi[45]*)
  8434. version_type=linux
  8435. need_version=no
  8436. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8437. soname_spec='${libname}${release}${shared_ext}$major'
  8438. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8439. shlibpath_var=LD_LIBRARY_PATH
  8440. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8441. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8442. # the default ld.so.conf also contains /usr/contrib/lib and
  8443. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8444. # libtool to hard-code these into programs
  8445. ;;
  8446. cygwin* | mingw* | pw32* | cegcc*)
  8447. version_type=windows
  8448. shrext_cmds=".dll"
  8449. need_version=no
  8450. need_lib_prefix=no
  8451. case $GCC,$host_os in
  8452. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8453. library_names_spec='$libname.dll.a'
  8454. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8455. postinstall_cmds='base_file=`basename \${file}`~
  8456. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8457. dldir=$destdir/`dirname \$dlpath`~
  8458. test -d \$dldir || mkdir -p \$dldir~
  8459. $install_prog $dir/$dlname \$dldir/$dlname~
  8460. chmod a+x \$dldir/$dlname~
  8461. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8462. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8463. fi'
  8464. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8465. dlpath=$dir/\$dldll~
  8466. $RM \$dlpath'
  8467. shlibpath_overrides_runpath=yes
  8468. case $host_os in
  8469. cygwin*)
  8470. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8471. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8472. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8473. ;;
  8474. mingw* | cegcc*)
  8475. # MinGW DLLs use traditional 'lib' prefix
  8476. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8477. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8478. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8479. # It is most probably a Windows format PATH printed by
  8480. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8481. # path with ; separators, and with drive letters. We can handle the
  8482. # drive letters (cygwin fileutils understands them), so leave them,
  8483. # especially as we might pass files found there to a mingw objdump,
  8484. # which wouldn't understand a cygwinified path. Ahh.
  8485. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8486. else
  8487. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8488. fi
  8489. ;;
  8490. pw32*)
  8491. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8492. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8493. ;;
  8494. esac
  8495. ;;
  8496. *)
  8497. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8498. ;;
  8499. esac
  8500. dynamic_linker='Win32 ld.exe'
  8501. # FIXME: first we should search . and the directory the executable is in
  8502. shlibpath_var=PATH
  8503. ;;
  8504. darwin* | rhapsody*)
  8505. dynamic_linker="$host_os dyld"
  8506. version_type=darwin
  8507. need_lib_prefix=no
  8508. need_version=no
  8509. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8510. soname_spec='${libname}${release}${major}$shared_ext'
  8511. shlibpath_overrides_runpath=yes
  8512. shlibpath_var=DYLD_LIBRARY_PATH
  8513. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8514. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8515. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8516. ;;
  8517. dgux*)
  8518. version_type=linux
  8519. need_lib_prefix=no
  8520. need_version=no
  8521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. ;;
  8525. freebsd1*)
  8526. dynamic_linker=no
  8527. ;;
  8528. freebsd* | dragonfly*)
  8529. # DragonFly does not have aout. When/if they implement a new
  8530. # versioning mechanism, adjust this.
  8531. if test -x /usr/bin/objformat; then
  8532. objformat=`/usr/bin/objformat`
  8533. else
  8534. case $host_os in
  8535. freebsd[123]*) objformat=aout ;;
  8536. *) objformat=elf ;;
  8537. esac
  8538. fi
  8539. version_type=freebsd-$objformat
  8540. case $version_type in
  8541. freebsd-elf*)
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8543. need_version=no
  8544. need_lib_prefix=no
  8545. ;;
  8546. freebsd-*)
  8547. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8548. need_version=yes
  8549. ;;
  8550. esac
  8551. shlibpath_var=LD_LIBRARY_PATH
  8552. case $host_os in
  8553. freebsd2*)
  8554. shlibpath_overrides_runpath=yes
  8555. ;;
  8556. freebsd3.[01]* | freebsdelf3.[01]*)
  8557. shlibpath_overrides_runpath=yes
  8558. hardcode_into_libs=yes
  8559. ;;
  8560. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8561. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8562. shlibpath_overrides_runpath=no
  8563. hardcode_into_libs=yes
  8564. ;;
  8565. *) # from 4.6 on, and DragonFly
  8566. shlibpath_overrides_runpath=yes
  8567. hardcode_into_libs=yes
  8568. ;;
  8569. esac
  8570. ;;
  8571. gnu*)
  8572. version_type=linux
  8573. need_lib_prefix=no
  8574. need_version=no
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8576. soname_spec='${libname}${release}${shared_ext}$major'
  8577. shlibpath_var=LD_LIBRARY_PATH
  8578. hardcode_into_libs=yes
  8579. ;;
  8580. hpux9* | hpux10* | hpux11*)
  8581. # Give a soname corresponding to the major version so that dld.sl refuses to
  8582. # link against other versions.
  8583. version_type=sunos
  8584. need_lib_prefix=no
  8585. need_version=no
  8586. case $host_cpu in
  8587. ia64*)
  8588. shrext_cmds='.so'
  8589. hardcode_into_libs=yes
  8590. dynamic_linker="$host_os dld.so"
  8591. shlibpath_var=LD_LIBRARY_PATH
  8592. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8594. soname_spec='${libname}${release}${shared_ext}$major'
  8595. if test "X$HPUX_IA64_MODE" = X32; then
  8596. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8597. else
  8598. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8599. fi
  8600. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8601. ;;
  8602. hppa*64*)
  8603. shrext_cmds='.sl'
  8604. hardcode_into_libs=yes
  8605. dynamic_linker="$host_os dld.sl"
  8606. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8607. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8609. soname_spec='${libname}${release}${shared_ext}$major'
  8610. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8611. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8612. ;;
  8613. *)
  8614. shrext_cmds='.sl'
  8615. dynamic_linker="$host_os dld.sl"
  8616. shlibpath_var=SHLIB_PATH
  8617. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. ;;
  8621. esac
  8622. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8623. postinstall_cmds='chmod 555 $lib'
  8624. ;;
  8625. interix[3-9]*)
  8626. version_type=linux
  8627. need_lib_prefix=no
  8628. need_version=no
  8629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8630. soname_spec='${libname}${release}${shared_ext}$major'
  8631. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8632. shlibpath_var=LD_LIBRARY_PATH
  8633. shlibpath_overrides_runpath=no
  8634. hardcode_into_libs=yes
  8635. ;;
  8636. irix5* | irix6* | nonstopux*)
  8637. case $host_os in
  8638. nonstopux*) version_type=nonstopux ;;
  8639. *)
  8640. if test "$lt_cv_prog_gnu_ld" = yes; then
  8641. version_type=linux
  8642. else
  8643. version_type=irix
  8644. fi ;;
  8645. esac
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. soname_spec='${libname}${release}${shared_ext}$major'
  8649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8650. case $host_os in
  8651. irix5* | nonstopux*)
  8652. libsuff= shlibsuff=
  8653. ;;
  8654. *)
  8655. case $LD in # libtool.m4 will add one of these switches to LD
  8656. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8657. libsuff= shlibsuff= libmagic=32-bit;;
  8658. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8659. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8660. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8661. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8662. *) libsuff= shlibsuff= libmagic=never-match;;
  8663. esac
  8664. ;;
  8665. esac
  8666. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8667. shlibpath_overrides_runpath=no
  8668. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8669. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8670. hardcode_into_libs=yes
  8671. ;;
  8672. # No shared lib support for Linux oldld, aout, or coff.
  8673. linux*oldld* | linux*aout* | linux*coff*)
  8674. dynamic_linker=no
  8675. ;;
  8676. # This must be Linux ELF.
  8677. linux* | k*bsd*-gnu)
  8678. version_type=linux
  8679. need_lib_prefix=no
  8680. need_version=no
  8681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8682. soname_spec='${libname}${release}${shared_ext}$major'
  8683. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8684. shlibpath_var=LD_LIBRARY_PATH
  8685. shlibpath_overrides_runpath=no
  8686. # Some binutils ld are patched to set DT_RUNPATH
  8687. save_LDFLAGS=$LDFLAGS
  8688. save_libdir=$libdir
  8689. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8690. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8692. /* end confdefs.h. */
  8693. int
  8694. main ()
  8695. {
  8696. ;
  8697. return 0;
  8698. }
  8699. _ACEOF
  8700. if ac_fn_c_try_link "$LINENO"; then :
  8701. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8702. shlibpath_overrides_runpath=yes
  8703. fi
  8704. fi
  8705. rm -f core conftest.err conftest.$ac_objext \
  8706. conftest$ac_exeext conftest.$ac_ext
  8707. LDFLAGS=$save_LDFLAGS
  8708. libdir=$save_libdir
  8709. # This implies no fast_install, which is unacceptable.
  8710. # Some rework will be needed to allow for fast_install
  8711. # before this can be enabled.
  8712. hardcode_into_libs=yes
  8713. # Append ld.so.conf contents to the search path
  8714. if test -f /etc/ld.so.conf; then
  8715. 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;/^$/d' | tr '\n' ' '`
  8716. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8717. fi
  8718. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8719. # powerpc, because MkLinux only supported shared libraries with the
  8720. # GNU dynamic linker. Since this was broken with cross compilers,
  8721. # most powerpc-linux boxes support dynamic linking these days and
  8722. # people can always --disable-shared, the test was removed, and we
  8723. # assume the GNU/Linux dynamic linker is in use.
  8724. dynamic_linker='GNU/Linux ld.so'
  8725. ;;
  8726. netbsdelf*-gnu)
  8727. version_type=linux
  8728. need_lib_prefix=no
  8729. need_version=no
  8730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8731. soname_spec='${libname}${release}${shared_ext}$major'
  8732. shlibpath_var=LD_LIBRARY_PATH
  8733. shlibpath_overrides_runpath=no
  8734. hardcode_into_libs=yes
  8735. dynamic_linker='NetBSD ld.elf_so'
  8736. ;;
  8737. netbsd*)
  8738. version_type=sunos
  8739. need_lib_prefix=no
  8740. need_version=no
  8741. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8743. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8744. dynamic_linker='NetBSD (a.out) ld.so'
  8745. else
  8746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8747. soname_spec='${libname}${release}${shared_ext}$major'
  8748. dynamic_linker='NetBSD ld.elf_so'
  8749. fi
  8750. shlibpath_var=LD_LIBRARY_PATH
  8751. shlibpath_overrides_runpath=yes
  8752. hardcode_into_libs=yes
  8753. ;;
  8754. newsos6)
  8755. version_type=linux
  8756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. shlibpath_overrides_runpath=yes
  8759. ;;
  8760. *nto* | *qnx*)
  8761. version_type=qnx
  8762. need_lib_prefix=no
  8763. need_version=no
  8764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8765. soname_spec='${libname}${release}${shared_ext}$major'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. shlibpath_overrides_runpath=no
  8768. hardcode_into_libs=yes
  8769. dynamic_linker='ldqnx.so'
  8770. ;;
  8771. openbsd*)
  8772. version_type=sunos
  8773. sys_lib_dlsearch_path_spec="/usr/lib"
  8774. need_lib_prefix=no
  8775. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8776. case $host_os in
  8777. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8778. *) need_version=no ;;
  8779. esac
  8780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8781. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8782. shlibpath_var=LD_LIBRARY_PATH
  8783. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8784. case $host_os in
  8785. openbsd2.[89] | openbsd2.[89].*)
  8786. shlibpath_overrides_runpath=no
  8787. ;;
  8788. *)
  8789. shlibpath_overrides_runpath=yes
  8790. ;;
  8791. esac
  8792. else
  8793. shlibpath_overrides_runpath=yes
  8794. fi
  8795. ;;
  8796. os2*)
  8797. libname_spec='$name'
  8798. shrext_cmds=".dll"
  8799. need_lib_prefix=no
  8800. library_names_spec='$libname${shared_ext} $libname.a'
  8801. dynamic_linker='OS/2 ld.exe'
  8802. shlibpath_var=LIBPATH
  8803. ;;
  8804. osf3* | osf4* | osf5*)
  8805. version_type=osf
  8806. need_lib_prefix=no
  8807. need_version=no
  8808. soname_spec='${libname}${release}${shared_ext}$major'
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8810. shlibpath_var=LD_LIBRARY_PATH
  8811. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8812. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8813. ;;
  8814. rdos*)
  8815. dynamic_linker=no
  8816. ;;
  8817. solaris*)
  8818. version_type=linux
  8819. need_lib_prefix=no
  8820. need_version=no
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. shlibpath_var=LD_LIBRARY_PATH
  8824. shlibpath_overrides_runpath=yes
  8825. hardcode_into_libs=yes
  8826. # ldd complains unless libraries are executable
  8827. postinstall_cmds='chmod +x $lib'
  8828. ;;
  8829. sunos4*)
  8830. version_type=sunos
  8831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8832. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8833. shlibpath_var=LD_LIBRARY_PATH
  8834. shlibpath_overrides_runpath=yes
  8835. if test "$with_gnu_ld" = yes; then
  8836. need_lib_prefix=no
  8837. fi
  8838. need_version=yes
  8839. ;;
  8840. sysv4 | sysv4.3*)
  8841. version_type=linux
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. case $host_vendor in
  8846. sni)
  8847. shlibpath_overrides_runpath=no
  8848. need_lib_prefix=no
  8849. runpath_var=LD_RUN_PATH
  8850. ;;
  8851. siemens)
  8852. need_lib_prefix=no
  8853. ;;
  8854. motorola)
  8855. need_lib_prefix=no
  8856. need_version=no
  8857. shlibpath_overrides_runpath=no
  8858. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8859. ;;
  8860. esac
  8861. ;;
  8862. sysv4*MP*)
  8863. if test -d /usr/nec ;then
  8864. version_type=linux
  8865. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8866. soname_spec='$libname${shared_ext}.$major'
  8867. shlibpath_var=LD_LIBRARY_PATH
  8868. fi
  8869. ;;
  8870. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8871. version_type=freebsd-elf
  8872. need_lib_prefix=no
  8873. need_version=no
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. shlibpath_overrides_runpath=yes
  8878. hardcode_into_libs=yes
  8879. if test "$with_gnu_ld" = yes; then
  8880. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8881. else
  8882. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8883. case $host_os in
  8884. sco3.2v5*)
  8885. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8886. ;;
  8887. esac
  8888. fi
  8889. sys_lib_dlsearch_path_spec='/usr/lib'
  8890. ;;
  8891. tpf*)
  8892. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8893. version_type=linux
  8894. need_lib_prefix=no
  8895. need_version=no
  8896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8897. shlibpath_var=LD_LIBRARY_PATH
  8898. shlibpath_overrides_runpath=no
  8899. hardcode_into_libs=yes
  8900. ;;
  8901. uts4*)
  8902. version_type=linux
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8904. soname_spec='${libname}${release}${shared_ext}$major'
  8905. shlibpath_var=LD_LIBRARY_PATH
  8906. ;;
  8907. *)
  8908. dynamic_linker=no
  8909. ;;
  8910. esac
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8912. $as_echo "$dynamic_linker" >&6; }
  8913. test "$dynamic_linker" = no && can_build_shared=no
  8914. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8915. if test "$GCC" = yes; then
  8916. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8917. fi
  8918. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8919. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8920. fi
  8921. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8922. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8923. fi
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8925. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8926. hardcode_action=
  8927. if test -n "$hardcode_libdir_flag_spec" ||
  8928. test -n "$runpath_var" ||
  8929. test "X$hardcode_automatic" = "Xyes" ; then
  8930. # We can hardcode non-existent directories.
  8931. if test "$hardcode_direct" != no &&
  8932. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8933. # have to relink, otherwise we might link with an installed library
  8934. # when we should be linking with a yet-to-be-installed one
  8935. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8936. test "$hardcode_minus_L" != no; then
  8937. # Linking always hardcodes the temporary library directory.
  8938. hardcode_action=relink
  8939. else
  8940. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8941. hardcode_action=immediate
  8942. fi
  8943. else
  8944. # We cannot hardcode anything, or else we can only hardcode existing
  8945. # directories.
  8946. hardcode_action=unsupported
  8947. fi
  8948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8949. $as_echo "$hardcode_action" >&6; }
  8950. if test "$hardcode_action" = relink ||
  8951. test "$inherit_rpath" = yes; then
  8952. # Fast installation is not supported
  8953. enable_fast_install=no
  8954. elif test "$shlibpath_overrides_runpath" = yes ||
  8955. test "$enable_shared" = no; then
  8956. # Fast installation is not necessary
  8957. enable_fast_install=needless
  8958. fi
  8959. if test "x$enable_dlopen" != xyes; then
  8960. enable_dlopen=unknown
  8961. enable_dlopen_self=unknown
  8962. enable_dlopen_self_static=unknown
  8963. else
  8964. lt_cv_dlopen=no
  8965. lt_cv_dlopen_libs=
  8966. case $host_os in
  8967. beos*)
  8968. lt_cv_dlopen="load_add_on"
  8969. lt_cv_dlopen_libs=
  8970. lt_cv_dlopen_self=yes
  8971. ;;
  8972. mingw* | pw32* | cegcc*)
  8973. lt_cv_dlopen="LoadLibrary"
  8974. lt_cv_dlopen_libs=
  8975. ;;
  8976. cygwin*)
  8977. lt_cv_dlopen="dlopen"
  8978. lt_cv_dlopen_libs=
  8979. ;;
  8980. darwin*)
  8981. # if libdl is installed we need to link against it
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8983. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8984. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8985. $as_echo_n "(cached) " >&6
  8986. else
  8987. ac_check_lib_save_LIBS=$LIBS
  8988. LIBS="-ldl $LIBS"
  8989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8990. /* end confdefs.h. */
  8991. /* Override any GCC internal prototype to avoid an error.
  8992. Use char because int might match the return type of a GCC
  8993. builtin and then its argument prototype would still apply. */
  8994. #ifdef __cplusplus
  8995. extern "C"
  8996. #endif
  8997. char dlopen ();
  8998. int
  8999. main ()
  9000. {
  9001. return dlopen ();
  9002. ;
  9003. return 0;
  9004. }
  9005. _ACEOF
  9006. if ac_fn_c_try_link "$LINENO"; then :
  9007. ac_cv_lib_dl_dlopen=yes
  9008. else
  9009. ac_cv_lib_dl_dlopen=no
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. LIBS=$ac_check_lib_save_LIBS
  9014. fi
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9016. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9017. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9018. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9019. else
  9020. lt_cv_dlopen="dyld"
  9021. lt_cv_dlopen_libs=
  9022. lt_cv_dlopen_self=yes
  9023. fi
  9024. ;;
  9025. *)
  9026. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9027. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9028. lt_cv_dlopen="shl_load"
  9029. else
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9031. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9032. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. ac_check_lib_save_LIBS=$LIBS
  9036. LIBS="-ldld $LIBS"
  9037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9038. /* end confdefs.h. */
  9039. /* Override any GCC internal prototype to avoid an error.
  9040. Use char because int might match the return type of a GCC
  9041. builtin and then its argument prototype would still apply. */
  9042. #ifdef __cplusplus
  9043. extern "C"
  9044. #endif
  9045. char shl_load ();
  9046. int
  9047. main ()
  9048. {
  9049. return shl_load ();
  9050. ;
  9051. return 0;
  9052. }
  9053. _ACEOF
  9054. if ac_fn_c_try_link "$LINENO"; then :
  9055. ac_cv_lib_dld_shl_load=yes
  9056. else
  9057. ac_cv_lib_dld_shl_load=no
  9058. fi
  9059. rm -f core conftest.err conftest.$ac_objext \
  9060. conftest$ac_exeext conftest.$ac_ext
  9061. LIBS=$ac_check_lib_save_LIBS
  9062. fi
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9064. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9065. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9066. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9067. else
  9068. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9069. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9070. lt_cv_dlopen="dlopen"
  9071. else
  9072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9073. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9074. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9075. $as_echo_n "(cached) " >&6
  9076. else
  9077. ac_check_lib_save_LIBS=$LIBS
  9078. LIBS="-ldl $LIBS"
  9079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9080. /* end confdefs.h. */
  9081. /* Override any GCC internal prototype to avoid an error.
  9082. Use char because int might match the return type of a GCC
  9083. builtin and then its argument prototype would still apply. */
  9084. #ifdef __cplusplus
  9085. extern "C"
  9086. #endif
  9087. char dlopen ();
  9088. int
  9089. main ()
  9090. {
  9091. return dlopen ();
  9092. ;
  9093. return 0;
  9094. }
  9095. _ACEOF
  9096. if ac_fn_c_try_link "$LINENO"; then :
  9097. ac_cv_lib_dl_dlopen=yes
  9098. else
  9099. ac_cv_lib_dl_dlopen=no
  9100. fi
  9101. rm -f core conftest.err conftest.$ac_objext \
  9102. conftest$ac_exeext conftest.$ac_ext
  9103. LIBS=$ac_check_lib_save_LIBS
  9104. fi
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9106. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9107. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9108. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9109. else
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9111. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9112. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9113. $as_echo_n "(cached) " >&6
  9114. else
  9115. ac_check_lib_save_LIBS=$LIBS
  9116. LIBS="-lsvld $LIBS"
  9117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9118. /* end confdefs.h. */
  9119. /* Override any GCC internal prototype to avoid an error.
  9120. Use char because int might match the return type of a GCC
  9121. builtin and then its argument prototype would still apply. */
  9122. #ifdef __cplusplus
  9123. extern "C"
  9124. #endif
  9125. char dlopen ();
  9126. int
  9127. main ()
  9128. {
  9129. return dlopen ();
  9130. ;
  9131. return 0;
  9132. }
  9133. _ACEOF
  9134. if ac_fn_c_try_link "$LINENO"; then :
  9135. ac_cv_lib_svld_dlopen=yes
  9136. else
  9137. ac_cv_lib_svld_dlopen=no
  9138. fi
  9139. rm -f core conftest.err conftest.$ac_objext \
  9140. conftest$ac_exeext conftest.$ac_ext
  9141. LIBS=$ac_check_lib_save_LIBS
  9142. fi
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9144. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9145. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9146. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9147. else
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9149. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9150. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9151. $as_echo_n "(cached) " >&6
  9152. else
  9153. ac_check_lib_save_LIBS=$LIBS
  9154. LIBS="-ldld $LIBS"
  9155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9156. /* end confdefs.h. */
  9157. /* Override any GCC internal prototype to avoid an error.
  9158. Use char because int might match the return type of a GCC
  9159. builtin and then its argument prototype would still apply. */
  9160. #ifdef __cplusplus
  9161. extern "C"
  9162. #endif
  9163. char dld_link ();
  9164. int
  9165. main ()
  9166. {
  9167. return dld_link ();
  9168. ;
  9169. return 0;
  9170. }
  9171. _ACEOF
  9172. if ac_fn_c_try_link "$LINENO"; then :
  9173. ac_cv_lib_dld_dld_link=yes
  9174. else
  9175. ac_cv_lib_dld_dld_link=no
  9176. fi
  9177. rm -f core conftest.err conftest.$ac_objext \
  9178. conftest$ac_exeext conftest.$ac_ext
  9179. LIBS=$ac_check_lib_save_LIBS
  9180. fi
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9182. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9183. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9184. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9185. fi
  9186. fi
  9187. fi
  9188. fi
  9189. fi
  9190. fi
  9191. ;;
  9192. esac
  9193. if test "x$lt_cv_dlopen" != xno; then
  9194. enable_dlopen=yes
  9195. else
  9196. enable_dlopen=no
  9197. fi
  9198. case $lt_cv_dlopen in
  9199. dlopen)
  9200. save_CPPFLAGS="$CPPFLAGS"
  9201. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9202. save_LDFLAGS="$LDFLAGS"
  9203. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9204. save_LIBS="$LIBS"
  9205. LIBS="$lt_cv_dlopen_libs $LIBS"
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9207. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9208. if test "${lt_cv_dlopen_self+set}" = set; then :
  9209. $as_echo_n "(cached) " >&6
  9210. else
  9211. if test "$cross_compiling" = yes; then :
  9212. lt_cv_dlopen_self=cross
  9213. else
  9214. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9215. lt_status=$lt_dlunknown
  9216. cat > conftest.$ac_ext <<_LT_EOF
  9217. #line 10700 "configure"
  9218. #include "confdefs.h"
  9219. #if HAVE_DLFCN_H
  9220. #include <dlfcn.h>
  9221. #endif
  9222. #include <stdio.h>
  9223. #ifdef RTLD_GLOBAL
  9224. # define LT_DLGLOBAL RTLD_GLOBAL
  9225. #else
  9226. # ifdef DL_GLOBAL
  9227. # define LT_DLGLOBAL DL_GLOBAL
  9228. # else
  9229. # define LT_DLGLOBAL 0
  9230. # endif
  9231. #endif
  9232. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9233. find out it does not work in some platform. */
  9234. #ifndef LT_DLLAZY_OR_NOW
  9235. # ifdef RTLD_LAZY
  9236. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9237. # else
  9238. # ifdef DL_LAZY
  9239. # define LT_DLLAZY_OR_NOW DL_LAZY
  9240. # else
  9241. # ifdef RTLD_NOW
  9242. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9243. # else
  9244. # ifdef DL_NOW
  9245. # define LT_DLLAZY_OR_NOW DL_NOW
  9246. # else
  9247. # define LT_DLLAZY_OR_NOW 0
  9248. # endif
  9249. # endif
  9250. # endif
  9251. # endif
  9252. #endif
  9253. void fnord() { int i=42;}
  9254. int main ()
  9255. {
  9256. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9257. int status = $lt_dlunknown;
  9258. if (self)
  9259. {
  9260. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9261. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9262. /* dlclose (self); */
  9263. }
  9264. else
  9265. puts (dlerror ());
  9266. return status;
  9267. }
  9268. _LT_EOF
  9269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9270. (eval $ac_link) 2>&5
  9271. ac_status=$?
  9272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9273. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9274. (./conftest; exit; ) >&5 2>/dev/null
  9275. lt_status=$?
  9276. case x$lt_status in
  9277. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9278. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9279. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9280. esac
  9281. else :
  9282. # compilation failed
  9283. lt_cv_dlopen_self=no
  9284. fi
  9285. fi
  9286. rm -fr conftest*
  9287. fi
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9289. $as_echo "$lt_cv_dlopen_self" >&6; }
  9290. if test "x$lt_cv_dlopen_self" = xyes; then
  9291. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9293. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9294. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. if test "$cross_compiling" = yes; then :
  9298. lt_cv_dlopen_self_static=cross
  9299. else
  9300. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9301. lt_status=$lt_dlunknown
  9302. cat > conftest.$ac_ext <<_LT_EOF
  9303. #line 10796 "configure"
  9304. #include "confdefs.h"
  9305. #if HAVE_DLFCN_H
  9306. #include <dlfcn.h>
  9307. #endif
  9308. #include <stdio.h>
  9309. #ifdef RTLD_GLOBAL
  9310. # define LT_DLGLOBAL RTLD_GLOBAL
  9311. #else
  9312. # ifdef DL_GLOBAL
  9313. # define LT_DLGLOBAL DL_GLOBAL
  9314. # else
  9315. # define LT_DLGLOBAL 0
  9316. # endif
  9317. #endif
  9318. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9319. find out it does not work in some platform. */
  9320. #ifndef LT_DLLAZY_OR_NOW
  9321. # ifdef RTLD_LAZY
  9322. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9323. # else
  9324. # ifdef DL_LAZY
  9325. # define LT_DLLAZY_OR_NOW DL_LAZY
  9326. # else
  9327. # ifdef RTLD_NOW
  9328. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9329. # else
  9330. # ifdef DL_NOW
  9331. # define LT_DLLAZY_OR_NOW DL_NOW
  9332. # else
  9333. # define LT_DLLAZY_OR_NOW 0
  9334. # endif
  9335. # endif
  9336. # endif
  9337. # endif
  9338. #endif
  9339. void fnord() { int i=42;}
  9340. int main ()
  9341. {
  9342. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9343. int status = $lt_dlunknown;
  9344. if (self)
  9345. {
  9346. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9347. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9348. /* dlclose (self); */
  9349. }
  9350. else
  9351. puts (dlerror ());
  9352. return status;
  9353. }
  9354. _LT_EOF
  9355. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9356. (eval $ac_link) 2>&5
  9357. ac_status=$?
  9358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9359. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9360. (./conftest; exit; ) >&5 2>/dev/null
  9361. lt_status=$?
  9362. case x$lt_status in
  9363. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9364. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9365. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9366. esac
  9367. else :
  9368. # compilation failed
  9369. lt_cv_dlopen_self_static=no
  9370. fi
  9371. fi
  9372. rm -fr conftest*
  9373. fi
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9375. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9376. fi
  9377. CPPFLAGS="$save_CPPFLAGS"
  9378. LDFLAGS="$save_LDFLAGS"
  9379. LIBS="$save_LIBS"
  9380. ;;
  9381. esac
  9382. case $lt_cv_dlopen_self in
  9383. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9384. *) enable_dlopen_self=unknown ;;
  9385. esac
  9386. case $lt_cv_dlopen_self_static in
  9387. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9388. *) enable_dlopen_self_static=unknown ;;
  9389. esac
  9390. fi
  9391. striplib=
  9392. old_striplib=
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9394. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9395. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9396. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9397. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9399. $as_echo "yes" >&6; }
  9400. else
  9401. # FIXME - insert some real tests, host_os isn't really good enough
  9402. case $host_os in
  9403. darwin*)
  9404. if test -n "$STRIP" ; then
  9405. striplib="$STRIP -x"
  9406. old_striplib="$STRIP -S"
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9408. $as_echo "yes" >&6; }
  9409. else
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9411. $as_echo "no" >&6; }
  9412. fi
  9413. ;;
  9414. *)
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9416. $as_echo "no" >&6; }
  9417. ;;
  9418. esac
  9419. fi
  9420. # Report which library types will actually be built
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9422. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9424. $as_echo "$can_build_shared" >&6; }
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9426. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9427. test "$can_build_shared" = "no" && enable_shared=no
  9428. # On AIX, shared libraries and static libraries use the same namespace, and
  9429. # are all built from PIC.
  9430. case $host_os in
  9431. aix3*)
  9432. test "$enable_shared" = yes && enable_static=no
  9433. if test -n "$RANLIB"; then
  9434. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9435. postinstall_cmds='$RANLIB $lib'
  9436. fi
  9437. ;;
  9438. aix[4-9]*)
  9439. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9440. test "$enable_shared" = yes && enable_static=no
  9441. fi
  9442. ;;
  9443. esac
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9445. $as_echo "$enable_shared" >&6; }
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9447. $as_echo_n "checking whether to build static libraries... " >&6; }
  9448. # Make sure either enable_shared or enable_static is yes.
  9449. test "$enable_shared" = yes || enable_static=yes
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9451. $as_echo "$enable_static" >&6; }
  9452. fi
  9453. ac_ext=c
  9454. ac_cpp='$CPP $CPPFLAGS'
  9455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9458. CC="$lt_save_CC"
  9459. ac_ext=cpp
  9460. ac_cpp='$CXXCPP $CPPFLAGS'
  9461. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9462. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9463. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9464. archive_cmds_need_lc_CXX=no
  9465. allow_undefined_flag_CXX=
  9466. always_export_symbols_CXX=no
  9467. archive_expsym_cmds_CXX=
  9468. compiler_needs_object_CXX=no
  9469. export_dynamic_flag_spec_CXX=
  9470. hardcode_direct_CXX=no
  9471. hardcode_direct_absolute_CXX=no
  9472. hardcode_libdir_flag_spec_CXX=
  9473. hardcode_libdir_flag_spec_ld_CXX=
  9474. hardcode_libdir_separator_CXX=
  9475. hardcode_minus_L_CXX=no
  9476. hardcode_shlibpath_var_CXX=unsupported
  9477. hardcode_automatic_CXX=no
  9478. inherit_rpath_CXX=no
  9479. module_cmds_CXX=
  9480. module_expsym_cmds_CXX=
  9481. link_all_deplibs_CXX=unknown
  9482. old_archive_cmds_CXX=$old_archive_cmds
  9483. no_undefined_flag_CXX=
  9484. whole_archive_flag_spec_CXX=
  9485. enable_shared_with_static_runtimes_CXX=no
  9486. # Source file extension for C++ test sources.
  9487. ac_ext=cpp
  9488. # Object file extension for compiled C++ test sources.
  9489. objext=o
  9490. objext_CXX=$objext
  9491. # No sense in running all these tests if we already determined that
  9492. # the CXX compiler isn't working. Some variables (like enable_shared)
  9493. # are currently assumed to apply to all compilers on this platform,
  9494. # and will be corrupted by setting them based on a non-working compiler.
  9495. if test "$_lt_caught_CXX_error" != yes; then
  9496. # Code to be used in simple compile tests
  9497. lt_simple_compile_test_code="int some_variable = 0;"
  9498. # Code to be used in simple link tests
  9499. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9500. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9501. # If no C compiler was specified, use CC.
  9502. LTCC=${LTCC-"$CC"}
  9503. # If no C compiler flags were specified, use CFLAGS.
  9504. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9505. # Allow CC to be a program name with arguments.
  9506. compiler=$CC
  9507. # save warnings/boilerplate of simple test code
  9508. ac_outfile=conftest.$ac_objext
  9509. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9510. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9511. _lt_compiler_boilerplate=`cat conftest.err`
  9512. $RM conftest*
  9513. ac_outfile=conftest.$ac_objext
  9514. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9515. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9516. _lt_linker_boilerplate=`cat conftest.err`
  9517. $RM -r conftest*
  9518. # Allow CC to be a program name with arguments.
  9519. lt_save_CC=$CC
  9520. lt_save_LD=$LD
  9521. lt_save_GCC=$GCC
  9522. GCC=$GXX
  9523. lt_save_with_gnu_ld=$with_gnu_ld
  9524. lt_save_path_LD=$lt_cv_path_LD
  9525. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9526. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9527. else
  9528. $as_unset lt_cv_prog_gnu_ld
  9529. fi
  9530. if test -n "${lt_cv_path_LDCXX+set}"; then
  9531. lt_cv_path_LD=$lt_cv_path_LDCXX
  9532. else
  9533. $as_unset lt_cv_path_LD
  9534. fi
  9535. test -z "${LDCXX+set}" || LD=$LDCXX
  9536. CC=${CXX-"c++"}
  9537. compiler=$CC
  9538. compiler_CXX=$CC
  9539. for cc_temp in $compiler""; do
  9540. case $cc_temp in
  9541. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9542. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9543. \-*) ;;
  9544. *) break;;
  9545. esac
  9546. done
  9547. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9548. if test -n "$compiler"; then
  9549. # We don't want -fno-exception when compiling C++ code, so set the
  9550. # no_builtin_flag separately
  9551. if test "$GXX" = yes; then
  9552. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9553. else
  9554. lt_prog_compiler_no_builtin_flag_CXX=
  9555. fi
  9556. if test "$GXX" = yes; then
  9557. # Set up default GNU C++ configuration
  9558. # Check whether --with-gnu-ld was given.
  9559. if test "${with_gnu_ld+set}" = set; then :
  9560. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9561. else
  9562. with_gnu_ld=no
  9563. fi
  9564. ac_prog=ld
  9565. if test "$GCC" = yes; then
  9566. # Check if gcc -print-prog-name=ld gives a path.
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9568. $as_echo_n "checking for ld used by $CC... " >&6; }
  9569. case $host in
  9570. *-*-mingw*)
  9571. # gcc leaves a trailing carriage return which upsets mingw
  9572. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9573. *)
  9574. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9575. esac
  9576. case $ac_prog in
  9577. # Accept absolute paths.
  9578. [\\/]* | ?:[\\/]*)
  9579. re_direlt='/[^/][^/]*/\.\./'
  9580. # Canonicalize the pathname of ld
  9581. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9582. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9583. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9584. done
  9585. test -z "$LD" && LD="$ac_prog"
  9586. ;;
  9587. "")
  9588. # If it fails, then pretend we aren't using GCC.
  9589. ac_prog=ld
  9590. ;;
  9591. *)
  9592. # If it is relative, then search for the first ld in PATH.
  9593. with_gnu_ld=unknown
  9594. ;;
  9595. esac
  9596. elif test "$with_gnu_ld" = yes; then
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9598. $as_echo_n "checking for GNU ld... " >&6; }
  9599. else
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9601. $as_echo_n "checking for non-GNU ld... " >&6; }
  9602. fi
  9603. if test "${lt_cv_path_LD+set}" = set; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. if test -z "$LD"; then
  9607. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9608. for ac_dir in $PATH; do
  9609. IFS="$lt_save_ifs"
  9610. test -z "$ac_dir" && ac_dir=.
  9611. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9612. lt_cv_path_LD="$ac_dir/$ac_prog"
  9613. # Check to see if the program is GNU ld. I'd rather use --version,
  9614. # but apparently some variants of GNU ld only accept -v.
  9615. # Break only if it was the GNU/non-GNU ld that we prefer.
  9616. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9617. *GNU* | *'with BFD'*)
  9618. test "$with_gnu_ld" != no && break
  9619. ;;
  9620. *)
  9621. test "$with_gnu_ld" != yes && break
  9622. ;;
  9623. esac
  9624. fi
  9625. done
  9626. IFS="$lt_save_ifs"
  9627. else
  9628. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9629. fi
  9630. fi
  9631. LD="$lt_cv_path_LD"
  9632. if test -n "$LD"; then
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9634. $as_echo "$LD" >&6; }
  9635. else
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9637. $as_echo "no" >&6; }
  9638. fi
  9639. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9641. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9642. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9646. case `$LD -v 2>&1 </dev/null` in
  9647. *GNU* | *'with BFD'*)
  9648. lt_cv_prog_gnu_ld=yes
  9649. ;;
  9650. *)
  9651. lt_cv_prog_gnu_ld=no
  9652. ;;
  9653. esac
  9654. fi
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9656. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9657. with_gnu_ld=$lt_cv_prog_gnu_ld
  9658. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9659. # archiving commands below assume that GNU ld is being used.
  9660. if test "$with_gnu_ld" = yes; then
  9661. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9662. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9663. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9664. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9665. # If archive_cmds runs LD, not CC, wlarc should be empty
  9666. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9667. # investigate it a little bit more. (MM)
  9668. wlarc='${wl}'
  9669. # ancient GNU ld didn't support --whole-archive et. al.
  9670. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9671. $GREP 'no-whole-archive' > /dev/null; then
  9672. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9673. else
  9674. whole_archive_flag_spec_CXX=
  9675. fi
  9676. else
  9677. with_gnu_ld=no
  9678. wlarc=
  9679. # A generic and very simple default shared library creation
  9680. # command for GNU C++ for the case where it uses the native
  9681. # linker, instead of GNU ld. If possible, this setting should
  9682. # overridden to take advantage of the native linker features on
  9683. # the platform it is being used on.
  9684. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9685. fi
  9686. # Commands to make compiler produce verbose output that lists
  9687. # what "hidden" libraries, object files and flags are used when
  9688. # linking a shared library.
  9689. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9690. else
  9691. GXX=no
  9692. with_gnu_ld=no
  9693. wlarc=
  9694. fi
  9695. # PORTME: fill in a description of your system's C++ link characteristics
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9697. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9698. ld_shlibs_CXX=yes
  9699. case $host_os in
  9700. aix3*)
  9701. # FIXME: insert proper C++ library support
  9702. ld_shlibs_CXX=no
  9703. ;;
  9704. aix[4-9]*)
  9705. if test "$host_cpu" = ia64; then
  9706. # On IA64, the linker does run time linking by default, so we don't
  9707. # have to do anything special.
  9708. aix_use_runtimelinking=no
  9709. exp_sym_flag='-Bexport'
  9710. no_entry_flag=""
  9711. else
  9712. aix_use_runtimelinking=no
  9713. # Test if we are trying to use run time linking or normal
  9714. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9715. # need to do runtime linking.
  9716. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9717. for ld_flag in $LDFLAGS; do
  9718. case $ld_flag in
  9719. *-brtl*)
  9720. aix_use_runtimelinking=yes
  9721. break
  9722. ;;
  9723. esac
  9724. done
  9725. ;;
  9726. esac
  9727. exp_sym_flag='-bexport'
  9728. no_entry_flag='-bnoentry'
  9729. fi
  9730. # When large executables or shared objects are built, AIX ld can
  9731. # have problems creating the table of contents. If linking a library
  9732. # or program results in "error TOC overflow" add -mminimal-toc to
  9733. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9734. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9735. archive_cmds_CXX=''
  9736. hardcode_direct_CXX=yes
  9737. hardcode_direct_absolute_CXX=yes
  9738. hardcode_libdir_separator_CXX=':'
  9739. link_all_deplibs_CXX=yes
  9740. file_list_spec_CXX='${wl}-f,'
  9741. if test "$GXX" = yes; then
  9742. case $host_os in aix4.[012]|aix4.[012].*)
  9743. # We only want to do this on AIX 4.2 and lower, the check
  9744. # below for broken collect2 doesn't work under 4.3+
  9745. collect2name=`${CC} -print-prog-name=collect2`
  9746. if test -f "$collect2name" &&
  9747. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9748. then
  9749. # We have reworked collect2
  9750. :
  9751. else
  9752. # We have old collect2
  9753. hardcode_direct_CXX=unsupported
  9754. # It fails to find uninstalled libraries when the uninstalled
  9755. # path is not listed in the libpath. Setting hardcode_minus_L
  9756. # to unsupported forces relinking
  9757. hardcode_minus_L_CXX=yes
  9758. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9759. hardcode_libdir_separator_CXX=
  9760. fi
  9761. esac
  9762. shared_flag='-shared'
  9763. if test "$aix_use_runtimelinking" = yes; then
  9764. shared_flag="$shared_flag "'${wl}-G'
  9765. fi
  9766. else
  9767. # not using gcc
  9768. if test "$host_cpu" = ia64; then
  9769. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9770. # chokes on -Wl,-G. The following line is correct:
  9771. shared_flag='-G'
  9772. else
  9773. if test "$aix_use_runtimelinking" = yes; then
  9774. shared_flag='${wl}-G'
  9775. else
  9776. shared_flag='${wl}-bM:SRE'
  9777. fi
  9778. fi
  9779. fi
  9780. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  9781. # It seems that -bexpall does not export symbols beginning with
  9782. # underscore (_), so it is better to generate a list of symbols to
  9783. # export.
  9784. always_export_symbols_CXX=yes
  9785. if test "$aix_use_runtimelinking" = yes; then
  9786. # Warning - without using the other runtime loading flags (-brtl),
  9787. # -berok will link without error, but may produce a broken library.
  9788. allow_undefined_flag_CXX='-berok'
  9789. # Determine the default libpath from the value encoded in an empty
  9790. # executable.
  9791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9792. /* end confdefs.h. */
  9793. int
  9794. main ()
  9795. {
  9796. ;
  9797. return 0;
  9798. }
  9799. _ACEOF
  9800. if ac_fn_cxx_try_link "$LINENO"; then :
  9801. lt_aix_libpath_sed='
  9802. /Import File Strings/,/^$/ {
  9803. /^0/ {
  9804. s/^0 *\(.*\)$/\1/
  9805. p
  9806. }
  9807. }'
  9808. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9809. # Check for a 64-bit object if we didn't find anything.
  9810. if test -z "$aix_libpath"; then
  9811. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9812. fi
  9813. fi
  9814. rm -f core conftest.err conftest.$ac_objext \
  9815. conftest$ac_exeext conftest.$ac_ext
  9816. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9817. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9818. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9819. else
  9820. if test "$host_cpu" = ia64; then
  9821. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9822. allow_undefined_flag_CXX="-z nodefs"
  9823. 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"
  9824. else
  9825. # Determine the default libpath from the value encoded in an
  9826. # empty executable.
  9827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9828. /* end confdefs.h. */
  9829. int
  9830. main ()
  9831. {
  9832. ;
  9833. return 0;
  9834. }
  9835. _ACEOF
  9836. if ac_fn_cxx_try_link "$LINENO"; then :
  9837. lt_aix_libpath_sed='
  9838. /Import File Strings/,/^$/ {
  9839. /^0/ {
  9840. s/^0 *\(.*\)$/\1/
  9841. p
  9842. }
  9843. }'
  9844. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9845. # Check for a 64-bit object if we didn't find anything.
  9846. if test -z "$aix_libpath"; then
  9847. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9848. fi
  9849. fi
  9850. rm -f core conftest.err conftest.$ac_objext \
  9851. conftest$ac_exeext conftest.$ac_ext
  9852. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9853. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9854. # Warning - without using the other run time loading flags,
  9855. # -berok will link without error, but may produce a broken library.
  9856. no_undefined_flag_CXX=' ${wl}-bernotok'
  9857. allow_undefined_flag_CXX=' ${wl}-berok'
  9858. # Exported symbols can be pulled into shared objects from archives
  9859. whole_archive_flag_spec_CXX='$convenience'
  9860. archive_cmds_need_lc_CXX=yes
  9861. # This is similar to how AIX traditionally builds its shared
  9862. # libraries.
  9863. 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'
  9864. fi
  9865. fi
  9866. ;;
  9867. beos*)
  9868. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9869. allow_undefined_flag_CXX=unsupported
  9870. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9871. # support --undefined. This deserves some investigation. FIXME
  9872. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9873. else
  9874. ld_shlibs_CXX=no
  9875. fi
  9876. ;;
  9877. chorus*)
  9878. case $cc_basename in
  9879. *)
  9880. # FIXME: insert proper C++ library support
  9881. ld_shlibs_CXX=no
  9882. ;;
  9883. esac
  9884. ;;
  9885. cygwin* | mingw* | pw32* | cegcc*)
  9886. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9887. # as there is no search path for DLLs.
  9888. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9889. allow_undefined_flag_CXX=unsupported
  9890. always_export_symbols_CXX=no
  9891. enable_shared_with_static_runtimes_CXX=yes
  9892. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9893. 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'
  9894. # If the export-symbols file already is a .def file (1st line
  9895. # is EXPORTS), use it as is; otherwise, prepend...
  9896. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9897. cp $export_symbols $output_objdir/$soname.def;
  9898. else
  9899. echo EXPORTS > $output_objdir/$soname.def;
  9900. cat $export_symbols >> $output_objdir/$soname.def;
  9901. fi~
  9902. $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'
  9903. else
  9904. ld_shlibs_CXX=no
  9905. fi
  9906. ;;
  9907. darwin* | rhapsody*)
  9908. archive_cmds_need_lc_CXX=no
  9909. hardcode_direct_CXX=no
  9910. hardcode_automatic_CXX=yes
  9911. hardcode_shlibpath_var_CXX=unsupported
  9912. whole_archive_flag_spec_CXX=''
  9913. link_all_deplibs_CXX=yes
  9914. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9915. case $cc_basename in
  9916. ifort*) _lt_dar_can_shared=yes ;;
  9917. *) _lt_dar_can_shared=$GCC ;;
  9918. esac
  9919. if test "$_lt_dar_can_shared" = "yes"; then
  9920. output_verbose_link_cmd=echo
  9921. 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}"
  9922. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9923. 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}"
  9924. 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}"
  9925. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9926. 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}"
  9927. 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}"
  9928. fi
  9929. else
  9930. ld_shlibs_CXX=no
  9931. fi
  9932. ;;
  9933. dgux*)
  9934. case $cc_basename in
  9935. ec++*)
  9936. # FIXME: insert proper C++ library support
  9937. ld_shlibs_CXX=no
  9938. ;;
  9939. ghcx*)
  9940. # Green Hills C++ Compiler
  9941. # FIXME: insert proper C++ library support
  9942. ld_shlibs_CXX=no
  9943. ;;
  9944. *)
  9945. # FIXME: insert proper C++ library support
  9946. ld_shlibs_CXX=no
  9947. ;;
  9948. esac
  9949. ;;
  9950. freebsd[12]*)
  9951. # C++ shared libraries reported to be fairly broken before
  9952. # switch to ELF
  9953. ld_shlibs_CXX=no
  9954. ;;
  9955. freebsd-elf*)
  9956. archive_cmds_need_lc_CXX=no
  9957. ;;
  9958. freebsd* | dragonfly*)
  9959. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9960. # conventions
  9961. ld_shlibs_CXX=yes
  9962. ;;
  9963. gnu*)
  9964. ;;
  9965. hpux9*)
  9966. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9967. hardcode_libdir_separator_CXX=:
  9968. export_dynamic_flag_spec_CXX='${wl}-E'
  9969. hardcode_direct_CXX=yes
  9970. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9971. # but as the default
  9972. # location of the library.
  9973. case $cc_basename in
  9974. CC*)
  9975. # FIXME: insert proper C++ library support
  9976. ld_shlibs_CXX=no
  9977. ;;
  9978. aCC*)
  9979. 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'
  9980. # Commands to make compiler produce verbose output that lists
  9981. # what "hidden" libraries, object files and flags are used when
  9982. # linking a shared library.
  9983. #
  9984. # There doesn't appear to be a way to prevent this compiler from
  9985. # explicitly linking system object files so we need to strip them
  9986. # from the output so that they don't get included in the library
  9987. # dependencies.
  9988. 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; $ECHO "X$list" | $Xsed'
  9989. ;;
  9990. *)
  9991. if test "$GXX" = yes; then
  9992. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  9993. else
  9994. # FIXME: insert proper C++ library support
  9995. ld_shlibs_CXX=no
  9996. fi
  9997. ;;
  9998. esac
  9999. ;;
  10000. hpux10*|hpux11*)
  10001. if test $with_gnu_ld = no; then
  10002. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10003. hardcode_libdir_separator_CXX=:
  10004. case $host_cpu in
  10005. hppa*64*|ia64*)
  10006. ;;
  10007. *)
  10008. export_dynamic_flag_spec_CXX='${wl}-E'
  10009. ;;
  10010. esac
  10011. fi
  10012. case $host_cpu in
  10013. hppa*64*|ia64*)
  10014. hardcode_direct_CXX=no
  10015. hardcode_shlibpath_var_CXX=no
  10016. ;;
  10017. *)
  10018. hardcode_direct_CXX=yes
  10019. hardcode_direct_absolute_CXX=yes
  10020. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10021. # but as the default
  10022. # location of the library.
  10023. ;;
  10024. esac
  10025. case $cc_basename in
  10026. CC*)
  10027. # FIXME: insert proper C++ library support
  10028. ld_shlibs_CXX=no
  10029. ;;
  10030. aCC*)
  10031. case $host_cpu in
  10032. hppa*64*)
  10033. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10034. ;;
  10035. ia64*)
  10036. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10037. ;;
  10038. *)
  10039. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10040. ;;
  10041. esac
  10042. # Commands to make compiler produce verbose output that lists
  10043. # what "hidden" libraries, object files and flags are used when
  10044. # linking a shared library.
  10045. #
  10046. # There doesn't appear to be a way to prevent this compiler from
  10047. # explicitly linking system object files so we need to strip them
  10048. # from the output so that they don't get included in the library
  10049. # dependencies.
  10050. 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; $ECHO "X$list" | $Xsed'
  10051. ;;
  10052. *)
  10053. if test "$GXX" = yes; then
  10054. if test $with_gnu_ld = no; then
  10055. case $host_cpu in
  10056. hppa*64*)
  10057. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10058. ;;
  10059. ia64*)
  10060. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10061. ;;
  10062. *)
  10063. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10064. ;;
  10065. esac
  10066. fi
  10067. else
  10068. # FIXME: insert proper C++ library support
  10069. ld_shlibs_CXX=no
  10070. fi
  10071. ;;
  10072. esac
  10073. ;;
  10074. interix[3-9]*)
  10075. hardcode_direct_CXX=no
  10076. hardcode_shlibpath_var_CXX=no
  10077. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10078. export_dynamic_flag_spec_CXX='${wl}-E'
  10079. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10080. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10081. # default) and relocated if they conflict, which is a slow very memory
  10082. # consuming and fragmenting process. To avoid this, we pick a random,
  10083. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10084. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10085. 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'
  10086. 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'
  10087. ;;
  10088. irix5* | irix6*)
  10089. case $cc_basename in
  10090. CC*)
  10091. # SGI C++
  10092. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10093. # Archives containing C++ object files must be created using
  10094. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10095. # necessary to make sure instantiated templates are included
  10096. # in the archive.
  10097. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10098. ;;
  10099. *)
  10100. if test "$GXX" = yes; then
  10101. if test "$with_gnu_ld" = no; then
  10102. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10103. else
  10104. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10105. fi
  10106. fi
  10107. link_all_deplibs_CXX=yes
  10108. ;;
  10109. esac
  10110. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10111. hardcode_libdir_separator_CXX=:
  10112. inherit_rpath_CXX=yes
  10113. ;;
  10114. linux* | k*bsd*-gnu)
  10115. case $cc_basename in
  10116. KCC*)
  10117. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10118. # KCC will only create a shared library if the output file
  10119. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10120. # to its proper name (with version) after linking.
  10121. 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'
  10122. 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'
  10123. # Commands to make compiler produce verbose output that lists
  10124. # what "hidden" libraries, object files and flags are used when
  10125. # linking a shared library.
  10126. #
  10127. # There doesn't appear to be a way to prevent this compiler from
  10128. # explicitly linking system object files so we need to strip them
  10129. # from the output so that they don't get included in the library
  10130. # dependencies.
  10131. 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; $ECHO "X$list" | $Xsed'
  10132. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10133. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10134. # Archives containing C++ object files must be created using
  10135. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10136. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10137. ;;
  10138. icpc* | ecpc* )
  10139. # Intel C++
  10140. with_gnu_ld=yes
  10141. # version 8.0 and above of icpc choke on multiply defined symbols
  10142. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10143. # earlier do not add the objects themselves.
  10144. case `$CC -V 2>&1` in
  10145. *"Version 7."*)
  10146. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10147. 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'
  10148. ;;
  10149. *) # Version 8.0 or newer
  10150. tmp_idyn=
  10151. case $host_cpu in
  10152. ia64*) tmp_idyn=' -i_dynamic';;
  10153. esac
  10154. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10155. 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'
  10156. ;;
  10157. esac
  10158. archive_cmds_need_lc_CXX=no
  10159. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10160. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10161. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10162. ;;
  10163. pgCC* | pgcpp*)
  10164. # Portland Group C++ compiler
  10165. case `$CC -V` in
  10166. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10167. prelink_cmds_CXX='tpldir=Template.dir~
  10168. rm -rf $tpldir~
  10169. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10170. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10171. old_archive_cmds_CXX='tpldir=Template.dir~
  10172. rm -rf $tpldir~
  10173. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10174. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10175. $RANLIB $oldlib'
  10176. archive_cmds_CXX='tpldir=Template.dir~
  10177. rm -rf $tpldir~
  10178. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10179. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10180. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10181. rm -rf $tpldir~
  10182. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10183. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10184. ;;
  10185. *) # Version 6 will use weak symbols
  10186. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10187. 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'
  10188. ;;
  10189. esac
  10190. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10191. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10192. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10193. ;;
  10194. cxx*)
  10195. # Compaq C++
  10196. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10197. 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'
  10198. runpath_var=LD_RUN_PATH
  10199. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10200. hardcode_libdir_separator_CXX=:
  10201. # Commands to make compiler produce verbose output that lists
  10202. # what "hidden" libraries, object files and flags are used when
  10203. # linking a shared library.
  10204. #
  10205. # There doesn't appear to be a way to prevent this compiler from
  10206. # explicitly linking system object files so we need to strip them
  10207. # from the output so that they don't get included in the library
  10208. # dependencies.
  10209. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10210. ;;
  10211. xl*)
  10212. # IBM XL 8.0 on PPC, with GNU ld
  10213. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10214. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10215. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10216. if test "x$supports_anon_versioning" = xyes; then
  10217. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10218. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10219. echo "local: *; };" >> $output_objdir/$libname.ver~
  10220. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10221. fi
  10222. ;;
  10223. *)
  10224. case `$CC -V 2>&1 | sed 5q` in
  10225. *Sun\ C*)
  10226. # Sun C++ 5.9
  10227. no_undefined_flag_CXX=' -zdefs'
  10228. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10229. 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'
  10230. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10231. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10232. compiler_needs_object_CXX=yes
  10233. # Not sure whether something based on
  10234. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10235. # would be better.
  10236. output_verbose_link_cmd='echo'
  10237. # Archives containing C++ object files must be created using
  10238. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10239. # necessary to make sure instantiated templates are included
  10240. # in the archive.
  10241. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10242. ;;
  10243. esac
  10244. ;;
  10245. esac
  10246. ;;
  10247. lynxos*)
  10248. # FIXME: insert proper C++ library support
  10249. ld_shlibs_CXX=no
  10250. ;;
  10251. m88k*)
  10252. # FIXME: insert proper C++ library support
  10253. ld_shlibs_CXX=no
  10254. ;;
  10255. mvs*)
  10256. case $cc_basename in
  10257. cxx*)
  10258. # FIXME: insert proper C++ library support
  10259. ld_shlibs_CXX=no
  10260. ;;
  10261. *)
  10262. # FIXME: insert proper C++ library support
  10263. ld_shlibs_CXX=no
  10264. ;;
  10265. esac
  10266. ;;
  10267. netbsd*)
  10268. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10269. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10270. wlarc=
  10271. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10272. hardcode_direct_CXX=yes
  10273. hardcode_shlibpath_var_CXX=no
  10274. fi
  10275. # Workaround some broken pre-1.5 toolchains
  10276. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10277. ;;
  10278. *nto* | *qnx*)
  10279. ld_shlibs_CXX=yes
  10280. ;;
  10281. openbsd2*)
  10282. # C++ shared libraries are fairly broken
  10283. ld_shlibs_CXX=no
  10284. ;;
  10285. openbsd*)
  10286. if test -f /usr/libexec/ld.so; then
  10287. hardcode_direct_CXX=yes
  10288. hardcode_shlibpath_var_CXX=no
  10289. hardcode_direct_absolute_CXX=yes
  10290. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10291. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10292. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10293. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10294. export_dynamic_flag_spec_CXX='${wl}-E'
  10295. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10296. fi
  10297. output_verbose_link_cmd=echo
  10298. else
  10299. ld_shlibs_CXX=no
  10300. fi
  10301. ;;
  10302. osf3* | osf4* | osf5*)
  10303. case $cc_basename in
  10304. KCC*)
  10305. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10306. # KCC will only create a shared library if the output file
  10307. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10308. # to its proper name (with version) after linking.
  10309. 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'
  10310. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10311. hardcode_libdir_separator_CXX=:
  10312. # Archives containing C++ object files must be created using
  10313. # the KAI C++ compiler.
  10314. case $host in
  10315. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10316. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10317. esac
  10318. ;;
  10319. RCC*)
  10320. # Rational C++ 2.4.1
  10321. # FIXME: insert proper C++ library support
  10322. ld_shlibs_CXX=no
  10323. ;;
  10324. cxx*)
  10325. case $host in
  10326. osf3*)
  10327. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10328. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10329. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10330. ;;
  10331. *)
  10332. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10333. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10334. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10335. echo "-hidden">> $lib.exp~
  10336. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10337. $RM $lib.exp'
  10338. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10339. ;;
  10340. esac
  10341. hardcode_libdir_separator_CXX=:
  10342. # Commands to make compiler produce verbose output that lists
  10343. # what "hidden" libraries, object files and flags are used when
  10344. # linking a shared library.
  10345. #
  10346. # There doesn't appear to be a way to prevent this compiler from
  10347. # explicitly linking system object files so we need to strip them
  10348. # from the output so that they don't get included in the library
  10349. # dependencies.
  10350. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10351. ;;
  10352. *)
  10353. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10354. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10355. case $host in
  10356. osf3*)
  10357. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10358. ;;
  10359. *)
  10360. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10361. ;;
  10362. esac
  10363. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10364. hardcode_libdir_separator_CXX=:
  10365. # Commands to make compiler produce verbose output that lists
  10366. # what "hidden" libraries, object files and flags are used when
  10367. # linking a shared library.
  10368. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10369. else
  10370. # FIXME: insert proper C++ library support
  10371. ld_shlibs_CXX=no
  10372. fi
  10373. ;;
  10374. esac
  10375. ;;
  10376. psos*)
  10377. # FIXME: insert proper C++ library support
  10378. ld_shlibs_CXX=no
  10379. ;;
  10380. sunos4*)
  10381. case $cc_basename in
  10382. CC*)
  10383. # Sun C++ 4.x
  10384. # FIXME: insert proper C++ library support
  10385. ld_shlibs_CXX=no
  10386. ;;
  10387. lcc*)
  10388. # Lucid
  10389. # FIXME: insert proper C++ library support
  10390. ld_shlibs_CXX=no
  10391. ;;
  10392. *)
  10393. # FIXME: insert proper C++ library support
  10394. ld_shlibs_CXX=no
  10395. ;;
  10396. esac
  10397. ;;
  10398. solaris*)
  10399. case $cc_basename in
  10400. CC*)
  10401. # Sun C++ 4.2, 5.x and Centerline C++
  10402. archive_cmds_need_lc_CXX=yes
  10403. no_undefined_flag_CXX=' -zdefs'
  10404. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10405. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10406. $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'
  10407. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10408. hardcode_shlibpath_var_CXX=no
  10409. case $host_os in
  10410. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10411. *)
  10412. # The compiler driver will combine and reorder linker options,
  10413. # but understands `-z linker_flag'.
  10414. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10415. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10416. ;;
  10417. esac
  10418. link_all_deplibs_CXX=yes
  10419. output_verbose_link_cmd='echo'
  10420. # Archives containing C++ object files must be created using
  10421. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10422. # necessary to make sure instantiated templates are included
  10423. # in the archive.
  10424. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10425. ;;
  10426. gcx*)
  10427. # Green Hills C++ Compiler
  10428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10429. # The C++ compiler must be used to create the archive.
  10430. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10431. ;;
  10432. *)
  10433. # GNU C++ compiler with Solaris linker
  10434. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10435. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10436. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10437. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10438. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10439. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10440. # Commands to make compiler produce verbose output that lists
  10441. # what "hidden" libraries, object files and flags are used when
  10442. # linking a shared library.
  10443. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10444. else
  10445. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10446. # platform.
  10447. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10448. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10449. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10450. # Commands to make compiler produce verbose output that lists
  10451. # what "hidden" libraries, object files and flags are used when
  10452. # linking a shared library.
  10453. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10454. fi
  10455. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10456. case $host_os in
  10457. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10458. *)
  10459. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10460. ;;
  10461. esac
  10462. fi
  10463. ;;
  10464. esac
  10465. ;;
  10466. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10467. no_undefined_flag_CXX='${wl}-z,text'
  10468. archive_cmds_need_lc_CXX=no
  10469. hardcode_shlibpath_var_CXX=no
  10470. runpath_var='LD_RUN_PATH'
  10471. case $cc_basename in
  10472. CC*)
  10473. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10474. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10475. ;;
  10476. *)
  10477. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10478. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10479. ;;
  10480. esac
  10481. ;;
  10482. sysv5* | sco3.2v5* | sco5v6*)
  10483. # Note: We can NOT use -z defs as we might desire, because we do not
  10484. # link with -lc, and that would cause any symbols used from libc to
  10485. # always be unresolved, which means just about no library would
  10486. # ever link correctly. If we're not using GNU ld we use -z text
  10487. # though, which does catch some bad symbols but isn't as heavy-handed
  10488. # as -z defs.
  10489. no_undefined_flag_CXX='${wl}-z,text'
  10490. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10491. archive_cmds_need_lc_CXX=no
  10492. hardcode_shlibpath_var_CXX=no
  10493. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10494. hardcode_libdir_separator_CXX=':'
  10495. link_all_deplibs_CXX=yes
  10496. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10497. runpath_var='LD_RUN_PATH'
  10498. case $cc_basename in
  10499. CC*)
  10500. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10502. ;;
  10503. *)
  10504. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10505. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10506. ;;
  10507. esac
  10508. ;;
  10509. tandem*)
  10510. case $cc_basename in
  10511. NCC*)
  10512. # NonStop-UX NCC 3.20
  10513. # FIXME: insert proper C++ library support
  10514. ld_shlibs_CXX=no
  10515. ;;
  10516. *)
  10517. # FIXME: insert proper C++ library support
  10518. ld_shlibs_CXX=no
  10519. ;;
  10520. esac
  10521. ;;
  10522. vxworks*)
  10523. # FIXME: insert proper C++ library support
  10524. ld_shlibs_CXX=no
  10525. ;;
  10526. *)
  10527. # FIXME: insert proper C++ library support
  10528. ld_shlibs_CXX=no
  10529. ;;
  10530. esac
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10532. $as_echo "$ld_shlibs_CXX" >&6; }
  10533. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10534. GCC_CXX="$GXX"
  10535. LD_CXX="$LD"
  10536. ## CAVEAT EMPTOR:
  10537. ## There is no encapsulation within the following macros, do not change
  10538. ## the running order or otherwise move them around unless you know exactly
  10539. ## what you are doing...
  10540. # Dependencies to place before and after the object being linked:
  10541. predep_objects_CXX=
  10542. postdep_objects_CXX=
  10543. predeps_CXX=
  10544. postdeps_CXX=
  10545. compiler_lib_search_path_CXX=
  10546. cat > conftest.$ac_ext <<_LT_EOF
  10547. class Foo
  10548. {
  10549. public:
  10550. Foo (void) { a = 0; }
  10551. private:
  10552. int a;
  10553. };
  10554. _LT_EOF
  10555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10556. (eval $ac_compile) 2>&5
  10557. ac_status=$?
  10558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10559. test $ac_status = 0; }; then
  10560. # Parse the compiler output and extract the necessary
  10561. # objects, libraries and library flags.
  10562. # Sentinel used to keep track of whether or not we are before
  10563. # the conftest object file.
  10564. pre_test_object_deps_done=no
  10565. for p in `eval "$output_verbose_link_cmd"`; do
  10566. case $p in
  10567. -L* | -R* | -l*)
  10568. # Some compilers place space between "-{L,R}" and the path.
  10569. # Remove the space.
  10570. if test $p = "-L" ||
  10571. test $p = "-R"; then
  10572. prev=$p
  10573. continue
  10574. else
  10575. prev=
  10576. fi
  10577. if test "$pre_test_object_deps_done" = no; then
  10578. case $p in
  10579. -L* | -R*)
  10580. # Internal compiler library paths should come after those
  10581. # provided the user. The postdeps already come after the
  10582. # user supplied libs so there is no need to process them.
  10583. if test -z "$compiler_lib_search_path_CXX"; then
  10584. compiler_lib_search_path_CXX="${prev}${p}"
  10585. else
  10586. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10587. fi
  10588. ;;
  10589. # The "-l" case would never come before the object being
  10590. # linked, so don't bother handling this case.
  10591. esac
  10592. else
  10593. if test -z "$postdeps_CXX"; then
  10594. postdeps_CXX="${prev}${p}"
  10595. else
  10596. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10597. fi
  10598. fi
  10599. ;;
  10600. *.$objext)
  10601. # This assumes that the test object file only shows up
  10602. # once in the compiler output.
  10603. if test "$p" = "conftest.$objext"; then
  10604. pre_test_object_deps_done=yes
  10605. continue
  10606. fi
  10607. if test "$pre_test_object_deps_done" = no; then
  10608. if test -z "$predep_objects_CXX"; then
  10609. predep_objects_CXX="$p"
  10610. else
  10611. predep_objects_CXX="$predep_objects_CXX $p"
  10612. fi
  10613. else
  10614. if test -z "$postdep_objects_CXX"; then
  10615. postdep_objects_CXX="$p"
  10616. else
  10617. postdep_objects_CXX="$postdep_objects_CXX $p"
  10618. fi
  10619. fi
  10620. ;;
  10621. *) ;; # Ignore the rest.
  10622. esac
  10623. done
  10624. # Clean up.
  10625. rm -f a.out a.exe
  10626. else
  10627. echo "libtool.m4: error: problem compiling CXX test program"
  10628. fi
  10629. $RM -f confest.$objext
  10630. # PORTME: override above test on systems where it is broken
  10631. case $host_os in
  10632. interix[3-9]*)
  10633. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10634. # hack all around it, let's just trust "g++" to DTRT.
  10635. predep_objects_CXX=
  10636. postdep_objects_CXX=
  10637. postdeps_CXX=
  10638. ;;
  10639. linux*)
  10640. case `$CC -V 2>&1 | sed 5q` in
  10641. *Sun\ C*)
  10642. # Sun C++ 5.9
  10643. # The more standards-conforming stlport4 library is
  10644. # incompatible with the Cstd library. Avoid specifying
  10645. # it if it's in CXXFLAGS. Ignore libCrun as
  10646. # -library=stlport4 depends on it.
  10647. case " $CXX $CXXFLAGS " in
  10648. *" -library=stlport4 "*)
  10649. solaris_use_stlport4=yes
  10650. ;;
  10651. esac
  10652. if test "$solaris_use_stlport4" != yes; then
  10653. postdeps_CXX='-library=Cstd -library=Crun'
  10654. fi
  10655. ;;
  10656. esac
  10657. ;;
  10658. solaris*)
  10659. case $cc_basename in
  10660. CC*)
  10661. # The more standards-conforming stlport4 library is
  10662. # incompatible with the Cstd library. Avoid specifying
  10663. # it if it's in CXXFLAGS. Ignore libCrun as
  10664. # -library=stlport4 depends on it.
  10665. case " $CXX $CXXFLAGS " in
  10666. *" -library=stlport4 "*)
  10667. solaris_use_stlport4=yes
  10668. ;;
  10669. esac
  10670. # Adding this requires a known-good setup of shared libraries for
  10671. # Sun compiler versions before 5.6, else PIC objects from an old
  10672. # archive will be linked into the output, leading to subtle bugs.
  10673. if test "$solaris_use_stlport4" != yes; then
  10674. postdeps_CXX='-library=Cstd -library=Crun'
  10675. fi
  10676. ;;
  10677. esac
  10678. ;;
  10679. esac
  10680. case " $postdeps_CXX " in
  10681. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10682. esac
  10683. compiler_lib_search_dirs_CXX=
  10684. if test -n "${compiler_lib_search_path_CXX}"; then
  10685. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10686. fi
  10687. lt_prog_compiler_wl_CXX=
  10688. lt_prog_compiler_pic_CXX=
  10689. lt_prog_compiler_static_CXX=
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10691. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10692. # C++ specific cases for pic, static, wl, etc.
  10693. if test "$GXX" = yes; then
  10694. lt_prog_compiler_wl_CXX='-Wl,'
  10695. lt_prog_compiler_static_CXX='-static'
  10696. case $host_os in
  10697. aix*)
  10698. # All AIX code is PIC.
  10699. if test "$host_cpu" = ia64; then
  10700. # AIX 5 now supports IA64 processor
  10701. lt_prog_compiler_static_CXX='-Bstatic'
  10702. fi
  10703. ;;
  10704. amigaos*)
  10705. case $host_cpu in
  10706. powerpc)
  10707. # see comment about AmigaOS4 .so support
  10708. lt_prog_compiler_pic_CXX='-fPIC'
  10709. ;;
  10710. m68k)
  10711. # FIXME: we need at least 68020 code to build shared libraries, but
  10712. # adding the `-m68020' flag to GCC prevents building anything better,
  10713. # like `-m68040'.
  10714. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10715. ;;
  10716. esac
  10717. ;;
  10718. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10719. # PIC is the default for these OSes.
  10720. ;;
  10721. mingw* | cygwin* | os2* | pw32* | cegcc*)
  10722. # This hack is so that the source file can tell whether it is being
  10723. # built for inclusion in a dll (and should export symbols for example).
  10724. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10725. # (--disable-auto-import) libraries
  10726. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10727. ;;
  10728. darwin* | rhapsody*)
  10729. # PIC is the default on this platform
  10730. # Common symbols not allowed in MH_DYLIB files
  10731. lt_prog_compiler_pic_CXX='-fno-common'
  10732. ;;
  10733. *djgpp*)
  10734. # DJGPP does not support shared libraries at all
  10735. lt_prog_compiler_pic_CXX=
  10736. ;;
  10737. interix[3-9]*)
  10738. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10739. # Instead, we relocate shared libraries at runtime.
  10740. ;;
  10741. sysv4*MP*)
  10742. if test -d /usr/nec; then
  10743. lt_prog_compiler_pic_CXX=-Kconform_pic
  10744. fi
  10745. ;;
  10746. hpux*)
  10747. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10748. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10749. # sets the default TLS model and affects inlining.
  10750. case $host_cpu in
  10751. hppa*64*)
  10752. ;;
  10753. *)
  10754. lt_prog_compiler_pic_CXX='-fPIC'
  10755. ;;
  10756. esac
  10757. ;;
  10758. *qnx* | *nto*)
  10759. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10760. # it will coredump.
  10761. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10762. ;;
  10763. *)
  10764. lt_prog_compiler_pic_CXX='-fPIC'
  10765. ;;
  10766. esac
  10767. else
  10768. case $host_os in
  10769. aix[4-9]*)
  10770. # All AIX code is PIC.
  10771. if test "$host_cpu" = ia64; then
  10772. # AIX 5 now supports IA64 processor
  10773. lt_prog_compiler_static_CXX='-Bstatic'
  10774. else
  10775. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10776. fi
  10777. ;;
  10778. chorus*)
  10779. case $cc_basename in
  10780. cxch68*)
  10781. # Green Hills C++ Compiler
  10782. # _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"
  10783. ;;
  10784. esac
  10785. ;;
  10786. dgux*)
  10787. case $cc_basename in
  10788. ec++*)
  10789. lt_prog_compiler_pic_CXX='-KPIC'
  10790. ;;
  10791. ghcx*)
  10792. # Green Hills C++ Compiler
  10793. lt_prog_compiler_pic_CXX='-pic'
  10794. ;;
  10795. *)
  10796. ;;
  10797. esac
  10798. ;;
  10799. freebsd* | dragonfly*)
  10800. # FreeBSD uses GNU C++
  10801. ;;
  10802. hpux9* | hpux10* | hpux11*)
  10803. case $cc_basename in
  10804. CC*)
  10805. lt_prog_compiler_wl_CXX='-Wl,'
  10806. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10807. if test "$host_cpu" != ia64; then
  10808. lt_prog_compiler_pic_CXX='+Z'
  10809. fi
  10810. ;;
  10811. aCC*)
  10812. lt_prog_compiler_wl_CXX='-Wl,'
  10813. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10814. case $host_cpu in
  10815. hppa*64*|ia64*)
  10816. # +Z the default
  10817. ;;
  10818. *)
  10819. lt_prog_compiler_pic_CXX='+Z'
  10820. ;;
  10821. esac
  10822. ;;
  10823. *)
  10824. ;;
  10825. esac
  10826. ;;
  10827. interix*)
  10828. # This is c89, which is MS Visual C++ (no shared libs)
  10829. # Anyone wants to do a port?
  10830. ;;
  10831. irix5* | irix6* | nonstopux*)
  10832. case $cc_basename in
  10833. CC*)
  10834. lt_prog_compiler_wl_CXX='-Wl,'
  10835. lt_prog_compiler_static_CXX='-non_shared'
  10836. # CC pic flag -KPIC is the default.
  10837. ;;
  10838. *)
  10839. ;;
  10840. esac
  10841. ;;
  10842. linux* | k*bsd*-gnu)
  10843. case $cc_basename in
  10844. KCC*)
  10845. # KAI C++ Compiler
  10846. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10847. lt_prog_compiler_pic_CXX='-fPIC'
  10848. ;;
  10849. ecpc* )
  10850. # old Intel C++ for x86_64 which still supported -KPIC.
  10851. lt_prog_compiler_wl_CXX='-Wl,'
  10852. lt_prog_compiler_pic_CXX='-KPIC'
  10853. lt_prog_compiler_static_CXX='-static'
  10854. ;;
  10855. icpc* )
  10856. # Intel C++, used to be incompatible with GCC.
  10857. # ICC 10 doesn't accept -KPIC any more.
  10858. lt_prog_compiler_wl_CXX='-Wl,'
  10859. lt_prog_compiler_pic_CXX='-fPIC'
  10860. lt_prog_compiler_static_CXX='-static'
  10861. ;;
  10862. pgCC* | pgcpp*)
  10863. # Portland Group C++ compiler
  10864. lt_prog_compiler_wl_CXX='-Wl,'
  10865. lt_prog_compiler_pic_CXX='-fpic'
  10866. lt_prog_compiler_static_CXX='-Bstatic'
  10867. ;;
  10868. cxx*)
  10869. # Compaq C++
  10870. # Make sure the PIC flag is empty. It appears that all Alpha
  10871. # Linux and Compaq Tru64 Unix objects are PIC.
  10872. lt_prog_compiler_pic_CXX=
  10873. lt_prog_compiler_static_CXX='-non_shared'
  10874. ;;
  10875. xlc* | xlC*)
  10876. # IBM XL 8.0 on PPC
  10877. lt_prog_compiler_wl_CXX='-Wl,'
  10878. lt_prog_compiler_pic_CXX='-qpic'
  10879. lt_prog_compiler_static_CXX='-qstaticlink'
  10880. ;;
  10881. *)
  10882. case `$CC -V 2>&1 | sed 5q` in
  10883. *Sun\ C*)
  10884. # Sun C++ 5.9
  10885. lt_prog_compiler_pic_CXX='-KPIC'
  10886. lt_prog_compiler_static_CXX='-Bstatic'
  10887. lt_prog_compiler_wl_CXX='-Qoption ld '
  10888. ;;
  10889. esac
  10890. ;;
  10891. esac
  10892. ;;
  10893. lynxos*)
  10894. ;;
  10895. m88k*)
  10896. ;;
  10897. mvs*)
  10898. case $cc_basename in
  10899. cxx*)
  10900. lt_prog_compiler_pic_CXX='-W c,exportall'
  10901. ;;
  10902. *)
  10903. ;;
  10904. esac
  10905. ;;
  10906. netbsd* | netbsdelf*-gnu)
  10907. ;;
  10908. *qnx* | *nto*)
  10909. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10910. # it will coredump.
  10911. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10912. ;;
  10913. osf3* | osf4* | osf5*)
  10914. case $cc_basename in
  10915. KCC*)
  10916. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10917. ;;
  10918. RCC*)
  10919. # Rational C++ 2.4.1
  10920. lt_prog_compiler_pic_CXX='-pic'
  10921. ;;
  10922. cxx*)
  10923. # Digital/Compaq C++
  10924. lt_prog_compiler_wl_CXX='-Wl,'
  10925. # Make sure the PIC flag is empty. It appears that all Alpha
  10926. # Linux and Compaq Tru64 Unix objects are PIC.
  10927. lt_prog_compiler_pic_CXX=
  10928. lt_prog_compiler_static_CXX='-non_shared'
  10929. ;;
  10930. *)
  10931. ;;
  10932. esac
  10933. ;;
  10934. psos*)
  10935. ;;
  10936. solaris*)
  10937. case $cc_basename in
  10938. CC*)
  10939. # Sun C++ 4.2, 5.x and Centerline C++
  10940. lt_prog_compiler_pic_CXX='-KPIC'
  10941. lt_prog_compiler_static_CXX='-Bstatic'
  10942. lt_prog_compiler_wl_CXX='-Qoption ld '
  10943. ;;
  10944. gcx*)
  10945. # Green Hills C++ Compiler
  10946. lt_prog_compiler_pic_CXX='-PIC'
  10947. ;;
  10948. *)
  10949. ;;
  10950. esac
  10951. ;;
  10952. sunos4*)
  10953. case $cc_basename in
  10954. CC*)
  10955. # Sun C++ 4.x
  10956. lt_prog_compiler_pic_CXX='-pic'
  10957. lt_prog_compiler_static_CXX='-Bstatic'
  10958. ;;
  10959. lcc*)
  10960. # Lucid
  10961. lt_prog_compiler_pic_CXX='-pic'
  10962. ;;
  10963. *)
  10964. ;;
  10965. esac
  10966. ;;
  10967. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10968. case $cc_basename in
  10969. CC*)
  10970. lt_prog_compiler_wl_CXX='-Wl,'
  10971. lt_prog_compiler_pic_CXX='-KPIC'
  10972. lt_prog_compiler_static_CXX='-Bstatic'
  10973. ;;
  10974. esac
  10975. ;;
  10976. tandem*)
  10977. case $cc_basename in
  10978. NCC*)
  10979. # NonStop-UX NCC 3.20
  10980. lt_prog_compiler_pic_CXX='-KPIC'
  10981. ;;
  10982. *)
  10983. ;;
  10984. esac
  10985. ;;
  10986. vxworks*)
  10987. ;;
  10988. *)
  10989. lt_prog_compiler_can_build_shared_CXX=no
  10990. ;;
  10991. esac
  10992. fi
  10993. case $host_os in
  10994. # For platforms which do not support PIC, -DPIC is meaningless:
  10995. *djgpp*)
  10996. lt_prog_compiler_pic_CXX=
  10997. ;;
  10998. *)
  10999. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11000. ;;
  11001. esac
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11003. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11004. #
  11005. # Check to make sure the PIC flag actually works.
  11006. #
  11007. if test -n "$lt_prog_compiler_pic_CXX"; then
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11009. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11010. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11011. $as_echo_n "(cached) " >&6
  11012. else
  11013. lt_cv_prog_compiler_pic_works_CXX=no
  11014. ac_outfile=conftest.$ac_objext
  11015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11016. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11017. # Insert the option either (1) after the last *FLAGS variable, or
  11018. # (2) before a word containing "conftest.", or (3) at the end.
  11019. # Note that $ac_compile itself does not contain backslashes and begins
  11020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11021. # The option is referenced via a variable to avoid confusing sed.
  11022. lt_compile=`echo "$ac_compile" | $SED \
  11023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11025. -e 's:$: $lt_compiler_flag:'`
  11026. (eval echo "\"\$as_me:12752: $lt_compile\"" >&5)
  11027. (eval "$lt_compile" 2>conftest.err)
  11028. ac_status=$?
  11029. cat conftest.err >&5
  11030. echo "$as_me:12756: \$? = $ac_status" >&5
  11031. if (exit $ac_status) && test -s "$ac_outfile"; then
  11032. # The compiler can only warn and ignore the option if not recognized
  11033. # So say no if there are warnings other than the usual output.
  11034. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11037. lt_cv_prog_compiler_pic_works_CXX=yes
  11038. fi
  11039. fi
  11040. $RM conftest*
  11041. fi
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11043. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11044. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11045. case $lt_prog_compiler_pic_CXX in
  11046. "" | " "*) ;;
  11047. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11048. esac
  11049. else
  11050. lt_prog_compiler_pic_CXX=
  11051. lt_prog_compiler_can_build_shared_CXX=no
  11052. fi
  11053. fi
  11054. #
  11055. # Check to make sure the static flag actually works.
  11056. #
  11057. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11059. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11060. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. lt_cv_prog_compiler_static_works_CXX=no
  11064. save_LDFLAGS="$LDFLAGS"
  11065. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11066. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11067. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11068. # The linker can only warn and ignore the option if not recognized
  11069. # So say no if there are warnings
  11070. if test -s conftest.err; then
  11071. # Append any errors to the config.log.
  11072. cat conftest.err 1>&5
  11073. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11074. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11075. if diff conftest.exp conftest.er2 >/dev/null; then
  11076. lt_cv_prog_compiler_static_works_CXX=yes
  11077. fi
  11078. else
  11079. lt_cv_prog_compiler_static_works_CXX=yes
  11080. fi
  11081. fi
  11082. $RM -r conftest*
  11083. LDFLAGS="$save_LDFLAGS"
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11086. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11087. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11088. :
  11089. else
  11090. lt_prog_compiler_static_CXX=
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11093. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11094. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. lt_cv_prog_compiler_c_o_CXX=no
  11098. $RM -r conftest 2>/dev/null
  11099. mkdir conftest
  11100. cd conftest
  11101. mkdir out
  11102. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11103. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11104. # Insert the option either (1) after the last *FLAGS variable, or
  11105. # (2) before a word containing "conftest.", or (3) at the end.
  11106. # Note that $ac_compile itself does not contain backslashes and begins
  11107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11108. lt_compile=`echo "$ac_compile" | $SED \
  11109. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11110. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11111. -e 's:$: $lt_compiler_flag:'`
  11112. (eval echo "\"\$as_me:12851: $lt_compile\"" >&5)
  11113. (eval "$lt_compile" 2>out/conftest.err)
  11114. ac_status=$?
  11115. cat out/conftest.err >&5
  11116. echo "$as_me:12855: \$? = $ac_status" >&5
  11117. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11118. then
  11119. # The compiler can only warn and ignore the option if not recognized
  11120. # So say no if there are warnings
  11121. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11122. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11123. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11124. lt_cv_prog_compiler_c_o_CXX=yes
  11125. fi
  11126. fi
  11127. chmod u+w . 2>&5
  11128. $RM conftest*
  11129. # SGI C++ compiler will create directory out/ii_files/ for
  11130. # template instantiation
  11131. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11132. $RM out/* && rmdir out
  11133. cd ..
  11134. $RM -r conftest
  11135. $RM conftest*
  11136. fi
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11138. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11140. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11141. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11142. $as_echo_n "(cached) " >&6
  11143. else
  11144. lt_cv_prog_compiler_c_o_CXX=no
  11145. $RM -r conftest 2>/dev/null
  11146. mkdir conftest
  11147. cd conftest
  11148. mkdir out
  11149. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11150. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11151. # Insert the option either (1) after the last *FLAGS variable, or
  11152. # (2) before a word containing "conftest.", or (3) at the end.
  11153. # Note that $ac_compile itself does not contain backslashes and begins
  11154. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11155. lt_compile=`echo "$ac_compile" | $SED \
  11156. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11157. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11158. -e 's:$: $lt_compiler_flag:'`
  11159. (eval echo "\"\$as_me:12903: $lt_compile\"" >&5)
  11160. (eval "$lt_compile" 2>out/conftest.err)
  11161. ac_status=$?
  11162. cat out/conftest.err >&5
  11163. echo "$as_me:12907: \$? = $ac_status" >&5
  11164. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11165. then
  11166. # The compiler can only warn and ignore the option if not recognized
  11167. # So say no if there are warnings
  11168. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11169. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11170. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11171. lt_cv_prog_compiler_c_o_CXX=yes
  11172. fi
  11173. fi
  11174. chmod u+w . 2>&5
  11175. $RM conftest*
  11176. # SGI C++ compiler will create directory out/ii_files/ for
  11177. # template instantiation
  11178. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11179. $RM out/* && rmdir out
  11180. cd ..
  11181. $RM -r conftest
  11182. $RM conftest*
  11183. fi
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11185. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11186. hard_links="nottested"
  11187. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11188. # do not overwrite the value of need_locks provided by the user
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11190. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11191. hard_links=yes
  11192. $RM conftest*
  11193. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11194. touch conftest.a
  11195. ln conftest.a conftest.b 2>&5 || hard_links=no
  11196. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11198. $as_echo "$hard_links" >&6; }
  11199. if test "$hard_links" = no; then
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11201. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11202. need_locks=warn
  11203. fi
  11204. else
  11205. need_locks=no
  11206. fi
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11208. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11209. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11210. case $host_os in
  11211. aix[4-9]*)
  11212. # If we're using GNU nm, then we don't want the "-C" option.
  11213. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11214. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11215. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11216. else
  11217. 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'
  11218. fi
  11219. ;;
  11220. pw32*)
  11221. export_symbols_cmds_CXX="$ltdll_cmds"
  11222. ;;
  11223. cygwin* | mingw* | cegcc*)
  11224. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11225. ;;
  11226. linux* | k*bsd*-gnu)
  11227. link_all_deplibs_CXX=no
  11228. ;;
  11229. *)
  11230. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11231. ;;
  11232. esac
  11233. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11235. $as_echo "$ld_shlibs_CXX" >&6; }
  11236. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11237. with_gnu_ld_CXX=$with_gnu_ld
  11238. #
  11239. # Do we need to explicitly link libc?
  11240. #
  11241. case "x$archive_cmds_need_lc_CXX" in
  11242. x|xyes)
  11243. # Assume -lc should be added
  11244. archive_cmds_need_lc_CXX=yes
  11245. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11246. case $archive_cmds_CXX in
  11247. *'~'*)
  11248. # FIXME: we may have to deal with multi-command sequences.
  11249. ;;
  11250. '$CC '*)
  11251. # Test whether the compiler implicitly links with -lc since on some
  11252. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11253. # to ld, don't add -lc before -lgcc.
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11255. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11256. $RM conftest*
  11257. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11258. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11259. (eval $ac_compile) 2>&5
  11260. ac_status=$?
  11261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11262. test $ac_status = 0; } 2>conftest.err; then
  11263. soname=conftest
  11264. lib=conftest
  11265. libobjs=conftest.$ac_objext
  11266. deplibs=
  11267. wl=$lt_prog_compiler_wl_CXX
  11268. pic_flag=$lt_prog_compiler_pic_CXX
  11269. compiler_flags=-v
  11270. linker_flags=-v
  11271. verstring=
  11272. output_objdir=.
  11273. libname=conftest
  11274. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11275. allow_undefined_flag_CXX=
  11276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11277. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11278. ac_status=$?
  11279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11280. test $ac_status = 0; }
  11281. then
  11282. archive_cmds_need_lc_CXX=no
  11283. else
  11284. archive_cmds_need_lc_CXX=yes
  11285. fi
  11286. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11287. else
  11288. cat conftest.err 1>&5
  11289. fi
  11290. $RM conftest*
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11292. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11293. ;;
  11294. esac
  11295. fi
  11296. ;;
  11297. esac
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11299. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11300. library_names_spec=
  11301. libname_spec='lib$name'
  11302. soname_spec=
  11303. shrext_cmds=".so"
  11304. postinstall_cmds=
  11305. postuninstall_cmds=
  11306. finish_cmds=
  11307. finish_eval=
  11308. shlibpath_var=
  11309. shlibpath_overrides_runpath=unknown
  11310. version_type=none
  11311. dynamic_linker="$host_os ld.so"
  11312. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11313. need_lib_prefix=unknown
  11314. hardcode_into_libs=no
  11315. # when you set need_version to no, make sure it does not cause -set_version
  11316. # flags to be left without arguments
  11317. need_version=unknown
  11318. case $host_os in
  11319. aix3*)
  11320. version_type=linux
  11321. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11322. shlibpath_var=LIBPATH
  11323. # AIX 3 has no versioning support, so we append a major version to the name.
  11324. soname_spec='${libname}${release}${shared_ext}$major'
  11325. ;;
  11326. aix[4-9]*)
  11327. version_type=linux
  11328. need_lib_prefix=no
  11329. need_version=no
  11330. hardcode_into_libs=yes
  11331. if test "$host_cpu" = ia64; then
  11332. # AIX 5 supports IA64
  11333. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11334. shlibpath_var=LD_LIBRARY_PATH
  11335. else
  11336. # With GCC up to 2.95.x, collect2 would create an import file
  11337. # for dependence libraries. The import file would start with
  11338. # the line `#! .'. This would cause the generated library to
  11339. # depend on `.', always an invalid library. This was fixed in
  11340. # development snapshots of GCC prior to 3.0.
  11341. case $host_os in
  11342. aix4 | aix4.[01] | aix4.[01].*)
  11343. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11344. echo ' yes '
  11345. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11346. :
  11347. else
  11348. can_build_shared=no
  11349. fi
  11350. ;;
  11351. esac
  11352. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11353. # soname into executable. Probably we can add versioning support to
  11354. # collect2, so additional links can be useful in future.
  11355. if test "$aix_use_runtimelinking" = yes; then
  11356. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11357. # instead of lib<name>.a to let people know that these are not
  11358. # typical AIX shared libraries.
  11359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11360. else
  11361. # We preserve .a as extension for shared libraries through AIX4.2
  11362. # and later when we are not doing run time linking.
  11363. library_names_spec='${libname}${release}.a $libname.a'
  11364. soname_spec='${libname}${release}${shared_ext}$major'
  11365. fi
  11366. shlibpath_var=LIBPATH
  11367. fi
  11368. ;;
  11369. amigaos*)
  11370. case $host_cpu in
  11371. powerpc)
  11372. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11373. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11375. ;;
  11376. m68k)
  11377. library_names_spec='$libname.ixlibrary $libname.a'
  11378. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11379. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11380. ;;
  11381. esac
  11382. ;;
  11383. beos*)
  11384. library_names_spec='${libname}${shared_ext}'
  11385. dynamic_linker="$host_os ld.so"
  11386. shlibpath_var=LIBRARY_PATH
  11387. ;;
  11388. bsdi[45]*)
  11389. version_type=linux
  11390. need_version=no
  11391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11392. soname_spec='${libname}${release}${shared_ext}$major'
  11393. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11394. shlibpath_var=LD_LIBRARY_PATH
  11395. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11396. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11397. # the default ld.so.conf also contains /usr/contrib/lib and
  11398. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11399. # libtool to hard-code these into programs
  11400. ;;
  11401. cygwin* | mingw* | pw32* | cegcc*)
  11402. version_type=windows
  11403. shrext_cmds=".dll"
  11404. need_version=no
  11405. need_lib_prefix=no
  11406. case $GCC,$host_os in
  11407. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11408. library_names_spec='$libname.dll.a'
  11409. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11410. postinstall_cmds='base_file=`basename \${file}`~
  11411. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11412. dldir=$destdir/`dirname \$dlpath`~
  11413. test -d \$dldir || mkdir -p \$dldir~
  11414. $install_prog $dir/$dlname \$dldir/$dlname~
  11415. chmod a+x \$dldir/$dlname~
  11416. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11417. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11418. fi'
  11419. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11420. dlpath=$dir/\$dldll~
  11421. $RM \$dlpath'
  11422. shlibpath_overrides_runpath=yes
  11423. case $host_os in
  11424. cygwin*)
  11425. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11426. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11427. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11428. ;;
  11429. mingw* | cegcc*)
  11430. # MinGW DLLs use traditional 'lib' prefix
  11431. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11432. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11433. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11434. # It is most probably a Windows format PATH printed by
  11435. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11436. # path with ; separators, and with drive letters. We can handle the
  11437. # drive letters (cygwin fileutils understands them), so leave them,
  11438. # especially as we might pass files found there to a mingw objdump,
  11439. # which wouldn't understand a cygwinified path. Ahh.
  11440. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11441. else
  11442. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11443. fi
  11444. ;;
  11445. pw32*)
  11446. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11447. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11448. ;;
  11449. esac
  11450. ;;
  11451. *)
  11452. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11453. ;;
  11454. esac
  11455. dynamic_linker='Win32 ld.exe'
  11456. # FIXME: first we should search . and the directory the executable is in
  11457. shlibpath_var=PATH
  11458. ;;
  11459. darwin* | rhapsody*)
  11460. dynamic_linker="$host_os dyld"
  11461. version_type=darwin
  11462. need_lib_prefix=no
  11463. need_version=no
  11464. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11465. soname_spec='${libname}${release}${major}$shared_ext'
  11466. shlibpath_overrides_runpath=yes
  11467. shlibpath_var=DYLD_LIBRARY_PATH
  11468. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11469. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11470. ;;
  11471. dgux*)
  11472. version_type=linux
  11473. need_lib_prefix=no
  11474. need_version=no
  11475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11476. soname_spec='${libname}${release}${shared_ext}$major'
  11477. shlibpath_var=LD_LIBRARY_PATH
  11478. ;;
  11479. freebsd1*)
  11480. dynamic_linker=no
  11481. ;;
  11482. freebsd* | dragonfly*)
  11483. # DragonFly does not have aout. When/if they implement a new
  11484. # versioning mechanism, adjust this.
  11485. if test -x /usr/bin/objformat; then
  11486. objformat=`/usr/bin/objformat`
  11487. else
  11488. case $host_os in
  11489. freebsd[123]*) objformat=aout ;;
  11490. *) objformat=elf ;;
  11491. esac
  11492. fi
  11493. version_type=freebsd-$objformat
  11494. case $version_type in
  11495. freebsd-elf*)
  11496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11497. need_version=no
  11498. need_lib_prefix=no
  11499. ;;
  11500. freebsd-*)
  11501. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11502. need_version=yes
  11503. ;;
  11504. esac
  11505. shlibpath_var=LD_LIBRARY_PATH
  11506. case $host_os in
  11507. freebsd2*)
  11508. shlibpath_overrides_runpath=yes
  11509. ;;
  11510. freebsd3.[01]* | freebsdelf3.[01]*)
  11511. shlibpath_overrides_runpath=yes
  11512. hardcode_into_libs=yes
  11513. ;;
  11514. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11515. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11516. shlibpath_overrides_runpath=no
  11517. hardcode_into_libs=yes
  11518. ;;
  11519. *) # from 4.6 on, and DragonFly
  11520. shlibpath_overrides_runpath=yes
  11521. hardcode_into_libs=yes
  11522. ;;
  11523. esac
  11524. ;;
  11525. gnu*)
  11526. version_type=linux
  11527. need_lib_prefix=no
  11528. need_version=no
  11529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11530. soname_spec='${libname}${release}${shared_ext}$major'
  11531. shlibpath_var=LD_LIBRARY_PATH
  11532. hardcode_into_libs=yes
  11533. ;;
  11534. hpux9* | hpux10* | hpux11*)
  11535. # Give a soname corresponding to the major version so that dld.sl refuses to
  11536. # link against other versions.
  11537. version_type=sunos
  11538. need_lib_prefix=no
  11539. need_version=no
  11540. case $host_cpu in
  11541. ia64*)
  11542. shrext_cmds='.so'
  11543. hardcode_into_libs=yes
  11544. dynamic_linker="$host_os dld.so"
  11545. shlibpath_var=LD_LIBRARY_PATH
  11546. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11548. soname_spec='${libname}${release}${shared_ext}$major'
  11549. if test "X$HPUX_IA64_MODE" = X32; then
  11550. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11551. else
  11552. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11553. fi
  11554. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11555. ;;
  11556. hppa*64*)
  11557. shrext_cmds='.sl'
  11558. hardcode_into_libs=yes
  11559. dynamic_linker="$host_os dld.sl"
  11560. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11561. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11563. soname_spec='${libname}${release}${shared_ext}$major'
  11564. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11565. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11566. ;;
  11567. *)
  11568. shrext_cmds='.sl'
  11569. dynamic_linker="$host_os dld.sl"
  11570. shlibpath_var=SHLIB_PATH
  11571. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11573. soname_spec='${libname}${release}${shared_ext}$major'
  11574. ;;
  11575. esac
  11576. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11577. postinstall_cmds='chmod 555 $lib'
  11578. ;;
  11579. interix[3-9]*)
  11580. version_type=linux
  11581. need_lib_prefix=no
  11582. need_version=no
  11583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11584. soname_spec='${libname}${release}${shared_ext}$major'
  11585. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11586. shlibpath_var=LD_LIBRARY_PATH
  11587. shlibpath_overrides_runpath=no
  11588. hardcode_into_libs=yes
  11589. ;;
  11590. irix5* | irix6* | nonstopux*)
  11591. case $host_os in
  11592. nonstopux*) version_type=nonstopux ;;
  11593. *)
  11594. if test "$lt_cv_prog_gnu_ld" = yes; then
  11595. version_type=linux
  11596. else
  11597. version_type=irix
  11598. fi ;;
  11599. esac
  11600. need_lib_prefix=no
  11601. need_version=no
  11602. soname_spec='${libname}${release}${shared_ext}$major'
  11603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11604. case $host_os in
  11605. irix5* | nonstopux*)
  11606. libsuff= shlibsuff=
  11607. ;;
  11608. *)
  11609. case $LD in # libtool.m4 will add one of these switches to LD
  11610. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11611. libsuff= shlibsuff= libmagic=32-bit;;
  11612. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11613. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11614. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11615. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11616. *) libsuff= shlibsuff= libmagic=never-match;;
  11617. esac
  11618. ;;
  11619. esac
  11620. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11621. shlibpath_overrides_runpath=no
  11622. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11623. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11624. hardcode_into_libs=yes
  11625. ;;
  11626. # No shared lib support for Linux oldld, aout, or coff.
  11627. linux*oldld* | linux*aout* | linux*coff*)
  11628. dynamic_linker=no
  11629. ;;
  11630. # This must be Linux ELF.
  11631. linux* | k*bsd*-gnu)
  11632. version_type=linux
  11633. need_lib_prefix=no
  11634. need_version=no
  11635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11636. soname_spec='${libname}${release}${shared_ext}$major'
  11637. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11638. shlibpath_var=LD_LIBRARY_PATH
  11639. shlibpath_overrides_runpath=no
  11640. # Some binutils ld are patched to set DT_RUNPATH
  11641. save_LDFLAGS=$LDFLAGS
  11642. save_libdir=$libdir
  11643. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11644. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11646. /* end confdefs.h. */
  11647. int
  11648. main ()
  11649. {
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_cxx_try_link "$LINENO"; then :
  11655. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11656. shlibpath_overrides_runpath=yes
  11657. fi
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. LDFLAGS=$save_LDFLAGS
  11662. libdir=$save_libdir
  11663. # This implies no fast_install, which is unacceptable.
  11664. # Some rework will be needed to allow for fast_install
  11665. # before this can be enabled.
  11666. hardcode_into_libs=yes
  11667. # Append ld.so.conf contents to the search path
  11668. if test -f /etc/ld.so.conf; then
  11669. 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;/^$/d' | tr '\n' ' '`
  11670. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11671. fi
  11672. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11673. # powerpc, because MkLinux only supported shared libraries with the
  11674. # GNU dynamic linker. Since this was broken with cross compilers,
  11675. # most powerpc-linux boxes support dynamic linking these days and
  11676. # people can always --disable-shared, the test was removed, and we
  11677. # assume the GNU/Linux dynamic linker is in use.
  11678. dynamic_linker='GNU/Linux ld.so'
  11679. ;;
  11680. netbsdelf*-gnu)
  11681. version_type=linux
  11682. need_lib_prefix=no
  11683. need_version=no
  11684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11685. soname_spec='${libname}${release}${shared_ext}$major'
  11686. shlibpath_var=LD_LIBRARY_PATH
  11687. shlibpath_overrides_runpath=no
  11688. hardcode_into_libs=yes
  11689. dynamic_linker='NetBSD ld.elf_so'
  11690. ;;
  11691. netbsd*)
  11692. version_type=sunos
  11693. need_lib_prefix=no
  11694. need_version=no
  11695. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11697. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11698. dynamic_linker='NetBSD (a.out) ld.so'
  11699. else
  11700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11701. soname_spec='${libname}${release}${shared_ext}$major'
  11702. dynamic_linker='NetBSD ld.elf_so'
  11703. fi
  11704. shlibpath_var=LD_LIBRARY_PATH
  11705. shlibpath_overrides_runpath=yes
  11706. hardcode_into_libs=yes
  11707. ;;
  11708. newsos6)
  11709. version_type=linux
  11710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11711. shlibpath_var=LD_LIBRARY_PATH
  11712. shlibpath_overrides_runpath=yes
  11713. ;;
  11714. *nto* | *qnx*)
  11715. version_type=qnx
  11716. need_lib_prefix=no
  11717. need_version=no
  11718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11719. soname_spec='${libname}${release}${shared_ext}$major'
  11720. shlibpath_var=LD_LIBRARY_PATH
  11721. shlibpath_overrides_runpath=no
  11722. hardcode_into_libs=yes
  11723. dynamic_linker='ldqnx.so'
  11724. ;;
  11725. openbsd*)
  11726. version_type=sunos
  11727. sys_lib_dlsearch_path_spec="/usr/lib"
  11728. need_lib_prefix=no
  11729. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11730. case $host_os in
  11731. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11732. *) need_version=no ;;
  11733. esac
  11734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11735. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11736. shlibpath_var=LD_LIBRARY_PATH
  11737. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11738. case $host_os in
  11739. openbsd2.[89] | openbsd2.[89].*)
  11740. shlibpath_overrides_runpath=no
  11741. ;;
  11742. *)
  11743. shlibpath_overrides_runpath=yes
  11744. ;;
  11745. esac
  11746. else
  11747. shlibpath_overrides_runpath=yes
  11748. fi
  11749. ;;
  11750. os2*)
  11751. libname_spec='$name'
  11752. shrext_cmds=".dll"
  11753. need_lib_prefix=no
  11754. library_names_spec='$libname${shared_ext} $libname.a'
  11755. dynamic_linker='OS/2 ld.exe'
  11756. shlibpath_var=LIBPATH
  11757. ;;
  11758. osf3* | osf4* | osf5*)
  11759. version_type=osf
  11760. need_lib_prefix=no
  11761. need_version=no
  11762. soname_spec='${libname}${release}${shared_ext}$major'
  11763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11764. shlibpath_var=LD_LIBRARY_PATH
  11765. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11766. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11767. ;;
  11768. rdos*)
  11769. dynamic_linker=no
  11770. ;;
  11771. solaris*)
  11772. version_type=linux
  11773. need_lib_prefix=no
  11774. need_version=no
  11775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11776. soname_spec='${libname}${release}${shared_ext}$major'
  11777. shlibpath_var=LD_LIBRARY_PATH
  11778. shlibpath_overrides_runpath=yes
  11779. hardcode_into_libs=yes
  11780. # ldd complains unless libraries are executable
  11781. postinstall_cmds='chmod +x $lib'
  11782. ;;
  11783. sunos4*)
  11784. version_type=sunos
  11785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11786. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11787. shlibpath_var=LD_LIBRARY_PATH
  11788. shlibpath_overrides_runpath=yes
  11789. if test "$with_gnu_ld" = yes; then
  11790. need_lib_prefix=no
  11791. fi
  11792. need_version=yes
  11793. ;;
  11794. sysv4 | sysv4.3*)
  11795. version_type=linux
  11796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11797. soname_spec='${libname}${release}${shared_ext}$major'
  11798. shlibpath_var=LD_LIBRARY_PATH
  11799. case $host_vendor in
  11800. sni)
  11801. shlibpath_overrides_runpath=no
  11802. need_lib_prefix=no
  11803. runpath_var=LD_RUN_PATH
  11804. ;;
  11805. siemens)
  11806. need_lib_prefix=no
  11807. ;;
  11808. motorola)
  11809. need_lib_prefix=no
  11810. need_version=no
  11811. shlibpath_overrides_runpath=no
  11812. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11813. ;;
  11814. esac
  11815. ;;
  11816. sysv4*MP*)
  11817. if test -d /usr/nec ;then
  11818. version_type=linux
  11819. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11820. soname_spec='$libname${shared_ext}.$major'
  11821. shlibpath_var=LD_LIBRARY_PATH
  11822. fi
  11823. ;;
  11824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11825. version_type=freebsd-elf
  11826. need_lib_prefix=no
  11827. need_version=no
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. soname_spec='${libname}${release}${shared_ext}$major'
  11830. shlibpath_var=LD_LIBRARY_PATH
  11831. shlibpath_overrides_runpath=yes
  11832. hardcode_into_libs=yes
  11833. if test "$with_gnu_ld" = yes; then
  11834. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11835. else
  11836. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11837. case $host_os in
  11838. sco3.2v5*)
  11839. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11840. ;;
  11841. esac
  11842. fi
  11843. sys_lib_dlsearch_path_spec='/usr/lib'
  11844. ;;
  11845. tpf*)
  11846. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11847. version_type=linux
  11848. need_lib_prefix=no
  11849. need_version=no
  11850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11851. shlibpath_var=LD_LIBRARY_PATH
  11852. shlibpath_overrides_runpath=no
  11853. hardcode_into_libs=yes
  11854. ;;
  11855. uts4*)
  11856. version_type=linux
  11857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. shlibpath_var=LD_LIBRARY_PATH
  11860. ;;
  11861. *)
  11862. dynamic_linker=no
  11863. ;;
  11864. esac
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11866. $as_echo "$dynamic_linker" >&6; }
  11867. test "$dynamic_linker" = no && can_build_shared=no
  11868. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11869. if test "$GCC" = yes; then
  11870. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11871. fi
  11872. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11873. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11874. fi
  11875. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11876. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11877. fi
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11879. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11880. hardcode_action_CXX=
  11881. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  11882. test -n "$runpath_var_CXX" ||
  11883. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11884. # We can hardcode non-existent directories.
  11885. if test "$hardcode_direct_CXX" != no &&
  11886. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11887. # have to relink, otherwise we might link with an installed library
  11888. # when we should be linking with a yet-to-be-installed one
  11889. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11890. test "$hardcode_minus_L_CXX" != no; then
  11891. # Linking always hardcodes the temporary library directory.
  11892. hardcode_action_CXX=relink
  11893. else
  11894. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11895. hardcode_action_CXX=immediate
  11896. fi
  11897. else
  11898. # We cannot hardcode anything, or else we can only hardcode existing
  11899. # directories.
  11900. hardcode_action_CXX=unsupported
  11901. fi
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  11903. $as_echo "$hardcode_action_CXX" >&6; }
  11904. if test "$hardcode_action_CXX" = relink ||
  11905. test "$inherit_rpath_CXX" = yes; then
  11906. # Fast installation is not supported
  11907. enable_fast_install=no
  11908. elif test "$shlibpath_overrides_runpath" = yes ||
  11909. test "$enable_shared" = no; then
  11910. # Fast installation is not necessary
  11911. enable_fast_install=needless
  11912. fi
  11913. fi # test -n "$compiler"
  11914. CC=$lt_save_CC
  11915. LDCXX=$LD
  11916. LD=$lt_save_LD
  11917. GCC=$lt_save_GCC
  11918. with_gnu_ld=$lt_save_with_gnu_ld
  11919. lt_cv_path_LDCXX=$lt_cv_path_LD
  11920. lt_cv_path_LD=$lt_save_path_LD
  11921. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11922. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11923. fi # test "$_lt_caught_CXX_error" != yes
  11924. ac_ext=c
  11925. ac_cpp='$CPP $CPPFLAGS'
  11926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11929. ac_config_commands="$ac_config_commands libtool"
  11930. # Only expand once:
  11931. ac_config_headers="$ac_config_headers config.h"
  11932. am__api_version='1.11'
  11933. # Find a good install program. We prefer a C program (faster),
  11934. # so one script is as good as another. But avoid the broken or
  11935. # incompatible versions:
  11936. # SysV /etc/install, /usr/sbin/install
  11937. # SunOS /usr/etc/install
  11938. # IRIX /sbin/install
  11939. # AIX /bin/install
  11940. # AmigaOS /C/install, which installs bootblocks on floppy discs
  11941. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  11942. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  11943. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11944. # OS/2's system install, which has a completely different semantic
  11945. # ./install, which can be erroneously created by make from ./install.sh.
  11946. # Reject install programs that cannot install multiple files.
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11948. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  11949. if test -z "$INSTALL"; then
  11950. if test "${ac_cv_path_install+set}" = set; then :
  11951. $as_echo_n "(cached) " >&6
  11952. else
  11953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11954. for as_dir in $PATH
  11955. do
  11956. IFS=$as_save_IFS
  11957. test -z "$as_dir" && as_dir=.
  11958. # Account for people who put trailing slashes in PATH elements.
  11959. case $as_dir/ in #((
  11960. ./ | .// | /[cC]/* | \
  11961. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11962. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11963. /usr/ucb/* ) ;;
  11964. *)
  11965. # OSF1 and SCO ODT 3.0 have their own names for install.
  11966. # Don't use installbsd from OSF since it installs stuff as root
  11967. # by default.
  11968. for ac_prog in ginstall scoinst install; do
  11969. for ac_exec_ext in '' $ac_executable_extensions; do
  11970. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  11971. if test $ac_prog = install &&
  11972. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11973. # AIX install. It has an incompatible calling convention.
  11974. :
  11975. elif test $ac_prog = install &&
  11976. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11977. # program-specific install script used by HP pwplus--don't use.
  11978. :
  11979. else
  11980. rm -rf conftest.one conftest.two conftest.dir
  11981. echo one > conftest.one
  11982. echo two > conftest.two
  11983. mkdir conftest.dir
  11984. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  11985. test -s conftest.one && test -s conftest.two &&
  11986. test -s conftest.dir/conftest.one &&
  11987. test -s conftest.dir/conftest.two
  11988. then
  11989. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  11990. break 3
  11991. fi
  11992. fi
  11993. fi
  11994. done
  11995. done
  11996. ;;
  11997. esac
  11998. done
  11999. IFS=$as_save_IFS
  12000. rm -rf conftest.one conftest.two conftest.dir
  12001. fi
  12002. if test "${ac_cv_path_install+set}" = set; then
  12003. INSTALL=$ac_cv_path_install
  12004. else
  12005. # As a last resort, use the slow shell script. Don't cache a
  12006. # value for INSTALL within a source directory, because that will
  12007. # break other packages using the cache if that directory is
  12008. # removed, or if the value is a relative name.
  12009. INSTALL=$ac_install_sh
  12010. fi
  12011. fi
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12013. $as_echo "$INSTALL" >&6; }
  12014. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12015. # It thinks the first close brace ends the variable substitution.
  12016. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12017. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12018. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12020. $as_echo_n "checking whether build environment is sane... " >&6; }
  12021. # Just in case
  12022. sleep 1
  12023. echo timestamp > conftest.file
  12024. # Reject unsafe characters in $srcdir or the absolute working directory
  12025. # name. Accept space and tab only in the latter.
  12026. am_lf='
  12027. '
  12028. case `pwd` in
  12029. *[\\\"\#\$\&\'\`$am_lf]*)
  12030. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  12031. esac
  12032. case $srcdir in
  12033. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12034. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12035. esac
  12036. # Do `set' in a subshell so we don't clobber the current shell's
  12037. # arguments. Must try -L first in case configure is actually a
  12038. # symlink; some systems play weird games with the mod time of symlinks
  12039. # (eg FreeBSD returns the mod time of the symlink's containing
  12040. # directory).
  12041. if (
  12042. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12043. if test "$*" = "X"; then
  12044. # -L didn't work.
  12045. set X `ls -t "$srcdir/configure" conftest.file`
  12046. fi
  12047. rm -f conftest.file
  12048. if test "$*" != "X $srcdir/configure conftest.file" \
  12049. && test "$*" != "X conftest.file $srcdir/configure"; then
  12050. # If neither matched, then we have a broken ls. This can happen
  12051. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12052. # broken ls alias from the environment. This has actually
  12053. # happened. Such a system could not be considered "sane".
  12054. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  12055. alias in your environment" "$LINENO" 5
  12056. fi
  12057. test "$2" = conftest.file
  12058. )
  12059. then
  12060. # Ok.
  12061. :
  12062. else
  12063. as_fn_error "newly created file is older than distributed files!
  12064. Check your system clock" "$LINENO" 5
  12065. fi
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12067. $as_echo "yes" >&6; }
  12068. test "$program_prefix" != NONE &&
  12069. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12070. # Use a double $ so make ignores it.
  12071. test "$program_suffix" != NONE &&
  12072. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12073. # Double any \ or $.
  12074. # By default was `s,x,x', remove it if useless.
  12075. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12076. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12077. # expand $ac_aux_dir to an absolute path
  12078. am_aux_dir=`cd $ac_aux_dir && pwd`
  12079. if test x"${MISSING+set}" != xset; then
  12080. case $am_aux_dir in
  12081. *\ * | *\ *)
  12082. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12083. *)
  12084. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12085. esac
  12086. fi
  12087. # Use eval to expand $SHELL
  12088. if eval "$MISSING --run true"; then
  12089. am_missing_run="$MISSING --run "
  12090. else
  12091. am_missing_run=
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12093. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12094. fi
  12095. if test x"${install_sh}" != xset; then
  12096. case $am_aux_dir in
  12097. *\ * | *\ *)
  12098. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12099. *)
  12100. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12101. esac
  12102. fi
  12103. # Installed binaries are usually stripped using `strip' when the user
  12104. # run `make install-strip'. However `strip' might not be the right
  12105. # tool to use in cross-compilation environments, therefore Automake
  12106. # will honor the `STRIP' environment variable to overrule this program.
  12107. if test "$cross_compiling" != no; then
  12108. if test -n "$ac_tool_prefix"; then
  12109. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12110. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12112. $as_echo_n "checking for $ac_word... " >&6; }
  12113. if test "${ac_cv_prog_STRIP+set}" = set; then :
  12114. $as_echo_n "(cached) " >&6
  12115. else
  12116. if test -n "$STRIP"; then
  12117. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12118. else
  12119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12120. for as_dir in $PATH
  12121. do
  12122. IFS=$as_save_IFS
  12123. test -z "$as_dir" && as_dir=.
  12124. for ac_exec_ext in '' $ac_executable_extensions; do
  12125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12126. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12128. break 2
  12129. fi
  12130. done
  12131. done
  12132. IFS=$as_save_IFS
  12133. fi
  12134. fi
  12135. STRIP=$ac_cv_prog_STRIP
  12136. if test -n "$STRIP"; then
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12138. $as_echo "$STRIP" >&6; }
  12139. else
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12141. $as_echo "no" >&6; }
  12142. fi
  12143. fi
  12144. if test -z "$ac_cv_prog_STRIP"; then
  12145. ac_ct_STRIP=$STRIP
  12146. # Extract the first word of "strip", so it can be a program name with args.
  12147. set dummy strip; ac_word=$2
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12149. $as_echo_n "checking for $ac_word... " >&6; }
  12150. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. if test -n "$ac_ct_STRIP"; then
  12154. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12155. else
  12156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12157. for as_dir in $PATH
  12158. do
  12159. IFS=$as_save_IFS
  12160. test -z "$as_dir" && as_dir=.
  12161. for ac_exec_ext in '' $ac_executable_extensions; do
  12162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12163. ac_cv_prog_ac_ct_STRIP="strip"
  12164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12165. break 2
  12166. fi
  12167. done
  12168. done
  12169. IFS=$as_save_IFS
  12170. fi
  12171. fi
  12172. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12173. if test -n "$ac_ct_STRIP"; then
  12174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12175. $as_echo "$ac_ct_STRIP" >&6; }
  12176. else
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12178. $as_echo "no" >&6; }
  12179. fi
  12180. if test "x$ac_ct_STRIP" = x; then
  12181. STRIP=":"
  12182. else
  12183. case $cross_compiling:$ac_tool_warned in
  12184. yes:)
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12187. ac_tool_warned=yes ;;
  12188. esac
  12189. STRIP=$ac_ct_STRIP
  12190. fi
  12191. else
  12192. STRIP="$ac_cv_prog_STRIP"
  12193. fi
  12194. fi
  12195. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12197. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12198. if test -z "$MKDIR_P"; then
  12199. if test "${ac_cv_path_mkdir+set}" = set; then :
  12200. $as_echo_n "(cached) " >&6
  12201. else
  12202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12203. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12204. do
  12205. IFS=$as_save_IFS
  12206. test -z "$as_dir" && as_dir=.
  12207. for ac_prog in mkdir gmkdir; do
  12208. for ac_exec_ext in '' $ac_executable_extensions; do
  12209. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12210. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12211. 'mkdir (GNU coreutils) '* | \
  12212. 'mkdir (coreutils) '* | \
  12213. 'mkdir (fileutils) '4.1*)
  12214. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12215. break 3;;
  12216. esac
  12217. done
  12218. done
  12219. done
  12220. IFS=$as_save_IFS
  12221. fi
  12222. if test "${ac_cv_path_mkdir+set}" = set; then
  12223. MKDIR_P="$ac_cv_path_mkdir -p"
  12224. else
  12225. # As a last resort, use the slow shell script. Don't cache a
  12226. # value for MKDIR_P within a source directory, because that will
  12227. # break other packages using the cache if that directory is
  12228. # removed, or if the value is a relative name.
  12229. test -d ./--version && rmdir ./--version
  12230. MKDIR_P="$ac_install_sh -d"
  12231. fi
  12232. fi
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12234. $as_echo "$MKDIR_P" >&6; }
  12235. mkdir_p="$MKDIR_P"
  12236. case $mkdir_p in
  12237. [\\/$]* | ?:[\\/]*) ;;
  12238. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12239. esac
  12240. for ac_prog in gawk mawk nawk awk
  12241. do
  12242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12243. set dummy $ac_prog; ac_word=$2
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12245. $as_echo_n "checking for $ac_word... " >&6; }
  12246. if test "${ac_cv_prog_AWK+set}" = set; then :
  12247. $as_echo_n "(cached) " >&6
  12248. else
  12249. if test -n "$AWK"; then
  12250. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12251. else
  12252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12253. for as_dir in $PATH
  12254. do
  12255. IFS=$as_save_IFS
  12256. test -z "$as_dir" && as_dir=.
  12257. for ac_exec_ext in '' $ac_executable_extensions; do
  12258. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12259. ac_cv_prog_AWK="$ac_prog"
  12260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12261. break 2
  12262. fi
  12263. done
  12264. done
  12265. IFS=$as_save_IFS
  12266. fi
  12267. fi
  12268. AWK=$ac_cv_prog_AWK
  12269. if test -n "$AWK"; then
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12271. $as_echo "$AWK" >&6; }
  12272. else
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12274. $as_echo "no" >&6; }
  12275. fi
  12276. test -n "$AWK" && break
  12277. done
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12279. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12280. set x ${MAKE-make}
  12281. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12282. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. cat >conftest.make <<\_ACEOF
  12286. SHELL = /bin/sh
  12287. all:
  12288. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12289. _ACEOF
  12290. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12291. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12292. *@@@%%%=?*=@@@%%%*)
  12293. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12294. *)
  12295. eval ac_cv_prog_make_${ac_make}_set=no;;
  12296. esac
  12297. rm -f conftest.make
  12298. fi
  12299. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12301. $as_echo "yes" >&6; }
  12302. SET_MAKE=
  12303. else
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12305. $as_echo "no" >&6; }
  12306. SET_MAKE="MAKE=${MAKE-make}"
  12307. fi
  12308. rm -rf .tst 2>/dev/null
  12309. mkdir .tst 2>/dev/null
  12310. if test -d .tst; then
  12311. am__leading_dot=.
  12312. else
  12313. am__leading_dot=_
  12314. fi
  12315. rmdir .tst 2>/dev/null
  12316. DEPDIR="${am__leading_dot}deps"
  12317. ac_config_commands="$ac_config_commands depfiles"
  12318. am_make=${MAKE-make}
  12319. cat > confinc << 'END'
  12320. am__doit:
  12321. @echo this is the am__doit target
  12322. .PHONY: am__doit
  12323. END
  12324. # If we don't find an include directive, just comment out the code.
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12326. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12327. am__include="#"
  12328. am__quote=
  12329. _am_result=none
  12330. # First try GNU make style include.
  12331. echo "include confinc" > confmf
  12332. # Ignore all kinds of additional output from `make'.
  12333. case `$am_make -s -f confmf 2> /dev/null` in #(
  12334. *the\ am__doit\ target*)
  12335. am__include=include
  12336. am__quote=
  12337. _am_result=GNU
  12338. ;;
  12339. esac
  12340. # Now try BSD make style include.
  12341. if test "$am__include" = "#"; then
  12342. echo '.include "confinc"' > confmf
  12343. case `$am_make -s -f confmf 2> /dev/null` in #(
  12344. *the\ am__doit\ target*)
  12345. am__include=.include
  12346. am__quote="\""
  12347. _am_result=BSD
  12348. ;;
  12349. esac
  12350. fi
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12352. $as_echo "$_am_result" >&6; }
  12353. rm -f confinc confmf
  12354. # Check whether --enable-dependency-tracking was given.
  12355. if test "${enable_dependency_tracking+set}" = set; then :
  12356. enableval=$enable_dependency_tracking;
  12357. fi
  12358. if test "x$enable_dependency_tracking" != xno; then
  12359. am_depcomp="$ac_aux_dir/depcomp"
  12360. AMDEPBACKSLASH='\'
  12361. fi
  12362. if test "x$enable_dependency_tracking" != xno; then
  12363. AMDEP_TRUE=
  12364. AMDEP_FALSE='#'
  12365. else
  12366. AMDEP_TRUE='#'
  12367. AMDEP_FALSE=
  12368. fi
  12369. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12370. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12371. # is not polluted with repeated "-I."
  12372. am__isrc=' -I$(srcdir)'
  12373. # test to see if srcdir already configured
  12374. if test -f $srcdir/config.status; then
  12375. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12376. fi
  12377. fi
  12378. # test whether we have cygpath
  12379. if test -z "$CYGPATH_W"; then
  12380. if (cygpath --version) >/dev/null 2>/dev/null; then
  12381. CYGPATH_W='cygpath -w'
  12382. else
  12383. CYGPATH_W=echo
  12384. fi
  12385. fi
  12386. # Define the identity of the package.
  12387. PACKAGE='clish'
  12388. VERSION='1.3.0'
  12389. cat >>confdefs.h <<_ACEOF
  12390. #define PACKAGE "$PACKAGE"
  12391. _ACEOF
  12392. cat >>confdefs.h <<_ACEOF
  12393. #define VERSION "$VERSION"
  12394. _ACEOF
  12395. # Some tools Automake needs.
  12396. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  12397. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  12398. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  12399. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  12400. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  12401. # We need awk for the "check" target. The system "awk" is bad on
  12402. # some platforms.
  12403. # Always define AMTAR for backward compatibility.
  12404. AMTAR=${AMTAR-"${am_missing_run}tar"}
  12405. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  12406. depcc="$CC" am_compiler_list=
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12408. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12409. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12413. # We make a subdir and do the tests there. Otherwise we can end up
  12414. # making bogus files that we don't know about and never remove. For
  12415. # instance it was reported that on HP-UX the gcc test will end up
  12416. # making a dummy file named `D' -- because `-MD' means `put the output
  12417. # in D'.
  12418. mkdir conftest.dir
  12419. # Copy depcomp to subdir because otherwise we won't find it if we're
  12420. # using a relative directory.
  12421. cp "$am_depcomp" conftest.dir
  12422. cd conftest.dir
  12423. # We will build objects and dependencies in a subdirectory because
  12424. # it helps to detect inapplicable dependency modes. For instance
  12425. # both Tru64's cc and ICC support -MD to output dependencies as a
  12426. # side effect of compilation, but ICC will put the dependencies in
  12427. # the current directory while Tru64 will put them in the object
  12428. # directory.
  12429. mkdir sub
  12430. am_cv_CC_dependencies_compiler_type=none
  12431. if test "$am_compiler_list" = ""; then
  12432. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12433. fi
  12434. am__universal=false
  12435. case " $depcc " in #(
  12436. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12437. esac
  12438. for depmode in $am_compiler_list; do
  12439. # Setup a source with many dependencies, because some compilers
  12440. # like to wrap large dependency lists on column 80 (with \), and
  12441. # we should not choose a depcomp mode which is confused by this.
  12442. #
  12443. # We need to recreate these files for each test, as the compiler may
  12444. # overwrite some of them when testing with obscure command lines.
  12445. # This happens at least with the AIX C compiler.
  12446. : > sub/conftest.c
  12447. for i in 1 2 3 4 5 6; do
  12448. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12449. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12450. # Solaris 8's {/usr,}/bin/sh.
  12451. touch sub/conftst$i.h
  12452. done
  12453. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12454. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12455. # mode. It turns out that the SunPro C++ compiler does not properly
  12456. # handle `-M -o', and we need to detect this. Also, some Intel
  12457. # versions had trouble with output in subdirs
  12458. am__obj=sub/conftest.${OBJEXT-o}
  12459. am__minus_obj="-o $am__obj"
  12460. case $depmode in
  12461. gcc)
  12462. # This depmode causes a compiler race in universal mode.
  12463. test "$am__universal" = false || continue
  12464. ;;
  12465. nosideeffect)
  12466. # after this tag, mechanisms are not by side-effect, so they'll
  12467. # only be used when explicitly requested
  12468. if test "x$enable_dependency_tracking" = xyes; then
  12469. continue
  12470. else
  12471. break
  12472. fi
  12473. ;;
  12474. msvisualcpp | msvcmsys)
  12475. # This compiler won't grok `-c -o', but also, the minuso test has
  12476. # not run yet. These depmodes are late enough in the game, and
  12477. # so weak that their functioning should not be impacted.
  12478. am__obj=conftest.${OBJEXT-o}
  12479. am__minus_obj=
  12480. ;;
  12481. none) break ;;
  12482. esac
  12483. if depmode=$depmode \
  12484. source=sub/conftest.c object=$am__obj \
  12485. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12486. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12487. >/dev/null 2>conftest.err &&
  12488. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12489. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12490. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12491. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12492. # icc doesn't choke on unknown options, it will just issue warnings
  12493. # or remarks (even with -Werror). So we grep stderr for any message
  12494. # that says an option was ignored or not supported.
  12495. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12496. # icc: Command line warning: ignoring option '-M'; no argument required
  12497. # The diagnosis changed in icc 8.0:
  12498. # icc: Command line remark: option '-MP' not supported
  12499. if (grep 'ignoring option' conftest.err ||
  12500. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12501. am_cv_CC_dependencies_compiler_type=$depmode
  12502. break
  12503. fi
  12504. fi
  12505. done
  12506. cd ..
  12507. rm -rf conftest.dir
  12508. else
  12509. am_cv_CC_dependencies_compiler_type=none
  12510. fi
  12511. fi
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12513. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12514. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12515. if
  12516. test "x$enable_dependency_tracking" != xno \
  12517. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12518. am__fastdepCC_TRUE=
  12519. am__fastdepCC_FALSE='#'
  12520. else
  12521. am__fastdepCC_TRUE='#'
  12522. am__fastdepCC_FALSE=
  12523. fi
  12524. depcc="$CXX" am_compiler_list=
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12526. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12527. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  12528. $as_echo_n "(cached) " >&6
  12529. else
  12530. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12531. # We make a subdir and do the tests there. Otherwise we can end up
  12532. # making bogus files that we don't know about and never remove. For
  12533. # instance it was reported that on HP-UX the gcc test will end up
  12534. # making a dummy file named `D' -- because `-MD' means `put the output
  12535. # in D'.
  12536. mkdir conftest.dir
  12537. # Copy depcomp to subdir because otherwise we won't find it if we're
  12538. # using a relative directory.
  12539. cp "$am_depcomp" conftest.dir
  12540. cd conftest.dir
  12541. # We will build objects and dependencies in a subdirectory because
  12542. # it helps to detect inapplicable dependency modes. For instance
  12543. # both Tru64's cc and ICC support -MD to output dependencies as a
  12544. # side effect of compilation, but ICC will put the dependencies in
  12545. # the current directory while Tru64 will put them in the object
  12546. # directory.
  12547. mkdir sub
  12548. am_cv_CXX_dependencies_compiler_type=none
  12549. if test "$am_compiler_list" = ""; then
  12550. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12551. fi
  12552. am__universal=false
  12553. case " $depcc " in #(
  12554. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12555. esac
  12556. for depmode in $am_compiler_list; do
  12557. # Setup a source with many dependencies, because some compilers
  12558. # like to wrap large dependency lists on column 80 (with \), and
  12559. # we should not choose a depcomp mode which is confused by this.
  12560. #
  12561. # We need to recreate these files for each test, as the compiler may
  12562. # overwrite some of them when testing with obscure command lines.
  12563. # This happens at least with the AIX C compiler.
  12564. : > sub/conftest.c
  12565. for i in 1 2 3 4 5 6; do
  12566. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12567. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12568. # Solaris 8's {/usr,}/bin/sh.
  12569. touch sub/conftst$i.h
  12570. done
  12571. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12572. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12573. # mode. It turns out that the SunPro C++ compiler does not properly
  12574. # handle `-M -o', and we need to detect this. Also, some Intel
  12575. # versions had trouble with output in subdirs
  12576. am__obj=sub/conftest.${OBJEXT-o}
  12577. am__minus_obj="-o $am__obj"
  12578. case $depmode in
  12579. gcc)
  12580. # This depmode causes a compiler race in universal mode.
  12581. test "$am__universal" = false || continue
  12582. ;;
  12583. nosideeffect)
  12584. # after this tag, mechanisms are not by side-effect, so they'll
  12585. # only be used when explicitly requested
  12586. if test "x$enable_dependency_tracking" = xyes; then
  12587. continue
  12588. else
  12589. break
  12590. fi
  12591. ;;
  12592. msvisualcpp | msvcmsys)
  12593. # This compiler won't grok `-c -o', but also, the minuso test has
  12594. # not run yet. These depmodes are late enough in the game, and
  12595. # so weak that their functioning should not be impacted.
  12596. am__obj=conftest.${OBJEXT-o}
  12597. am__minus_obj=
  12598. ;;
  12599. none) break ;;
  12600. esac
  12601. if depmode=$depmode \
  12602. source=sub/conftest.c object=$am__obj \
  12603. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12604. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12605. >/dev/null 2>conftest.err &&
  12606. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12607. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12608. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12609. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12610. # icc doesn't choke on unknown options, it will just issue warnings
  12611. # or remarks (even with -Werror). So we grep stderr for any message
  12612. # that says an option was ignored or not supported.
  12613. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12614. # icc: Command line warning: ignoring option '-M'; no argument required
  12615. # The diagnosis changed in icc 8.0:
  12616. # icc: Command line remark: option '-MP' not supported
  12617. if (grep 'ignoring option' conftest.err ||
  12618. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12619. am_cv_CXX_dependencies_compiler_type=$depmode
  12620. break
  12621. fi
  12622. fi
  12623. done
  12624. cd ..
  12625. rm -rf conftest.dir
  12626. else
  12627. am_cv_CXX_dependencies_compiler_type=none
  12628. fi
  12629. fi
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12631. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12632. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12633. if
  12634. test "x$enable_dependency_tracking" != xno \
  12635. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12636. am__fastdepCXX_TRUE=
  12637. am__fastdepCXX_FALSE='#'
  12638. else
  12639. am__fastdepCXX_TRUE='#'
  12640. am__fastdepCXX_FALSE=
  12641. fi
  12642. if test "x$CC" != xcc; then
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  12644. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  12645. else
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  12647. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  12648. fi
  12649. set dummy $CC; ac_cc=`$as_echo "$2" |
  12650. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12651. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  12652. $as_echo_n "(cached) " >&6
  12653. else
  12654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12655. /* end confdefs.h. */
  12656. int
  12657. main ()
  12658. {
  12659. ;
  12660. return 0;
  12661. }
  12662. _ACEOF
  12663. # Make sure it works both with $CC and with simple cc.
  12664. # We do the test twice because some compilers refuse to overwrite an
  12665. # existing .o file with -o, though they will create one.
  12666. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12667. rm -f conftest2.*
  12668. if { { case "(($ac_try" in
  12669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12670. *) ac_try_echo=$ac_try;;
  12671. esac
  12672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12673. $as_echo "$ac_try_echo"; } >&5
  12674. (eval "$ac_try") 2>&5
  12675. ac_status=$?
  12676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12677. test $ac_status = 0; } &&
  12678. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12680. *) ac_try_echo=$ac_try;;
  12681. esac
  12682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12683. $as_echo "$ac_try_echo"; } >&5
  12684. (eval "$ac_try") 2>&5
  12685. ac_status=$?
  12686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12687. test $ac_status = 0; };
  12688. then
  12689. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  12690. if test "x$CC" != xcc; then
  12691. # Test first that cc exists at all.
  12692. if { ac_try='cc -c conftest.$ac_ext >&5'
  12693. { { case "(($ac_try" in
  12694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12695. *) ac_try_echo=$ac_try;;
  12696. esac
  12697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12698. $as_echo "$ac_try_echo"; } >&5
  12699. (eval "$ac_try") 2>&5
  12700. ac_status=$?
  12701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12702. test $ac_status = 0; }; }; then
  12703. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12704. rm -f conftest2.*
  12705. if { { case "(($ac_try" in
  12706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12707. *) ac_try_echo=$ac_try;;
  12708. esac
  12709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12710. $as_echo "$ac_try_echo"; } >&5
  12711. (eval "$ac_try") 2>&5
  12712. ac_status=$?
  12713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12714. test $ac_status = 0; } &&
  12715. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12717. *) ac_try_echo=$ac_try;;
  12718. esac
  12719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12720. $as_echo "$ac_try_echo"; } >&5
  12721. (eval "$ac_try") 2>&5
  12722. ac_status=$?
  12723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12724. test $ac_status = 0; };
  12725. then
  12726. # cc works too.
  12727. :
  12728. else
  12729. # cc exists but doesn't like -o.
  12730. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12731. fi
  12732. fi
  12733. fi
  12734. else
  12735. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12736. fi
  12737. rm -f core conftest*
  12738. fi
  12739. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12741. $as_echo "yes" >&6; }
  12742. else
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12744. $as_echo "no" >&6; }
  12745. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  12746. fi
  12747. # FIXME: we rely on the cache variable name because
  12748. # there is no other way.
  12749. set dummy $CC
  12750. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12751. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  12752. if test "$am_t" != yes; then
  12753. # Losing compiler, so override with the script.
  12754. # FIXME: It is wrong to rewrite CC.
  12755. # But if we don't then we get into trouble of one sort or another.
  12756. # A longer-term fix would be to have automake use am__CC in this case,
  12757. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12758. CC="$am_aux_dir/compile $CC"
  12759. fi
  12760. # needed to handle 64-bit architecture
  12761. # The cast to long int works around a bug in the HP C Compiler
  12762. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12763. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12764. # This bug is HP SR number 8606223364.
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12766. $as_echo_n "checking size of int... " >&6; }
  12767. if test "${ac_cv_sizeof_int+set}" = set; then :
  12768. $as_echo_n "(cached) " >&6
  12769. else
  12770. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12771. else
  12772. if test "$ac_cv_type_int" = yes; then
  12773. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12774. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12775. { as_fn_set_status 77
  12776. as_fn_error "cannot compute sizeof (int)
  12777. See \`config.log' for more details." "$LINENO" 5; }; }
  12778. else
  12779. ac_cv_sizeof_int=0
  12780. fi
  12781. fi
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12784. $as_echo "$ac_cv_sizeof_int" >&6; }
  12785. cat >>confdefs.h <<_ACEOF
  12786. #define SIZEOF_INT $ac_cv_sizeof_int
  12787. _ACEOF
  12788. # The cast to long int works around a bug in the HP C Compiler
  12789. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12790. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12791. # This bug is HP SR number 8606223364.
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12793. $as_echo_n "checking size of long... " >&6; }
  12794. if test "${ac_cv_sizeof_long+set}" = set; then :
  12795. $as_echo_n "(cached) " >&6
  12796. else
  12797. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12798. else
  12799. if test "$ac_cv_type_long" = yes; then
  12800. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12802. { as_fn_set_status 77
  12803. as_fn_error "cannot compute sizeof (long)
  12804. See \`config.log' for more details." "$LINENO" 5; }; }
  12805. else
  12806. ac_cv_sizeof_long=0
  12807. fi
  12808. fi
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12811. $as_echo "$ac_cv_sizeof_long" >&6; }
  12812. cat >>confdefs.h <<_ACEOF
  12813. #define SIZEOF_LONG $ac_cv_sizeof_long
  12814. _ACEOF
  12815. # The cast to long int works around a bug in the HP C Compiler
  12816. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12817. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12818. # This bug is HP SR number 8606223364.
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12820. $as_echo_n "checking size of size_t... " >&6; }
  12821. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  12822. $as_echo_n "(cached) " >&6
  12823. else
  12824. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12825. else
  12826. if test "$ac_cv_type_size_t" = yes; then
  12827. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12828. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12829. { as_fn_set_status 77
  12830. as_fn_error "cannot compute sizeof (size_t)
  12831. See \`config.log' for more details." "$LINENO" 5; }; }
  12832. else
  12833. ac_cv_sizeof_size_t=0
  12834. fi
  12835. fi
  12836. fi
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12838. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12839. cat >>confdefs.h <<_ACEOF
  12840. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12841. _ACEOF
  12842. #------------------------------------------------------------------------
  12843. # Handle the --prefix=... option
  12844. #------------------------------------------------------------------------
  12845. if test "${prefix}" = "NONE"; then
  12846. prefix=/usr/local
  12847. fi
  12848. if test "${exec_prefix}" = "NONE"; then
  12849. exec_prefix=$prefix
  12850. fi
  12851. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  12852. eval libdir="$libdir"
  12853. ################################
  12854. # Deal with debugging options
  12855. ################################
  12856. # Check whether --enable-debug was given.
  12857. if test "${enable_debug+set}" = set; then :
  12858. enableval=$enable_debug;
  12859. else
  12860. enable_debug=no
  12861. fi
  12862. if test x$enable_debug = xyes; then
  12863. DEBUG_TRUE=
  12864. DEBUG_FALSE='#'
  12865. else
  12866. DEBUG_TRUE='#'
  12867. DEBUG_FALSE=
  12868. fi
  12869. ################################
  12870. # Check for the LUB library
  12871. ################################
  12872. LUB_LIBS="-llub"
  12873. LUB_CFLAGS=""
  12874. if test "x$LUB_LIBS" = "x"; then
  12875. as_fn_error "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  12876. fi
  12877. ################################
  12878. # Check for the KONF library
  12879. ################################
  12880. KONF_LIBS="-lkonf"
  12881. KONF_CFLAGS=""
  12882. if test "x$KONF_LIBS" = "x"; then
  12883. as_fn_error "Cannot find the \"CLI config\" library" "$LINENO" 5
  12884. fi
  12885. ################################
  12886. # Check for the TINYRL library
  12887. ################################
  12888. TINYRL_LIBS="-ltinyrl"
  12889. TINYRL_CFLAGS=""
  12890. if test "x$TINYRL_LIBS" = "x"; then
  12891. as_fn_error "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  12892. fi
  12893. ################################
  12894. # Check for the TINYXML library
  12895. ################################
  12896. TINYXML_LIBS="-ltinyxml"
  12897. TINYXML_CXXFLAGS="-std=gnu++98"
  12898. if test "x$TINYXML_LIBS" = "x"; then
  12899. as_fn_error "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  12900. fi
  12901. ################################
  12902. # Check for the PTHREAD library
  12903. ################################
  12904. # Check whether --with-pthread was given.
  12905. if test "${with_pthread+set}" = set; then :
  12906. withval=$with_pthread;
  12907. fi
  12908. for ac_header in pthread.h
  12909. do :
  12910. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  12911. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  12912. cat >>confdefs.h <<_ACEOF
  12913. #define HAVE_PTHREAD_H 1
  12914. _ACEOF
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12916. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12917. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. ac_check_lib_save_LIBS=$LIBS
  12921. LIBS="-lpthread $LIBS"
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. /* Override any GCC internal prototype to avoid an error.
  12925. Use char because int might match the return type of a GCC
  12926. builtin and then its argument prototype would still apply. */
  12927. #ifdef __cplusplus
  12928. extern "C"
  12929. #endif
  12930. char pthread_create ();
  12931. int
  12932. main ()
  12933. {
  12934. return pthread_create ();
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. if ac_fn_c_try_link "$LINENO"; then :
  12940. ac_cv_lib_pthread_pthread_create=yes
  12941. else
  12942. ac_cv_lib_pthread_pthread_create=no
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. LIBS=$ac_check_lib_save_LIBS
  12947. fi
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12949. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12950. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  12951. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  12952. if test "x$with_pthread" = "x"; then
  12953. PTHREAD_LIBS="-lpthread"
  12954. else
  12955. PTHREAD_CFLAGS="-I$with_pthread/include"
  12956. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  12957. fi
  12958. fi
  12959. fi
  12960. done
  12961. if test "x$PTHREAD_LIBS" = "x"; then
  12962. as_fn_error "Cannot find the POSIX threads library" "$LINENO" 5
  12963. fi
  12964. ################################
  12965. # Check for the RT library
  12966. ################################
  12967. # Check whether --with-rt was given.
  12968. if test "${with_rt+set}" = set; then :
  12969. withval=$with_rt;
  12970. fi
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  12972. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  12973. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  12974. $as_echo_n "(cached) " >&6
  12975. else
  12976. ac_check_lib_save_LIBS=$LIBS
  12977. LIBS="-lrt $LIBS"
  12978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12979. /* end confdefs.h. */
  12980. /* Override any GCC internal prototype to avoid an error.
  12981. Use char because int might match the return type of a GCC
  12982. builtin and then its argument prototype would still apply. */
  12983. #ifdef __cplusplus
  12984. extern "C"
  12985. #endif
  12986. char clock_gettime ();
  12987. int
  12988. main ()
  12989. {
  12990. return clock_gettime ();
  12991. ;
  12992. return 0;
  12993. }
  12994. _ACEOF
  12995. if ac_fn_c_try_link "$LINENO"; then :
  12996. ac_cv_lib_rt_clock_gettime=yes
  12997. else
  12998. ac_cv_lib_rt_clock_gettime=no
  12999. fi
  13000. rm -f core conftest.err conftest.$ac_objext \
  13001. conftest$ac_exeext conftest.$ac_ext
  13002. LIBS=$ac_check_lib_save_LIBS
  13003. fi
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13005. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13006. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13007. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13008. if test "x$with_rt" = "x"; then
  13009. RT_LIBS="-lrt"
  13010. else
  13011. RT_CFLAGS="-I$with_rt/include"
  13012. RT_LIBS="-L$with_rt/lib -lrt"
  13013. fi
  13014. fi
  13015. ################################
  13016. # Check for the TCL library
  13017. ################################
  13018. TCL_CONFIG=${libdir}/tclConfig.sh
  13019. # Check whether --with-tcl was given.
  13020. if test "${with_tcl+set}" = set; then :
  13021. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13022. source ${TCL_CONFIG} # get TCL_VERSION
  13023. if test "${with_tcl}" = "yes"; then
  13024. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13025. TCL_LIBS="${TCL_LIB_SPEC}"
  13026. else
  13027. TCL_CFLAGS="-I${with_tcl}/include"
  13028. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13029. fi
  13030. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13031. for ac_header in tcl.h
  13032. do :
  13033. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13034. if test "x$ac_cv_header_tcl_h" = x""yes; then :
  13035. cat >>confdefs.h <<_ACEOF
  13036. #define HAVE_TCL_H 1
  13037. _ACEOF
  13038. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13040. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13041. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13042. $as_echo_n "(cached) " >&6
  13043. else
  13044. ac_check_lib_save_LIBS=$LIBS
  13045. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13047. /* end confdefs.h. */
  13048. /* Override any GCC internal prototype to avoid an error.
  13049. Use char because int might match the return type of a GCC
  13050. builtin and then its argument prototype would still apply. */
  13051. #ifdef __cplusplus
  13052. extern "C"
  13053. #endif
  13054. char Tcl_CreateInterp ();
  13055. int
  13056. main ()
  13057. {
  13058. return Tcl_CreateInterp ();
  13059. ;
  13060. return 0;
  13061. }
  13062. _ACEOF
  13063. if ac_fn_c_try_link "$LINENO"; then :
  13064. eval "$as_ac_Lib=yes"
  13065. else
  13066. eval "$as_ac_Lib=no"
  13067. fi
  13068. rm -f core conftest.err conftest.$ac_objext \
  13069. conftest$ac_exeext conftest.$ac_ext
  13070. LIBS=$ac_check_lib_save_LIBS
  13071. fi
  13072. eval ac_res=\$$as_ac_Lib
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13074. $as_echo "$ac_res" >&6; }
  13075. eval as_val=\$$as_ac_Lib
  13076. if test "x$as_val" = x""yes; then :
  13077. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13078. have_tcl="yes"
  13079. fi
  13080. fi
  13081. done
  13082. fi
  13083. fi
  13084. if test "x${have_tcl}" = "xyes"; then
  13085. TCL_TRUE=
  13086. TCL_FALSE='#'
  13087. else
  13088. TCL_TRUE='#'
  13089. TCL_FALSE=
  13090. fi
  13091. ################################
  13092. # Check for inclusion of lub_heap
  13093. ################################
  13094. # Check whether --enable-lubheap was given.
  13095. if test "${enable_lubheap+set}" = set; then :
  13096. enableval=$enable_lubheap;
  13097. else
  13098. enable_lubheap=no
  13099. fi
  13100. if test "x$enable_lubheap" = "xyes"; then
  13101. LUBHEAP_TRUE=
  13102. LUBHEAP_FALSE='#'
  13103. else
  13104. LUBHEAP_TRUE='#'
  13105. LUBHEAP_FALSE=
  13106. fi
  13107. if test "x$enable_lubheap" = "xyes"; then
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13109. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13110. LUBHEAP_LIBS="-llubheap"
  13111. LUBHEAP_CFLAGS=""
  13112. if test "x$LUBHEAP_LIBS" = "x"; then
  13113. as_fn_error "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13114. fi
  13115. fi
  13116. ################################
  13117. # Check for linkage with GPL libraries
  13118. ################################
  13119. # Check whether --enable-gpl was given.
  13120. if test "${enable_gpl+set}" = set; then :
  13121. enableval=$enable_gpl;
  13122. else
  13123. enable_gpl=yes
  13124. fi
  13125. if test "x$enable_gpl" = "xyes"; then
  13126. ################################
  13127. # Check for BFD library
  13128. ################################
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13130. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13131. for ac_header in bfd.h
  13132. do :
  13133. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13134. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13135. cat >>confdefs.h <<_ACEOF
  13136. #define HAVE_BFD_H 1
  13137. _ACEOF
  13138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13139. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13140. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then :
  13141. $as_echo_n "(cached) " >&6
  13142. else
  13143. ac_check_lib_save_LIBS=$LIBS
  13144. LIBS="-lbfd $LIBS"
  13145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13146. /* end confdefs.h. */
  13147. /* Override any GCC internal prototype to avoid an error.
  13148. Use char because int might match the return type of a GCC
  13149. builtin and then its argument prototype would still apply. */
  13150. #ifdef __cplusplus
  13151. extern "C"
  13152. #endif
  13153. char bfd_init ();
  13154. int
  13155. main ()
  13156. {
  13157. return bfd_init ();
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_c_try_link "$LINENO"; then :
  13163. ac_cv_lib_bfd_bfd_init=yes
  13164. else
  13165. ac_cv_lib_bfd_bfd_init=no
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext \
  13168. conftest$ac_exeext conftest.$ac_ext
  13169. LIBS=$ac_check_lib_save_LIBS
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13172. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13173. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then :
  13174. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13175. BFD_LIBS="-lbfd -liberty"
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13177. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13178. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then :
  13179. $as_echo_n "(cached) " >&6
  13180. else
  13181. ac_check_lib_save_LIBS=$LIBS
  13182. LIBS="-lintl $LIBS"
  13183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13184. /* end confdefs.h. */
  13185. /* Override any GCC internal prototype to avoid an error.
  13186. Use char because int might match the return type of a GCC
  13187. builtin and then its argument prototype would still apply. */
  13188. #ifdef __cplusplus
  13189. extern "C"
  13190. #endif
  13191. char libintl_dgettext ();
  13192. int
  13193. main ()
  13194. {
  13195. return libintl_dgettext ();
  13196. ;
  13197. return 0;
  13198. }
  13199. _ACEOF
  13200. if ac_fn_c_try_link "$LINENO"; then :
  13201. ac_cv_lib_intl_libintl_dgettext=yes
  13202. else
  13203. ac_cv_lib_intl_libintl_dgettext=no
  13204. fi
  13205. rm -f core conftest.err conftest.$ac_objext \
  13206. conftest$ac_exeext conftest.$ac_ext
  13207. LIBS=$ac_check_lib_save_LIBS
  13208. fi
  13209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13210. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13211. if test "x$ac_cv_lib_intl_libintl_dgettext" = x""yes; then :
  13212. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13213. BFD_LIBS="$BFD_LIBS -lintl"
  13214. fi
  13215. fi
  13216. fi
  13217. done
  13218. else
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13220. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13221. fi
  13222. ################################
  13223. # Check for getopt_long()
  13224. ################################
  13225. for ac_header in getopt.h
  13226. do :
  13227. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13228. if test "x$ac_cv_header_getopt_h" = x""yes; then :
  13229. cat >>confdefs.h <<_ACEOF
  13230. #define HAVE_GETOPT_H 1
  13231. _ACEOF
  13232. else
  13233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13234. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13235. fi
  13236. done
  13237. ac_config_files="$ac_config_files Makefile"
  13238. cat >confcache <<\_ACEOF
  13239. # This file is a shell script that caches the results of configure
  13240. # tests run on this system so they can be shared between configure
  13241. # scripts and configure runs, see configure's option --config-cache.
  13242. # It is not useful on other systems. If it contains results you don't
  13243. # want to keep, you may remove or edit it.
  13244. #
  13245. # config.status only pays attention to the cache file if you give it
  13246. # the --recheck option to rerun configure.
  13247. #
  13248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13250. # following values.
  13251. _ACEOF
  13252. # The following way of writing the cache mishandles newlines in values,
  13253. # but we know of no workaround that is simple, portable, and efficient.
  13254. # So, we kill variables containing newlines.
  13255. # Ultrix sh set writes to stderr and can't be redirected directly,
  13256. # and sets the high bit in the cache file unless we assign to the vars.
  13257. (
  13258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13259. eval ac_val=\$$ac_var
  13260. case $ac_val in #(
  13261. *${as_nl}*)
  13262. case $ac_var in #(
  13263. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13264. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13265. esac
  13266. case $ac_var in #(
  13267. _ | IFS | as_nl) ;; #(
  13268. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13269. *) { eval $ac_var=; unset $ac_var;} ;;
  13270. esac ;;
  13271. esac
  13272. done
  13273. (set) 2>&1 |
  13274. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13275. *${as_nl}ac_space=\ *)
  13276. # `set' does not quote correctly, so add quotes: double-quote
  13277. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13278. sed -n \
  13279. "s/'/'\\\\''/g;
  13280. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13281. ;; #(
  13282. *)
  13283. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13284. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13285. ;;
  13286. esac |
  13287. sort
  13288. ) |
  13289. sed '
  13290. /^ac_cv_env_/b end
  13291. t clear
  13292. :clear
  13293. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13294. t end
  13295. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13296. :end' >>confcache
  13297. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13298. if test -w "$cache_file"; then
  13299. test "x$cache_file" != "x/dev/null" &&
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13301. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13302. cat confcache >$cache_file
  13303. else
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13305. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13306. fi
  13307. fi
  13308. rm -f confcache
  13309. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13310. # Let make expand exec_prefix.
  13311. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13312. DEFS=-DHAVE_CONFIG_H
  13313. ac_libobjs=
  13314. ac_ltlibobjs=
  13315. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13316. # 1. Remove the extension, and $U if already installed.
  13317. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13318. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13319. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13320. # will be set to the directory where LIBOBJS objects are built.
  13321. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13322. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13323. done
  13324. LIBOBJS=$ac_libobjs
  13325. LTLIBOBJS=$ac_ltlibobjs
  13326. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13327. as_fn_error "conditional \"AMDEP\" was never defined.
  13328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13329. fi
  13330. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13331. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13333. fi
  13334. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13335. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13337. fi
  13338. if test -n "$EXEEXT"; then
  13339. am__EXEEXT_TRUE=
  13340. am__EXEEXT_FALSE='#'
  13341. else
  13342. am__EXEEXT_TRUE='#'
  13343. am__EXEEXT_FALSE=
  13344. fi
  13345. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  13346. as_fn_error "conditional \"DEBUG\" was never defined.
  13347. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13348. fi
  13349. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  13350. as_fn_error "conditional \"TCL\" was never defined.
  13351. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13352. fi
  13353. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  13354. as_fn_error "conditional \"LUBHEAP\" was never defined.
  13355. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13356. fi
  13357. : ${CONFIG_STATUS=./config.status}
  13358. ac_write_fail=0
  13359. ac_clean_files_save=$ac_clean_files
  13360. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13362. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13363. as_write_fail=0
  13364. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13365. #! $SHELL
  13366. # Generated by $as_me.
  13367. # Run this file to recreate the current configuration.
  13368. # Compiler output produced by configure, useful for debugging
  13369. # configure, is in config.log if it exists.
  13370. debug=false
  13371. ac_cs_recheck=false
  13372. ac_cs_silent=false
  13373. SHELL=\${CONFIG_SHELL-$SHELL}
  13374. export SHELL
  13375. _ASEOF
  13376. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13377. ## -------------------- ##
  13378. ## M4sh Initialization. ##
  13379. ## -------------------- ##
  13380. # Be more Bourne compatible
  13381. DUALCASE=1; export DUALCASE # for MKS sh
  13382. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13383. emulate sh
  13384. NULLCMD=:
  13385. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13386. # is contrary to our usage. Disable this feature.
  13387. alias -g '${1+"$@"}'='"$@"'
  13388. setopt NO_GLOB_SUBST
  13389. else
  13390. case `(set -o) 2>/dev/null` in #(
  13391. *posix*) :
  13392. set -o posix ;; #(
  13393. *) :
  13394. ;;
  13395. esac
  13396. fi
  13397. as_nl='
  13398. '
  13399. export as_nl
  13400. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13401. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13402. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13403. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13404. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13405. # but without wasting forks for bash or zsh.
  13406. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13407. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13408. as_echo='print -r --'
  13409. as_echo_n='print -rn --'
  13410. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13411. as_echo='printf %s\n'
  13412. as_echo_n='printf %s'
  13413. else
  13414. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13415. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13416. as_echo_n='/usr/ucb/echo -n'
  13417. else
  13418. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13419. as_echo_n_body='eval
  13420. arg=$1;
  13421. case $arg in #(
  13422. *"$as_nl"*)
  13423. expr "X$arg" : "X\\(.*\\)$as_nl";
  13424. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13425. esac;
  13426. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13427. '
  13428. export as_echo_n_body
  13429. as_echo_n='sh -c $as_echo_n_body as_echo'
  13430. fi
  13431. export as_echo_body
  13432. as_echo='sh -c $as_echo_body as_echo'
  13433. fi
  13434. # The user is always right.
  13435. if test "${PATH_SEPARATOR+set}" != set; then
  13436. PATH_SEPARATOR=:
  13437. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13438. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13439. PATH_SEPARATOR=';'
  13440. }
  13441. fi
  13442. # IFS
  13443. # We need space, tab and new line, in precisely that order. Quoting is
  13444. # there to prevent editors from complaining about space-tab.
  13445. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13446. # splitting by setting IFS to empty value.)
  13447. IFS=" "" $as_nl"
  13448. # Find who we are. Look in the path if we contain no directory separator.
  13449. case $0 in #((
  13450. *[\\/]* ) as_myself=$0 ;;
  13451. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13452. for as_dir in $PATH
  13453. do
  13454. IFS=$as_save_IFS
  13455. test -z "$as_dir" && as_dir=.
  13456. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13457. done
  13458. IFS=$as_save_IFS
  13459. ;;
  13460. esac
  13461. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13462. # in which case we are not to be found in the path.
  13463. if test "x$as_myself" = x; then
  13464. as_myself=$0
  13465. fi
  13466. if test ! -f "$as_myself"; then
  13467. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13468. exit 1
  13469. fi
  13470. # Unset variables that we do not need and which cause bugs (e.g. in
  13471. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13472. # suppresses any "Segmentation fault" message there. '((' could
  13473. # trigger a bug in pdksh 5.2.14.
  13474. for as_var in BASH_ENV ENV MAIL MAILPATH
  13475. do eval test x\${$as_var+set} = xset \
  13476. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13477. done
  13478. PS1='$ '
  13479. PS2='> '
  13480. PS4='+ '
  13481. # NLS nuisances.
  13482. LC_ALL=C
  13483. export LC_ALL
  13484. LANGUAGE=C
  13485. export LANGUAGE
  13486. # CDPATH.
  13487. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13488. # as_fn_error ERROR [LINENO LOG_FD]
  13489. # ---------------------------------
  13490. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13491. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13492. # script with status $?, using 1 if that was 0.
  13493. as_fn_error ()
  13494. {
  13495. as_status=$?; test $as_status -eq 0 && as_status=1
  13496. if test "$3"; then
  13497. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13498. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13499. fi
  13500. $as_echo "$as_me: error: $1" >&2
  13501. as_fn_exit $as_status
  13502. } # as_fn_error
  13503. # as_fn_set_status STATUS
  13504. # -----------------------
  13505. # Set $? to STATUS, without forking.
  13506. as_fn_set_status ()
  13507. {
  13508. return $1
  13509. } # as_fn_set_status
  13510. # as_fn_exit STATUS
  13511. # -----------------
  13512. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13513. as_fn_exit ()
  13514. {
  13515. set +e
  13516. as_fn_set_status $1
  13517. exit $1
  13518. } # as_fn_exit
  13519. # as_fn_unset VAR
  13520. # ---------------
  13521. # Portably unset VAR.
  13522. as_fn_unset ()
  13523. {
  13524. { eval $1=; unset $1;}
  13525. }
  13526. as_unset=as_fn_unset
  13527. # as_fn_append VAR VALUE
  13528. # ----------------------
  13529. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13530. # advantage of any shell optimizations that allow amortized linear growth over
  13531. # repeated appends, instead of the typical quadratic growth present in naive
  13532. # implementations.
  13533. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13534. eval 'as_fn_append ()
  13535. {
  13536. eval $1+=\$2
  13537. }'
  13538. else
  13539. as_fn_append ()
  13540. {
  13541. eval $1=\$$1\$2
  13542. }
  13543. fi # as_fn_append
  13544. # as_fn_arith ARG...
  13545. # ------------------
  13546. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13547. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13548. # must be portable across $(()) and expr.
  13549. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13550. eval 'as_fn_arith ()
  13551. {
  13552. as_val=$(( $* ))
  13553. }'
  13554. else
  13555. as_fn_arith ()
  13556. {
  13557. as_val=`expr "$@" || test $? -eq 1`
  13558. }
  13559. fi # as_fn_arith
  13560. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13561. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13562. as_expr=expr
  13563. else
  13564. as_expr=false
  13565. fi
  13566. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13567. as_basename=basename
  13568. else
  13569. as_basename=false
  13570. fi
  13571. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13572. as_dirname=dirname
  13573. else
  13574. as_dirname=false
  13575. fi
  13576. as_me=`$as_basename -- "$0" ||
  13577. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13578. X"$0" : 'X\(//\)$' \| \
  13579. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13580. $as_echo X/"$0" |
  13581. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13582. s//\1/
  13583. q
  13584. }
  13585. /^X\/\(\/\/\)$/{
  13586. s//\1/
  13587. q
  13588. }
  13589. /^X\/\(\/\).*/{
  13590. s//\1/
  13591. q
  13592. }
  13593. s/.*/./; q'`
  13594. # Avoid depending upon Character Ranges.
  13595. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13596. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13597. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13598. as_cr_digits='0123456789'
  13599. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13600. ECHO_C= ECHO_N= ECHO_T=
  13601. case `echo -n x` in #(((((
  13602. -n*)
  13603. case `echo 'xy\c'` in
  13604. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13605. xy) ECHO_C='\c';;
  13606. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13607. ECHO_T=' ';;
  13608. esac;;
  13609. *)
  13610. ECHO_N='-n';;
  13611. esac
  13612. rm -f conf$$ conf$$.exe conf$$.file
  13613. if test -d conf$$.dir; then
  13614. rm -f conf$$.dir/conf$$.file
  13615. else
  13616. rm -f conf$$.dir
  13617. mkdir conf$$.dir 2>/dev/null
  13618. fi
  13619. if (echo >conf$$.file) 2>/dev/null; then
  13620. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13621. as_ln_s='ln -s'
  13622. # ... but there are two gotchas:
  13623. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13624. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13625. # In both cases, we have to default to `cp -p'.
  13626. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13627. as_ln_s='cp -p'
  13628. elif ln conf$$.file conf$$ 2>/dev/null; then
  13629. as_ln_s=ln
  13630. else
  13631. as_ln_s='cp -p'
  13632. fi
  13633. else
  13634. as_ln_s='cp -p'
  13635. fi
  13636. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13637. rmdir conf$$.dir 2>/dev/null
  13638. # as_fn_mkdir_p
  13639. # -------------
  13640. # Create "$as_dir" as a directory, including parents if necessary.
  13641. as_fn_mkdir_p ()
  13642. {
  13643. case $as_dir in #(
  13644. -*) as_dir=./$as_dir;;
  13645. esac
  13646. test -d "$as_dir" || eval $as_mkdir_p || {
  13647. as_dirs=
  13648. while :; do
  13649. case $as_dir in #(
  13650. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13651. *) as_qdir=$as_dir;;
  13652. esac
  13653. as_dirs="'$as_qdir' $as_dirs"
  13654. as_dir=`$as_dirname -- "$as_dir" ||
  13655. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13656. X"$as_dir" : 'X\(//\)[^/]' \| \
  13657. X"$as_dir" : 'X\(//\)$' \| \
  13658. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13659. $as_echo X"$as_dir" |
  13660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13661. s//\1/
  13662. q
  13663. }
  13664. /^X\(\/\/\)[^/].*/{
  13665. s//\1/
  13666. q
  13667. }
  13668. /^X\(\/\/\)$/{
  13669. s//\1/
  13670. q
  13671. }
  13672. /^X\(\/\).*/{
  13673. s//\1/
  13674. q
  13675. }
  13676. s/.*/./; q'`
  13677. test -d "$as_dir" && break
  13678. done
  13679. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13680. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13681. } # as_fn_mkdir_p
  13682. if mkdir -p . 2>/dev/null; then
  13683. as_mkdir_p='mkdir -p "$as_dir"'
  13684. else
  13685. test -d ./-p && rmdir ./-p
  13686. as_mkdir_p=false
  13687. fi
  13688. if test -x / >/dev/null 2>&1; then
  13689. as_test_x='test -x'
  13690. else
  13691. if ls -dL / >/dev/null 2>&1; then
  13692. as_ls_L_option=L
  13693. else
  13694. as_ls_L_option=
  13695. fi
  13696. as_test_x='
  13697. eval sh -c '\''
  13698. if test -d "$1"; then
  13699. test -d "$1/.";
  13700. else
  13701. case $1 in #(
  13702. -*)set "./$1";;
  13703. esac;
  13704. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13705. ???[sx]*):;;*)false;;esac;fi
  13706. '\'' sh
  13707. '
  13708. fi
  13709. as_executable_p=$as_test_x
  13710. # Sed expression to map a string onto a valid CPP name.
  13711. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13712. # Sed expression to map a string onto a valid variable name.
  13713. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13714. exec 6>&1
  13715. ## ----------------------------------- ##
  13716. ## Main body of $CONFIG_STATUS script. ##
  13717. ## ----------------------------------- ##
  13718. _ASEOF
  13719. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13720. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13721. # Save the log message, to keep $0 and so on meaningful, and to
  13722. # report actual input values of CONFIG_FILES etc. instead of their
  13723. # values after options handling.
  13724. ac_log="
  13725. This file was extended by clish $as_me 1.3.0, which was
  13726. generated by GNU Autoconf 2.64. Invocation command line was
  13727. CONFIG_FILES = $CONFIG_FILES
  13728. CONFIG_HEADERS = $CONFIG_HEADERS
  13729. CONFIG_LINKS = $CONFIG_LINKS
  13730. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13731. $ $0 $@
  13732. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13733. "
  13734. _ACEOF
  13735. case $ac_config_files in *"
  13736. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13737. esac
  13738. case $ac_config_headers in *"
  13739. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13740. esac
  13741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13742. # Files that config.status was made for.
  13743. config_files="$ac_config_files"
  13744. config_headers="$ac_config_headers"
  13745. config_commands="$ac_config_commands"
  13746. _ACEOF
  13747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13748. ac_cs_usage="\
  13749. \`$as_me' instantiates files and other configuration actions
  13750. from templates according to the current configuration. Unless the files
  13751. and actions are specified as TAGs, all are instantiated by default.
  13752. Usage: $0 [OPTION]... [TAG]...
  13753. -h, --help print this help, then exit
  13754. -V, --version print version number and configuration settings, then exit
  13755. -q, --quiet, --silent
  13756. do not print progress messages
  13757. -d, --debug don't remove temporary files
  13758. --recheck update $as_me by reconfiguring in the same conditions
  13759. --file=FILE[:TEMPLATE]
  13760. instantiate the configuration file FILE
  13761. --header=FILE[:TEMPLATE]
  13762. instantiate the configuration header FILE
  13763. Configuration files:
  13764. $config_files
  13765. Configuration headers:
  13766. $config_headers
  13767. Configuration commands:
  13768. $config_commands
  13769. Report bugs to <serj.kalichev at gmail dot com>."
  13770. _ACEOF
  13771. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13772. ac_cs_version="\\
  13773. clish config.status 1.3.0
  13774. configured by $0, generated by GNU Autoconf 2.64,
  13775. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13776. Copyright (C) 2009 Free Software Foundation, Inc.
  13777. This config.status script is free software; the Free Software Foundation
  13778. gives unlimited permission to copy, distribute and modify it."
  13779. ac_pwd='$ac_pwd'
  13780. srcdir='$srcdir'
  13781. INSTALL='$INSTALL'
  13782. MKDIR_P='$MKDIR_P'
  13783. AWK='$AWK'
  13784. test -n "\$AWK" || AWK=awk
  13785. _ACEOF
  13786. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13787. # The default lists apply if the user does not specify any file.
  13788. ac_need_defaults=:
  13789. while test $# != 0
  13790. do
  13791. case $1 in
  13792. --*=*)
  13793. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13794. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13795. ac_shift=:
  13796. ;;
  13797. *)
  13798. ac_option=$1
  13799. ac_optarg=$2
  13800. ac_shift=shift
  13801. ;;
  13802. esac
  13803. case $ac_option in
  13804. # Handling of the options.
  13805. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13806. ac_cs_recheck=: ;;
  13807. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13808. $as_echo "$ac_cs_version"; exit ;;
  13809. --debug | --debu | --deb | --de | --d | -d )
  13810. debug=: ;;
  13811. --file | --fil | --fi | --f )
  13812. $ac_shift
  13813. case $ac_optarg in
  13814. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13815. esac
  13816. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13817. ac_need_defaults=false;;
  13818. --header | --heade | --head | --hea )
  13819. $ac_shift
  13820. case $ac_optarg in
  13821. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13822. esac
  13823. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13824. ac_need_defaults=false;;
  13825. --he | --h)
  13826. # Conflict between --help and --header
  13827. as_fn_error "ambiguous option: \`$1'
  13828. Try \`$0 --help' for more information.";;
  13829. --help | --hel | -h )
  13830. $as_echo "$ac_cs_usage"; exit ;;
  13831. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13832. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13833. ac_cs_silent=: ;;
  13834. # This is an error.
  13835. -*) as_fn_error "unrecognized option: \`$1'
  13836. Try \`$0 --help' for more information." ;;
  13837. *) as_fn_append ac_config_targets " $1"
  13838. ac_need_defaults=false ;;
  13839. esac
  13840. shift
  13841. done
  13842. ac_configure_extra_args=
  13843. if $ac_cs_silent; then
  13844. exec 6>/dev/null
  13845. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13846. fi
  13847. _ACEOF
  13848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13849. if \$ac_cs_recheck; then
  13850. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13851. shift
  13852. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13853. CONFIG_SHELL='$SHELL'
  13854. export CONFIG_SHELL
  13855. exec "\$@"
  13856. fi
  13857. _ACEOF
  13858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13859. exec 5>>config.log
  13860. {
  13861. echo
  13862. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13863. ## Running $as_me. ##
  13864. _ASBOX
  13865. $as_echo "$ac_log"
  13866. } >&5
  13867. _ACEOF
  13868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13869. #
  13870. # INIT-COMMANDS
  13871. #
  13872. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13873. # if CDPATH is set.
  13874. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13875. sed_quote_subst='$sed_quote_subst'
  13876. double_quote_subst='$double_quote_subst'
  13877. delay_variable_subst='$delay_variable_subst'
  13878. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13879. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13880. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13881. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13882. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13883. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13884. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13885. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13886. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13887. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13888. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13889. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13890. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13891. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13892. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13893. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13894. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13895. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13896. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13897. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13898. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13899. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13900. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13901. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13902. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13903. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13904. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13905. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13906. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13907. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13908. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13909. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13910. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13911. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13912. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13913. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13914. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13915. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13916. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13917. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13918. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13919. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13920. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13921. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13922. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13923. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13924. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13925. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13926. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13927. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13928. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13929. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13930. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13931. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13932. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13933. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13934. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13935. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13936. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13937. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13938. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13939. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13940. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13941. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13942. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13943. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13944. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13945. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13946. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13947. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13948. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13949. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13950. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13951. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13952. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13953. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13954. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13955. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13956. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13957. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13958. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13959. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13960. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13961. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13962. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13963. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13964. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13965. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13966. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13967. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13968. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13969. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13970. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13971. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13972. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13973. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13974. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13975. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13976. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13977. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13978. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13979. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13980. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13981. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13982. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13983. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13984. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13985. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13986. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13987. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13988. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13989. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13990. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13991. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13992. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13993. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13994. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13995. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13996. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13997. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13998. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13999. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14000. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14001. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14002. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14003. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14004. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14005. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14006. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14007. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14008. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14009. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14010. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14011. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14012. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14013. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14014. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14015. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14016. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14017. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14018. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14019. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14020. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14021. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14022. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14023. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14024. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14025. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14026. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14027. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14028. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14029. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14030. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14031. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14032. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14033. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14034. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14035. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14036. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14037. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14038. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14039. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14040. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14041. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14042. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14043. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14044. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14045. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14046. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14047. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14048. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14049. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14050. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14051. LTCC='$LTCC'
  14052. LTCFLAGS='$LTCFLAGS'
  14053. compiler='$compiler_DEFAULT'
  14054. # Quote evaled strings.
  14055. for var in SED \
  14056. GREP \
  14057. EGREP \
  14058. FGREP \
  14059. LD \
  14060. NM \
  14061. LN_S \
  14062. lt_SP2NL \
  14063. lt_NL2SP \
  14064. reload_flag \
  14065. deplibs_check_method \
  14066. file_magic_cmd \
  14067. AR \
  14068. AR_FLAGS \
  14069. STRIP \
  14070. RANLIB \
  14071. CC \
  14072. CFLAGS \
  14073. compiler \
  14074. lt_cv_sys_global_symbol_pipe \
  14075. lt_cv_sys_global_symbol_to_cdecl \
  14076. lt_cv_sys_global_symbol_to_c_name_address \
  14077. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14078. SHELL \
  14079. ECHO \
  14080. lt_prog_compiler_no_builtin_flag \
  14081. lt_prog_compiler_wl \
  14082. lt_prog_compiler_pic \
  14083. lt_prog_compiler_static \
  14084. lt_cv_prog_compiler_c_o \
  14085. need_locks \
  14086. DSYMUTIL \
  14087. NMEDIT \
  14088. LIPO \
  14089. OTOOL \
  14090. OTOOL64 \
  14091. shrext_cmds \
  14092. export_dynamic_flag_spec \
  14093. whole_archive_flag_spec \
  14094. compiler_needs_object \
  14095. with_gnu_ld \
  14096. allow_undefined_flag \
  14097. no_undefined_flag \
  14098. hardcode_libdir_flag_spec \
  14099. hardcode_libdir_flag_spec_ld \
  14100. hardcode_libdir_separator \
  14101. fix_srcfile_path \
  14102. exclude_expsyms \
  14103. include_expsyms \
  14104. file_list_spec \
  14105. variables_saved_for_relink \
  14106. libname_spec \
  14107. library_names_spec \
  14108. soname_spec \
  14109. finish_eval \
  14110. old_striplib \
  14111. striplib \
  14112. compiler_lib_search_dirs \
  14113. predep_objects \
  14114. postdep_objects \
  14115. predeps \
  14116. postdeps \
  14117. compiler_lib_search_path \
  14118. LD_CXX \
  14119. compiler_CXX \
  14120. lt_prog_compiler_no_builtin_flag_CXX \
  14121. lt_prog_compiler_wl_CXX \
  14122. lt_prog_compiler_pic_CXX \
  14123. lt_prog_compiler_static_CXX \
  14124. lt_cv_prog_compiler_c_o_CXX \
  14125. export_dynamic_flag_spec_CXX \
  14126. whole_archive_flag_spec_CXX \
  14127. compiler_needs_object_CXX \
  14128. with_gnu_ld_CXX \
  14129. allow_undefined_flag_CXX \
  14130. no_undefined_flag_CXX \
  14131. hardcode_libdir_flag_spec_CXX \
  14132. hardcode_libdir_flag_spec_ld_CXX \
  14133. hardcode_libdir_separator_CXX \
  14134. fix_srcfile_path_CXX \
  14135. exclude_expsyms_CXX \
  14136. include_expsyms_CXX \
  14137. file_list_spec_CXX \
  14138. compiler_lib_search_dirs_CXX \
  14139. predep_objects_CXX \
  14140. postdep_objects_CXX \
  14141. predeps_CXX \
  14142. postdeps_CXX \
  14143. compiler_lib_search_path_CXX; do
  14144. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14145. *[\\\\\\\`\\"\\\$]*)
  14146. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14147. ;;
  14148. *)
  14149. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14150. ;;
  14151. esac
  14152. done
  14153. # Double-quote double-evaled strings.
  14154. for var in reload_cmds \
  14155. old_postinstall_cmds \
  14156. old_postuninstall_cmds \
  14157. old_archive_cmds \
  14158. extract_expsyms_cmds \
  14159. old_archive_from_new_cmds \
  14160. old_archive_from_expsyms_cmds \
  14161. archive_cmds \
  14162. archive_expsym_cmds \
  14163. module_cmds \
  14164. module_expsym_cmds \
  14165. export_symbols_cmds \
  14166. prelink_cmds \
  14167. postinstall_cmds \
  14168. postuninstall_cmds \
  14169. finish_cmds \
  14170. sys_lib_search_path_spec \
  14171. sys_lib_dlsearch_path_spec \
  14172. old_archive_cmds_CXX \
  14173. old_archive_from_new_cmds_CXX \
  14174. old_archive_from_expsyms_cmds_CXX \
  14175. archive_cmds_CXX \
  14176. archive_expsym_cmds_CXX \
  14177. module_cmds_CXX \
  14178. module_expsym_cmds_CXX \
  14179. export_symbols_cmds_CXX \
  14180. prelink_cmds_CXX; do
  14181. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14182. *[\\\\\\\`\\"\\\$]*)
  14183. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14184. ;;
  14185. *)
  14186. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14187. ;;
  14188. esac
  14189. done
  14190. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14191. case \$lt_ECHO in
  14192. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14193. ;;
  14194. esac
  14195. ac_aux_dir='$ac_aux_dir'
  14196. xsi_shell='$xsi_shell'
  14197. lt_shell_append='$lt_shell_append'
  14198. # See if we are running on zsh, and set the options which allow our
  14199. # commands through without removal of \ escapes INIT.
  14200. if test -n "\${ZSH_VERSION+set}" ; then
  14201. setopt NO_GLOB_SUBST
  14202. fi
  14203. PACKAGE='$PACKAGE'
  14204. VERSION='$VERSION'
  14205. TIMESTAMP='$TIMESTAMP'
  14206. RM='$RM'
  14207. ofile='$ofile'
  14208. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14211. # Handling of arguments.
  14212. for ac_config_target in $ac_config_targets
  14213. do
  14214. case $ac_config_target in
  14215. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14216. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14217. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14218. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14219. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14220. esac
  14221. done
  14222. # If the user did not use the arguments to specify the items to instantiate,
  14223. # then the envvar interface is used. Set only those that are not.
  14224. # We use the long form for the default assignment because of an extremely
  14225. # bizarre bug on SunOS 4.1.3.
  14226. if $ac_need_defaults; then
  14227. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14228. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14229. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14230. fi
  14231. # Have a temporary directory for convenience. Make it in the build tree
  14232. # simply because there is no reason against having it here, and in addition,
  14233. # creating and moving files from /tmp can sometimes cause problems.
  14234. # Hook for its removal unless debugging.
  14235. # Note that there is a small window in which the directory will not be cleaned:
  14236. # after its creation but before its name has been assigned to `$tmp'.
  14237. $debug ||
  14238. {
  14239. tmp=
  14240. trap 'exit_status=$?
  14241. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14242. ' 0
  14243. trap 'as_fn_exit 1' 1 2 13 15
  14244. }
  14245. # Create a (secure) tmp directory for tmp files.
  14246. {
  14247. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14248. test -n "$tmp" && test -d "$tmp"
  14249. } ||
  14250. {
  14251. tmp=./conf$$-$RANDOM
  14252. (umask 077 && mkdir "$tmp")
  14253. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14254. # Set up the scripts for CONFIG_FILES section.
  14255. # No need to generate them if there are no CONFIG_FILES.
  14256. # This happens for instance with `./config.status config.h'.
  14257. if test -n "$CONFIG_FILES"; then
  14258. ac_cr=`echo X | tr X '\015'`
  14259. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14260. # But we know of no other shell where ac_cr would be empty at this
  14261. # point, so we can use a bashism as a fallback.
  14262. if test "x$ac_cr" = x; then
  14263. eval ac_cr=\$\'\\r\'
  14264. fi
  14265. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14266. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14267. ac_cs_awk_cr='\r'
  14268. else
  14269. ac_cs_awk_cr=$ac_cr
  14270. fi
  14271. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14272. _ACEOF
  14273. {
  14274. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14275. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14276. echo "_ACEOF"
  14277. } >conf$$subs.sh ||
  14278. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14279. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14280. ac_delim='%!_!# '
  14281. for ac_last_try in false false false false false :; do
  14282. . ./conf$$subs.sh ||
  14283. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14284. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14285. if test $ac_delim_n = $ac_delim_num; then
  14286. break
  14287. elif $ac_last_try; then
  14288. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14289. else
  14290. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14291. fi
  14292. done
  14293. rm -f conf$$subs.sh
  14294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14295. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14296. _ACEOF
  14297. sed -n '
  14298. h
  14299. s/^/S["/; s/!.*/"]=/
  14300. p
  14301. g
  14302. s/^[^!]*!//
  14303. :repl
  14304. t repl
  14305. s/'"$ac_delim"'$//
  14306. t delim
  14307. :nl
  14308. h
  14309. s/\(.\{148\}\).*/\1/
  14310. t more1
  14311. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14312. p
  14313. n
  14314. b repl
  14315. :more1
  14316. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14317. p
  14318. g
  14319. s/.\{148\}//
  14320. t nl
  14321. :delim
  14322. h
  14323. s/\(.\{148\}\).*/\1/
  14324. t more2
  14325. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14326. p
  14327. b
  14328. :more2
  14329. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14330. p
  14331. g
  14332. s/.\{148\}//
  14333. t delim
  14334. ' <conf$$subs.awk | sed '
  14335. /^[^""]/{
  14336. N
  14337. s/\n//
  14338. }
  14339. ' >>$CONFIG_STATUS || ac_write_fail=1
  14340. rm -f conf$$subs.awk
  14341. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14342. _ACAWK
  14343. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14344. for (key in S) S_is_set[key] = 1
  14345. FS = ""
  14346. }
  14347. {
  14348. line = $ 0
  14349. nfields = split(line, field, "@")
  14350. substed = 0
  14351. len = length(field[1])
  14352. for (i = 2; i < nfields; i++) {
  14353. key = field[i]
  14354. keylen = length(key)
  14355. if (S_is_set[key]) {
  14356. value = S[key]
  14357. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14358. len += length(value) + length(field[++i])
  14359. substed = 1
  14360. } else
  14361. len += 1 + keylen
  14362. }
  14363. print line
  14364. }
  14365. _ACAWK
  14366. _ACEOF
  14367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14368. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14369. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14370. else
  14371. cat
  14372. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14373. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14374. _ACEOF
  14375. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14376. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14377. # trailing colons and then remove the whole line if VPATH becomes empty
  14378. # (actually we leave an empty line to preserve line numbers).
  14379. if test "x$srcdir" = x.; then
  14380. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14381. s/:*\$(srcdir):*/:/
  14382. s/:*\${srcdir}:*/:/
  14383. s/:*@srcdir@:*/:/
  14384. s/^\([^=]*=[ ]*\):*/\1/
  14385. s/:*$//
  14386. s/^[^=]*=[ ]*$//
  14387. }'
  14388. fi
  14389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14390. fi # test -n "$CONFIG_FILES"
  14391. # Set up the scripts for CONFIG_HEADERS section.
  14392. # No need to generate them if there are no CONFIG_HEADERS.
  14393. # This happens for instance with `./config.status Makefile'.
  14394. if test -n "$CONFIG_HEADERS"; then
  14395. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14396. BEGIN {
  14397. _ACEOF
  14398. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14399. # here-document in config.status, that substitutes the proper values into
  14400. # config.h.in to produce config.h.
  14401. # Create a delimiter string that does not exist in confdefs.h, to ease
  14402. # handling of long lines.
  14403. ac_delim='%!_!# '
  14404. for ac_last_try in false false :; do
  14405. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14406. if test -z "$ac_t"; then
  14407. break
  14408. elif $ac_last_try; then
  14409. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14410. else
  14411. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14412. fi
  14413. done
  14414. # For the awk script, D is an array of macro values keyed by name,
  14415. # likewise P contains macro parameters if any. Preserve backslash
  14416. # newline sequences.
  14417. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14418. sed -n '
  14419. s/.\{148\}/&'"$ac_delim"'/g
  14420. t rset
  14421. :rset
  14422. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14423. t def
  14424. d
  14425. :def
  14426. s/\\$//
  14427. t bsnl
  14428. s/["\\]/\\&/g
  14429. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14430. D["\1"]=" \3"/p
  14431. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14432. d
  14433. :bsnl
  14434. s/["\\]/\\&/g
  14435. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14436. D["\1"]=" \3\\\\\\n"\\/p
  14437. t cont
  14438. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14439. t cont
  14440. d
  14441. :cont
  14442. n
  14443. s/.\{148\}/&'"$ac_delim"'/g
  14444. t clear
  14445. :clear
  14446. s/\\$//
  14447. t bsnlc
  14448. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14449. d
  14450. :bsnlc
  14451. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14452. b cont
  14453. ' <confdefs.h | sed '
  14454. s/'"$ac_delim"'/"\\\
  14455. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14457. for (key in D) D_is_set[key] = 1
  14458. FS = ""
  14459. }
  14460. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14461. line = \$ 0
  14462. split(line, arg, " ")
  14463. if (arg[1] == "#") {
  14464. defundef = arg[2]
  14465. mac1 = arg[3]
  14466. } else {
  14467. defundef = substr(arg[1], 2)
  14468. mac1 = arg[2]
  14469. }
  14470. split(mac1, mac2, "(") #)
  14471. macro = mac2[1]
  14472. prefix = substr(line, 1, index(line, defundef) - 1)
  14473. if (D_is_set[macro]) {
  14474. # Preserve the white space surrounding the "#".
  14475. print prefix "define", macro P[macro] D[macro]
  14476. next
  14477. } else {
  14478. # Replace #undef with comments. This is necessary, for example,
  14479. # in the case of _POSIX_SOURCE, which is predefined and required
  14480. # on some systems where configure will not decide to define it.
  14481. if (defundef == "undef") {
  14482. print "/*", prefix defundef, macro, "*/"
  14483. next
  14484. }
  14485. }
  14486. }
  14487. { print }
  14488. _ACAWK
  14489. _ACEOF
  14490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14491. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14492. fi # test -n "$CONFIG_HEADERS"
  14493. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14494. shift
  14495. for ac_tag
  14496. do
  14497. case $ac_tag in
  14498. :[FHLC]) ac_mode=$ac_tag; continue;;
  14499. esac
  14500. case $ac_mode$ac_tag in
  14501. :[FHL]*:*);;
  14502. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14503. :[FH]-) ac_tag=-:-;;
  14504. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14505. esac
  14506. ac_save_IFS=$IFS
  14507. IFS=:
  14508. set x $ac_tag
  14509. IFS=$ac_save_IFS
  14510. shift
  14511. ac_file=$1
  14512. shift
  14513. case $ac_mode in
  14514. :L) ac_source=$1;;
  14515. :[FH])
  14516. ac_file_inputs=
  14517. for ac_f
  14518. do
  14519. case $ac_f in
  14520. -) ac_f="$tmp/stdin";;
  14521. *) # Look for the file first in the build tree, then in the source tree
  14522. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14523. # because $ac_f cannot contain `:'.
  14524. test -f "$ac_f" ||
  14525. case $ac_f in
  14526. [\\/$]*) false;;
  14527. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14528. esac ||
  14529. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14530. esac
  14531. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14532. as_fn_append ac_file_inputs " '$ac_f'"
  14533. done
  14534. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14535. # use $as_me), people would be surprised to read:
  14536. # /* config.h. Generated by config.status. */
  14537. configure_input='Generated from '`
  14538. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14539. `' by configure.'
  14540. if test x"$ac_file" != x-; then
  14541. configure_input="$ac_file. $configure_input"
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14543. $as_echo "$as_me: creating $ac_file" >&6;}
  14544. fi
  14545. # Neutralize special characters interpreted by sed in replacement strings.
  14546. case $configure_input in #(
  14547. *\&* | *\|* | *\\* )
  14548. ac_sed_conf_input=`$as_echo "$configure_input" |
  14549. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14550. *) ac_sed_conf_input=$configure_input;;
  14551. esac
  14552. case $ac_tag in
  14553. *:-:* | *:-) cat >"$tmp/stdin" \
  14554. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14555. esac
  14556. ;;
  14557. esac
  14558. ac_dir=`$as_dirname -- "$ac_file" ||
  14559. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14560. X"$ac_file" : 'X\(//\)[^/]' \| \
  14561. X"$ac_file" : 'X\(//\)$' \| \
  14562. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14563. $as_echo X"$ac_file" |
  14564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14565. s//\1/
  14566. q
  14567. }
  14568. /^X\(\/\/\)[^/].*/{
  14569. s//\1/
  14570. q
  14571. }
  14572. /^X\(\/\/\)$/{
  14573. s//\1/
  14574. q
  14575. }
  14576. /^X\(\/\).*/{
  14577. s//\1/
  14578. q
  14579. }
  14580. s/.*/./; q'`
  14581. as_dir="$ac_dir"; as_fn_mkdir_p
  14582. ac_builddir=.
  14583. case "$ac_dir" in
  14584. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14585. *)
  14586. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14587. # A ".." for each directory in $ac_dir_suffix.
  14588. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14589. case $ac_top_builddir_sub in
  14590. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14591. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14592. esac ;;
  14593. esac
  14594. ac_abs_top_builddir=$ac_pwd
  14595. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14596. # for backward compatibility:
  14597. ac_top_builddir=$ac_top_build_prefix
  14598. case $srcdir in
  14599. .) # We are building in place.
  14600. ac_srcdir=.
  14601. ac_top_srcdir=$ac_top_builddir_sub
  14602. ac_abs_top_srcdir=$ac_pwd ;;
  14603. [\\/]* | ?:[\\/]* ) # Absolute name.
  14604. ac_srcdir=$srcdir$ac_dir_suffix;
  14605. ac_top_srcdir=$srcdir
  14606. ac_abs_top_srcdir=$srcdir ;;
  14607. *) # Relative name.
  14608. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14609. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14610. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14611. esac
  14612. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14613. case $ac_mode in
  14614. :F)
  14615. #
  14616. # CONFIG_FILE
  14617. #
  14618. case $INSTALL in
  14619. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14620. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14621. esac
  14622. ac_MKDIR_P=$MKDIR_P
  14623. case $MKDIR_P in
  14624. [\\/$]* | ?:[\\/]* ) ;;
  14625. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14626. esac
  14627. _ACEOF
  14628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14629. # If the template does not know about datarootdir, expand it.
  14630. # FIXME: This hack should be removed a few years after 2.60.
  14631. ac_datarootdir_hack=; ac_datarootdir_seen=
  14632. ac_sed_dataroot='
  14633. /datarootdir/ {
  14634. p
  14635. q
  14636. }
  14637. /@datadir@/p
  14638. /@docdir@/p
  14639. /@infodir@/p
  14640. /@localedir@/p
  14641. /@mandir@/p'
  14642. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14643. *datarootdir*) ac_datarootdir_seen=yes;;
  14644. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14646. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14647. _ACEOF
  14648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14649. ac_datarootdir_hack='
  14650. s&@datadir@&$datadir&g
  14651. s&@docdir@&$docdir&g
  14652. s&@infodir@&$infodir&g
  14653. s&@localedir@&$localedir&g
  14654. s&@mandir@&$mandir&g
  14655. s&\\\${datarootdir}&$datarootdir&g' ;;
  14656. esac
  14657. _ACEOF
  14658. # Neutralize VPATH when `$srcdir' = `.'.
  14659. # Shell code in configure.ac might set extrasub.
  14660. # FIXME: do we really want to maintain this feature?
  14661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14662. ac_sed_extra="$ac_vpsub
  14663. $extrasub
  14664. _ACEOF
  14665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14666. :t
  14667. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14668. s|@configure_input@|$ac_sed_conf_input|;t t
  14669. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14670. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14671. s&@srcdir@&$ac_srcdir&;t t
  14672. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14673. s&@top_srcdir@&$ac_top_srcdir&;t t
  14674. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14675. s&@builddir@&$ac_builddir&;t t
  14676. s&@abs_builddir@&$ac_abs_builddir&;t t
  14677. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14678. s&@INSTALL@&$ac_INSTALL&;t t
  14679. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14680. $ac_datarootdir_hack
  14681. "
  14682. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14683. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14684. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14685. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14686. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14688. which seems to be undefined. Please make sure it is defined." >&5
  14689. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14690. which seems to be undefined. Please make sure it is defined." >&2;}
  14691. rm -f "$tmp/stdin"
  14692. case $ac_file in
  14693. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14694. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14695. esac \
  14696. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14697. ;;
  14698. :H)
  14699. #
  14700. # CONFIG_HEADER
  14701. #
  14702. if test x"$ac_file" != x-; then
  14703. {
  14704. $as_echo "/* $configure_input */" \
  14705. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14706. } >"$tmp/config.h" \
  14707. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14708. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14710. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14711. else
  14712. rm -f "$ac_file"
  14713. mv "$tmp/config.h" "$ac_file" \
  14714. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14715. fi
  14716. else
  14717. $as_echo "/* $configure_input */" \
  14718. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14719. || as_fn_error "could not create -" "$LINENO" 5
  14720. fi
  14721. # Compute "$ac_file"'s index in $config_headers.
  14722. _am_arg="$ac_file"
  14723. _am_stamp_count=1
  14724. for _am_header in $config_headers :; do
  14725. case $_am_header in
  14726. $_am_arg | $_am_arg:* )
  14727. break ;;
  14728. * )
  14729. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14730. esac
  14731. done
  14732. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14733. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14734. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14735. X"$_am_arg" : 'X\(//\)$' \| \
  14736. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14737. $as_echo X"$_am_arg" |
  14738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14739. s//\1/
  14740. q
  14741. }
  14742. /^X\(\/\/\)[^/].*/{
  14743. s//\1/
  14744. q
  14745. }
  14746. /^X\(\/\/\)$/{
  14747. s//\1/
  14748. q
  14749. }
  14750. /^X\(\/\).*/{
  14751. s//\1/
  14752. q
  14753. }
  14754. s/.*/./; q'`/stamp-h$_am_stamp_count
  14755. ;;
  14756. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14757. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14758. ;;
  14759. esac
  14760. case $ac_file$ac_mode in
  14761. "libtool":C)
  14762. # See if we are running on zsh, and set the options which allow our
  14763. # commands through without removal of \ escapes.
  14764. if test -n "${ZSH_VERSION+set}" ; then
  14765. setopt NO_GLOB_SUBST
  14766. fi
  14767. cfgfile="${ofile}T"
  14768. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14769. $RM "$cfgfile"
  14770. cat <<_LT_EOF >> "$cfgfile"
  14771. #! $SHELL
  14772. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14773. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14774. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14775. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14776. #
  14777. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14778. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14779. # Written by Gordon Matzigkeit, 1996
  14780. #
  14781. # This file is part of GNU Libtool.
  14782. #
  14783. # GNU Libtool is free software; you can redistribute it and/or
  14784. # modify it under the terms of the GNU General Public License as
  14785. # published by the Free Software Foundation; either version 2 of
  14786. # the License, or (at your option) any later version.
  14787. #
  14788. # As a special exception to the GNU General Public License,
  14789. # if you distribute this file as part of a program or library that
  14790. # is built using GNU Libtool, you may include this file under the
  14791. # same distribution terms that you use for the rest of that program.
  14792. #
  14793. # GNU Libtool is distributed in the hope that it will be useful,
  14794. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14795. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14796. # GNU General Public License for more details.
  14797. #
  14798. # You should have received a copy of the GNU General Public License
  14799. # along with GNU Libtool; see the file COPYING. If not, a copy
  14800. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14801. # obtained by writing to the Free Software Foundation, Inc.,
  14802. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14803. # The names of the tagged configurations supported by this script.
  14804. available_tags="CXX "
  14805. # ### BEGIN LIBTOOL CONFIG
  14806. # Assembler program.
  14807. AS=$AS
  14808. # DLL creation program.
  14809. DLLTOOL=$DLLTOOL
  14810. # Object dumper program.
  14811. OBJDUMP=$OBJDUMP
  14812. # Which release of libtool.m4 was used?
  14813. macro_version=$macro_version
  14814. macro_revision=$macro_revision
  14815. # Whether or not to build shared libraries.
  14816. build_libtool_libs=$enable_shared
  14817. # Whether or not to build static libraries.
  14818. build_old_libs=$enable_static
  14819. # What type of objects to build.
  14820. pic_mode=$pic_mode
  14821. # Whether or not to optimize for fast installation.
  14822. fast_install=$enable_fast_install
  14823. # The host system.
  14824. host_alias=$host_alias
  14825. host=$host
  14826. host_os=$host_os
  14827. # The build system.
  14828. build_alias=$build_alias
  14829. build=$build
  14830. build_os=$build_os
  14831. # A sed program that does not truncate output.
  14832. SED=$lt_SED
  14833. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14834. Xsed="\$SED -e 1s/^X//"
  14835. # A grep program that handles long lines.
  14836. GREP=$lt_GREP
  14837. # An ERE matcher.
  14838. EGREP=$lt_EGREP
  14839. # A literal string matcher.
  14840. FGREP=$lt_FGREP
  14841. # A BSD- or MS-compatible name lister.
  14842. NM=$lt_NM
  14843. # Whether we need soft or hard links.
  14844. LN_S=$lt_LN_S
  14845. # What is the maximum length of a command?
  14846. max_cmd_len=$max_cmd_len
  14847. # Object file suffix (normally "o").
  14848. objext=$ac_objext
  14849. # Executable file suffix (normally "").
  14850. exeext=$exeext
  14851. # whether the shell understands "unset".
  14852. lt_unset=$lt_unset
  14853. # turn spaces into newlines.
  14854. SP2NL=$lt_lt_SP2NL
  14855. # turn newlines into spaces.
  14856. NL2SP=$lt_lt_NL2SP
  14857. # How to create reloadable object files.
  14858. reload_flag=$lt_reload_flag
  14859. reload_cmds=$lt_reload_cmds
  14860. # Method to check whether dependent libraries are shared objects.
  14861. deplibs_check_method=$lt_deplibs_check_method
  14862. # Command to use when deplibs_check_method == "file_magic".
  14863. file_magic_cmd=$lt_file_magic_cmd
  14864. # The archiver.
  14865. AR=$lt_AR
  14866. AR_FLAGS=$lt_AR_FLAGS
  14867. # A symbol stripping program.
  14868. STRIP=$lt_STRIP
  14869. # Commands used to install an old-style archive.
  14870. RANLIB=$lt_RANLIB
  14871. old_postinstall_cmds=$lt_old_postinstall_cmds
  14872. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14873. # A C compiler.
  14874. LTCC=$lt_CC
  14875. # LTCC compiler flags.
  14876. LTCFLAGS=$lt_CFLAGS
  14877. # Take the output of nm and produce a listing of raw symbols and C names.
  14878. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14879. # Transform the output of nm in a proper C declaration.
  14880. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14881. # Transform the output of nm in a C name address pair.
  14882. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14883. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14884. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14885. # The name of the directory that contains temporary libtool files.
  14886. objdir=$objdir
  14887. # Shell to use when invoking shell scripts.
  14888. SHELL=$lt_SHELL
  14889. # An echo program that does not interpret backslashes.
  14890. ECHO=$lt_ECHO
  14891. # Used to examine libraries when file_magic_cmd begins with "file".
  14892. MAGIC_CMD=$MAGIC_CMD
  14893. # Must we lock files when doing compilation?
  14894. need_locks=$lt_need_locks
  14895. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14896. DSYMUTIL=$lt_DSYMUTIL
  14897. # Tool to change global to local symbols on Mac OS X.
  14898. NMEDIT=$lt_NMEDIT
  14899. # Tool to manipulate fat objects and archives on Mac OS X.
  14900. LIPO=$lt_LIPO
  14901. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14902. OTOOL=$lt_OTOOL
  14903. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14904. OTOOL64=$lt_OTOOL64
  14905. # Old archive suffix (normally "a").
  14906. libext=$libext
  14907. # Shared library suffix (normally ".so").
  14908. shrext_cmds=$lt_shrext_cmds
  14909. # The commands to extract the exported symbol list from a shared archive.
  14910. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14911. # Variables whose values should be saved in libtool wrapper scripts and
  14912. # restored at link time.
  14913. variables_saved_for_relink=$lt_variables_saved_for_relink
  14914. # Do we need the "lib" prefix for modules?
  14915. need_lib_prefix=$need_lib_prefix
  14916. # Do we need a version for libraries?
  14917. need_version=$need_version
  14918. # Library versioning type.
  14919. version_type=$version_type
  14920. # Shared library runtime path variable.
  14921. runpath_var=$runpath_var
  14922. # Shared library path variable.
  14923. shlibpath_var=$shlibpath_var
  14924. # Is shlibpath searched before the hard-coded library search path?
  14925. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14926. # Format of library name prefix.
  14927. libname_spec=$lt_libname_spec
  14928. # List of archive names. First name is the real one, the rest are links.
  14929. # The last name is the one that the linker finds with -lNAME
  14930. library_names_spec=$lt_library_names_spec
  14931. # The coded name of the library, if different from the real name.
  14932. soname_spec=$lt_soname_spec
  14933. # Command to use after installation of a shared archive.
  14934. postinstall_cmds=$lt_postinstall_cmds
  14935. # Command to use after uninstallation of a shared archive.
  14936. postuninstall_cmds=$lt_postuninstall_cmds
  14937. # Commands used to finish a libtool library installation in a directory.
  14938. finish_cmds=$lt_finish_cmds
  14939. # As "finish_cmds", except a single script fragment to be evaled but
  14940. # not shown.
  14941. finish_eval=$lt_finish_eval
  14942. # Whether we should hardcode library paths into libraries.
  14943. hardcode_into_libs=$hardcode_into_libs
  14944. # Compile-time system search path for libraries.
  14945. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14946. # Run-time system search path for libraries.
  14947. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14948. # Whether dlopen is supported.
  14949. dlopen_support=$enable_dlopen
  14950. # Whether dlopen of programs is supported.
  14951. dlopen_self=$enable_dlopen_self
  14952. # Whether dlopen of statically linked programs is supported.
  14953. dlopen_self_static=$enable_dlopen_self_static
  14954. # Commands to strip libraries.
  14955. old_striplib=$lt_old_striplib
  14956. striplib=$lt_striplib
  14957. # The linker used to build libraries.
  14958. LD=$lt_LD
  14959. # Commands used to build an old-style archive.
  14960. old_archive_cmds=$lt_old_archive_cmds
  14961. # A language specific compiler.
  14962. CC=$lt_compiler
  14963. # Is the compiler the GNU compiler?
  14964. with_gcc=$GCC
  14965. # Compiler flag to turn off builtin functions.
  14966. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14967. # How to pass a linker flag through the compiler.
  14968. wl=$lt_lt_prog_compiler_wl
  14969. # Additional compiler flags for building library objects.
  14970. pic_flag=$lt_lt_prog_compiler_pic
  14971. # Compiler flag to prevent dynamic linking.
  14972. link_static_flag=$lt_lt_prog_compiler_static
  14973. # Does compiler simultaneously support -c and -o options?
  14974. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14975. # Whether or not to add -lc for building shared libraries.
  14976. build_libtool_need_lc=$archive_cmds_need_lc
  14977. # Whether or not to disallow shared libs when runtime libs are static.
  14978. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14979. # Compiler flag to allow reflexive dlopens.
  14980. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14981. # Compiler flag to generate shared objects directly from archives.
  14982. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14983. # Whether the compiler copes with passing no objects directly.
  14984. compiler_needs_object=$lt_compiler_needs_object
  14985. # Create an old-style archive from a shared archive.
  14986. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14987. # Create a temporary old-style archive to link instead of a shared archive.
  14988. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14989. # Commands used to build a shared archive.
  14990. archive_cmds=$lt_archive_cmds
  14991. archive_expsym_cmds=$lt_archive_expsym_cmds
  14992. # Commands used to build a loadable module if different from building
  14993. # a shared archive.
  14994. module_cmds=$lt_module_cmds
  14995. module_expsym_cmds=$lt_module_expsym_cmds
  14996. # Whether we are building with GNU ld or not.
  14997. with_gnu_ld=$lt_with_gnu_ld
  14998. # Flag that allows shared libraries with undefined symbols to be built.
  14999. allow_undefined_flag=$lt_allow_undefined_flag
  15000. # Flag that enforces no undefined symbols.
  15001. no_undefined_flag=$lt_no_undefined_flag
  15002. # Flag to hardcode \$libdir into a binary during linking.
  15003. # This must work even if \$libdir does not exist
  15004. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15005. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15006. # during linking. This must work even if \$libdir does not exist.
  15007. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15008. # Whether we need a single "-rpath" flag with a separated argument.
  15009. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15010. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15011. # DIR into the resulting binary.
  15012. hardcode_direct=$hardcode_direct
  15013. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15014. # DIR into the resulting binary and the resulting library dependency is
  15015. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15016. # library is relocated.
  15017. hardcode_direct_absolute=$hardcode_direct_absolute
  15018. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15019. # into the resulting binary.
  15020. hardcode_minus_L=$hardcode_minus_L
  15021. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15022. # into the resulting binary.
  15023. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15024. # Set to "yes" if building a shared library automatically hardcodes DIR
  15025. # into the library and all subsequent libraries and executables linked
  15026. # against it.
  15027. hardcode_automatic=$hardcode_automatic
  15028. # Set to yes if linker adds runtime paths of dependent libraries
  15029. # to runtime path list.
  15030. inherit_rpath=$inherit_rpath
  15031. # Whether libtool must link a program against all its dependency libraries.
  15032. link_all_deplibs=$link_all_deplibs
  15033. # Fix the shell variable \$srcfile for the compiler.
  15034. fix_srcfile_path=$lt_fix_srcfile_path
  15035. # Set to "yes" if exported symbols are required.
  15036. always_export_symbols=$always_export_symbols
  15037. # The commands to list exported symbols.
  15038. export_symbols_cmds=$lt_export_symbols_cmds
  15039. # Symbols that should not be listed in the preloaded symbols.
  15040. exclude_expsyms=$lt_exclude_expsyms
  15041. # Symbols that must always be exported.
  15042. include_expsyms=$lt_include_expsyms
  15043. # Commands necessary for linking programs (against libraries) with templates.
  15044. prelink_cmds=$lt_prelink_cmds
  15045. # Specify filename containing input files.
  15046. file_list_spec=$lt_file_list_spec
  15047. # How to hardcode a shared library path into an executable.
  15048. hardcode_action=$hardcode_action
  15049. # The directories searched by this compiler when creating a shared library.
  15050. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15051. # Dependencies to place before and after the objects being linked to
  15052. # create a shared library.
  15053. predep_objects=$lt_predep_objects
  15054. postdep_objects=$lt_postdep_objects
  15055. predeps=$lt_predeps
  15056. postdeps=$lt_postdeps
  15057. # The library search path used internally by the compiler when linking
  15058. # a shared library.
  15059. compiler_lib_search_path=$lt_compiler_lib_search_path
  15060. # ### END LIBTOOL CONFIG
  15061. _LT_EOF
  15062. case $host_os in
  15063. aix3*)
  15064. cat <<\_LT_EOF >> "$cfgfile"
  15065. # AIX sometimes has problems with the GCC collect2 program. For some
  15066. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15067. # vanish in a puff of smoke.
  15068. if test "X${COLLECT_NAMES+set}" != Xset; then
  15069. COLLECT_NAMES=
  15070. export COLLECT_NAMES
  15071. fi
  15072. _LT_EOF
  15073. ;;
  15074. esac
  15075. ltmain="$ac_aux_dir/ltmain.sh"
  15076. # We use sed instead of cat because bash on DJGPP gets confused if
  15077. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15078. # text mode, it properly converts lines to CR/LF. This bash problem
  15079. # is reportedly fixed, but why not run on old versions too?
  15080. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15081. || (rm -f "$cfgfile"; exit 1)
  15082. case $xsi_shell in
  15083. yes)
  15084. cat << \_LT_EOF >> "$cfgfile"
  15085. # func_dirname file append nondir_replacement
  15086. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15087. # otherwise set result to NONDIR_REPLACEMENT.
  15088. func_dirname ()
  15089. {
  15090. case ${1} in
  15091. */*) func_dirname_result="${1%/*}${2}" ;;
  15092. * ) func_dirname_result="${3}" ;;
  15093. esac
  15094. }
  15095. # func_basename file
  15096. func_basename ()
  15097. {
  15098. func_basename_result="${1##*/}"
  15099. }
  15100. # func_dirname_and_basename file append nondir_replacement
  15101. # perform func_basename and func_dirname in a single function
  15102. # call:
  15103. # dirname: Compute the dirname of FILE. If nonempty,
  15104. # add APPEND to the result, otherwise set result
  15105. # to NONDIR_REPLACEMENT.
  15106. # value returned in "$func_dirname_result"
  15107. # basename: Compute filename of FILE.
  15108. # value retuned in "$func_basename_result"
  15109. # Implementation must be kept synchronized with func_dirname
  15110. # and func_basename. For efficiency, we do not delegate to
  15111. # those functions but instead duplicate the functionality here.
  15112. func_dirname_and_basename ()
  15113. {
  15114. case ${1} in
  15115. */*) func_dirname_result="${1%/*}${2}" ;;
  15116. * ) func_dirname_result="${3}" ;;
  15117. esac
  15118. func_basename_result="${1##*/}"
  15119. }
  15120. # func_stripname prefix suffix name
  15121. # strip PREFIX and SUFFIX off of NAME.
  15122. # PREFIX and SUFFIX must not contain globbing or regex special
  15123. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15124. # dot (in which case that matches only a dot).
  15125. func_stripname ()
  15126. {
  15127. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15128. # positional parameters, so assign one to ordinary parameter first.
  15129. func_stripname_result=${3}
  15130. func_stripname_result=${func_stripname_result#"${1}"}
  15131. func_stripname_result=${func_stripname_result%"${2}"}
  15132. }
  15133. # func_opt_split
  15134. func_opt_split ()
  15135. {
  15136. func_opt_split_opt=${1%%=*}
  15137. func_opt_split_arg=${1#*=}
  15138. }
  15139. # func_lo2o object
  15140. func_lo2o ()
  15141. {
  15142. case ${1} in
  15143. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15144. *) func_lo2o_result=${1} ;;
  15145. esac
  15146. }
  15147. # func_xform libobj-or-source
  15148. func_xform ()
  15149. {
  15150. func_xform_result=${1%.*}.lo
  15151. }
  15152. # func_arith arithmetic-term...
  15153. func_arith ()
  15154. {
  15155. func_arith_result=$(( $* ))
  15156. }
  15157. # func_len string
  15158. # STRING may not start with a hyphen.
  15159. func_len ()
  15160. {
  15161. func_len_result=${#1}
  15162. }
  15163. _LT_EOF
  15164. ;;
  15165. *) # Bourne compatible functions.
  15166. cat << \_LT_EOF >> "$cfgfile"
  15167. # func_dirname file append nondir_replacement
  15168. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15169. # otherwise set result to NONDIR_REPLACEMENT.
  15170. func_dirname ()
  15171. {
  15172. # Extract subdirectory from the argument.
  15173. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15174. if test "X$func_dirname_result" = "X${1}"; then
  15175. func_dirname_result="${3}"
  15176. else
  15177. func_dirname_result="$func_dirname_result${2}"
  15178. fi
  15179. }
  15180. # func_basename file
  15181. func_basename ()
  15182. {
  15183. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15184. }
  15185. # func_stripname prefix suffix name
  15186. # strip PREFIX and SUFFIX off of NAME.
  15187. # PREFIX and SUFFIX must not contain globbing or regex special
  15188. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15189. # dot (in which case that matches only a dot).
  15190. # func_strip_suffix prefix name
  15191. func_stripname ()
  15192. {
  15193. case ${2} in
  15194. .*) func_stripname_result=`$ECHO "X${3}" \
  15195. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15196. *) func_stripname_result=`$ECHO "X${3}" \
  15197. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15198. esac
  15199. }
  15200. # sed scripts:
  15201. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15202. my_sed_long_arg='1s/^-[^=]*=//'
  15203. # func_opt_split
  15204. func_opt_split ()
  15205. {
  15206. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15207. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15208. }
  15209. # func_lo2o object
  15210. func_lo2o ()
  15211. {
  15212. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15213. }
  15214. # func_xform libobj-or-source
  15215. func_xform ()
  15216. {
  15217. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15218. }
  15219. # func_arith arithmetic-term...
  15220. func_arith ()
  15221. {
  15222. func_arith_result=`expr "$@"`
  15223. }
  15224. # func_len string
  15225. # STRING may not start with a hyphen.
  15226. func_len ()
  15227. {
  15228. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15229. }
  15230. _LT_EOF
  15231. esac
  15232. case $lt_shell_append in
  15233. yes)
  15234. cat << \_LT_EOF >> "$cfgfile"
  15235. # func_append var value
  15236. # Append VALUE to the end of shell variable VAR.
  15237. func_append ()
  15238. {
  15239. eval "$1+=\$2"
  15240. }
  15241. _LT_EOF
  15242. ;;
  15243. *)
  15244. cat << \_LT_EOF >> "$cfgfile"
  15245. # func_append var value
  15246. # Append VALUE to the end of shell variable VAR.
  15247. func_append ()
  15248. {
  15249. eval "$1=\$$1\$2"
  15250. }
  15251. _LT_EOF
  15252. ;;
  15253. esac
  15254. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15255. || (rm -f "$cfgfile"; exit 1)
  15256. mv -f "$cfgfile" "$ofile" ||
  15257. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15258. chmod +x "$ofile"
  15259. cat <<_LT_EOF >> "$ofile"
  15260. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15261. # The linker used to build libraries.
  15262. LD=$lt_LD_CXX
  15263. # Commands used to build an old-style archive.
  15264. old_archive_cmds=$lt_old_archive_cmds_CXX
  15265. # A language specific compiler.
  15266. CC=$lt_compiler_CXX
  15267. # Is the compiler the GNU compiler?
  15268. with_gcc=$GCC_CXX
  15269. # Compiler flag to turn off builtin functions.
  15270. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15271. # How to pass a linker flag through the compiler.
  15272. wl=$lt_lt_prog_compiler_wl_CXX
  15273. # Additional compiler flags for building library objects.
  15274. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15275. # Compiler flag to prevent dynamic linking.
  15276. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15277. # Does compiler simultaneously support -c and -o options?
  15278. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15279. # Whether or not to add -lc for building shared libraries.
  15280. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15281. # Whether or not to disallow shared libs when runtime libs are static.
  15282. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15283. # Compiler flag to allow reflexive dlopens.
  15284. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15285. # Compiler flag to generate shared objects directly from archives.
  15286. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15287. # Whether the compiler copes with passing no objects directly.
  15288. compiler_needs_object=$lt_compiler_needs_object_CXX
  15289. # Create an old-style archive from a shared archive.
  15290. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15291. # Create a temporary old-style archive to link instead of a shared archive.
  15292. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15293. # Commands used to build a shared archive.
  15294. archive_cmds=$lt_archive_cmds_CXX
  15295. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15296. # Commands used to build a loadable module if different from building
  15297. # a shared archive.
  15298. module_cmds=$lt_module_cmds_CXX
  15299. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15300. # Whether we are building with GNU ld or not.
  15301. with_gnu_ld=$lt_with_gnu_ld_CXX
  15302. # Flag that allows shared libraries with undefined symbols to be built.
  15303. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15304. # Flag that enforces no undefined symbols.
  15305. no_undefined_flag=$lt_no_undefined_flag_CXX
  15306. # Flag to hardcode \$libdir into a binary during linking.
  15307. # This must work even if \$libdir does not exist
  15308. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15309. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15310. # during linking. This must work even if \$libdir does not exist.
  15311. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15312. # Whether we need a single "-rpath" flag with a separated argument.
  15313. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15314. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15315. # DIR into the resulting binary.
  15316. hardcode_direct=$hardcode_direct_CXX
  15317. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15318. # DIR into the resulting binary and the resulting library dependency is
  15319. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15320. # library is relocated.
  15321. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15322. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15323. # into the resulting binary.
  15324. hardcode_minus_L=$hardcode_minus_L_CXX
  15325. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15326. # into the resulting binary.
  15327. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15328. # Set to "yes" if building a shared library automatically hardcodes DIR
  15329. # into the library and all subsequent libraries and executables linked
  15330. # against it.
  15331. hardcode_automatic=$hardcode_automatic_CXX
  15332. # Set to yes if linker adds runtime paths of dependent libraries
  15333. # to runtime path list.
  15334. inherit_rpath=$inherit_rpath_CXX
  15335. # Whether libtool must link a program against all its dependency libraries.
  15336. link_all_deplibs=$link_all_deplibs_CXX
  15337. # Fix the shell variable \$srcfile for the compiler.
  15338. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15339. # Set to "yes" if exported symbols are required.
  15340. always_export_symbols=$always_export_symbols_CXX
  15341. # The commands to list exported symbols.
  15342. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15343. # Symbols that should not be listed in the preloaded symbols.
  15344. exclude_expsyms=$lt_exclude_expsyms_CXX
  15345. # Symbols that must always be exported.
  15346. include_expsyms=$lt_include_expsyms_CXX
  15347. # Commands necessary for linking programs (against libraries) with templates.
  15348. prelink_cmds=$lt_prelink_cmds_CXX
  15349. # Specify filename containing input files.
  15350. file_list_spec=$lt_file_list_spec_CXX
  15351. # How to hardcode a shared library path into an executable.
  15352. hardcode_action=$hardcode_action_CXX
  15353. # The directories searched by this compiler when creating a shared library.
  15354. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15355. # Dependencies to place before and after the objects being linked to
  15356. # create a shared library.
  15357. predep_objects=$lt_predep_objects_CXX
  15358. postdep_objects=$lt_postdep_objects_CXX
  15359. predeps=$lt_predeps_CXX
  15360. postdeps=$lt_postdeps_CXX
  15361. # The library search path used internally by the compiler when linking
  15362. # a shared library.
  15363. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15364. # ### END LIBTOOL TAG CONFIG: CXX
  15365. _LT_EOF
  15366. ;;
  15367. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15368. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15369. # are listed without --file. Let's play safe and only enable the eval
  15370. # if we detect the quoting.
  15371. case $CONFIG_FILES in
  15372. *\'*) eval set x "$CONFIG_FILES" ;;
  15373. *) set x $CONFIG_FILES ;;
  15374. esac
  15375. shift
  15376. for mf
  15377. do
  15378. # Strip MF so we end up with the name of the file.
  15379. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15380. # Check whether this is an Automake generated Makefile or not.
  15381. # We used to match only the files named `Makefile.in', but
  15382. # some people rename them; so instead we look at the file content.
  15383. # Grep'ing the first line is not enough: some people post-process
  15384. # each Makefile.in and add a new line on top of each file to say so.
  15385. # Grep'ing the whole file is not good either: AIX grep has a line
  15386. # limit of 2048, but all sed's we know have understand at least 4000.
  15387. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15388. dirpart=`$as_dirname -- "$mf" ||
  15389. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15390. X"$mf" : 'X\(//\)[^/]' \| \
  15391. X"$mf" : 'X\(//\)$' \| \
  15392. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15393. $as_echo X"$mf" |
  15394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15395. s//\1/
  15396. q
  15397. }
  15398. /^X\(\/\/\)[^/].*/{
  15399. s//\1/
  15400. q
  15401. }
  15402. /^X\(\/\/\)$/{
  15403. s//\1/
  15404. q
  15405. }
  15406. /^X\(\/\).*/{
  15407. s//\1/
  15408. q
  15409. }
  15410. s/.*/./; q'`
  15411. else
  15412. continue
  15413. fi
  15414. # Extract the definition of DEPDIR, am__include, and am__quote
  15415. # from the Makefile without running `make'.
  15416. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15417. test -z "$DEPDIR" && continue
  15418. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15419. test -z "am__include" && continue
  15420. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15421. # When using ansi2knr, U may be empty or an underscore; expand it
  15422. U=`sed -n 's/^U = //p' < "$mf"`
  15423. # Find all dependency output files, they are included files with
  15424. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15425. # simplest approach to changing $(DEPDIR) to its actual value in the
  15426. # expansion.
  15427. for file in `sed -n "
  15428. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15429. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15430. # Make sure the directory exists.
  15431. test -f "$dirpart/$file" && continue
  15432. fdir=`$as_dirname -- "$file" ||
  15433. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15434. X"$file" : 'X\(//\)[^/]' \| \
  15435. X"$file" : 'X\(//\)$' \| \
  15436. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15437. $as_echo X"$file" |
  15438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15439. s//\1/
  15440. q
  15441. }
  15442. /^X\(\/\/\)[^/].*/{
  15443. s//\1/
  15444. q
  15445. }
  15446. /^X\(\/\/\)$/{
  15447. s//\1/
  15448. q
  15449. }
  15450. /^X\(\/\).*/{
  15451. s//\1/
  15452. q
  15453. }
  15454. s/.*/./; q'`
  15455. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15456. # echo "creating $dirpart/$file"
  15457. echo '# dummy' > "$dirpart/$file"
  15458. done
  15459. done
  15460. }
  15461. ;;
  15462. esac
  15463. done # for ac_tag
  15464. as_fn_exit 0
  15465. _ACEOF
  15466. ac_clean_files=$ac_clean_files_save
  15467. test $ac_write_fail = 0 ||
  15468. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15469. # configure is writing to config.log, and then calls config.status.
  15470. # config.status does its own redirection, appending to config.log.
  15471. # Unfortunately, on DOS this fails, as config.log is still kept open
  15472. # by configure, so config.status won't be able to write to it; its
  15473. # output is simply discarded. So we exec the FD to /dev/null,
  15474. # effectively closing config.log, so it can be properly (re)opened and
  15475. # appended to by config.status. When coming back to configure, we
  15476. # need to make the FD available again.
  15477. if test "$no_create" != yes; then
  15478. ac_cs_success=:
  15479. ac_config_status_args=
  15480. test "$silent" = yes &&
  15481. ac_config_status_args="$ac_config_status_args --quiet"
  15482. exec 5>/dev/null
  15483. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15484. exec 5>>config.log
  15485. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15486. # would make configure fail if this is the last instruction.
  15487. $ac_cs_success || as_fn_exit $?
  15488. fi
  15489. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15491. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15492. fi