configure 578 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.3.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.3'
  525. PACKAGE_STRING='klish 1.5.3'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. RT_CFLAGS
  568. RT_LIBS
  569. TINYXML_CXXFLAGS
  570. TINYXML_LIBS
  571. TINYRL_CFLAGS
  572. TINYRL_LIBS
  573. KONF_CFLAGS
  574. KONF_LIBS
  575. LUB_CFLAGS
  576. LUB_LIBS
  577. DEBUG_FALSE
  578. DEBUG_TRUE
  579. am__fastdepCXX_FALSE
  580. am__fastdepCXX_TRUE
  581. CXXDEPMODE
  582. am__fastdepCC_FALSE
  583. am__fastdepCC_TRUE
  584. CCDEPMODE
  585. am__nodep
  586. AMDEPBACKSLASH
  587. AMDEP_FALSE
  588. AMDEP_TRUE
  589. am__quote
  590. am__include
  591. DEPDIR
  592. am__untar
  593. am__tar
  594. AMTAR
  595. am__leading_dot
  596. SET_MAKE
  597. mkdir_p
  598. MKDIR_P
  599. INSTALL_STRIP_PROGRAM
  600. install_sh
  601. MAKEINFO
  602. AUTOHEADER
  603. AUTOMAKE
  604. AUTOCONF
  605. ACLOCAL
  606. VERSION
  607. PACKAGE
  608. CYGPATH_W
  609. am__isrc
  610. INSTALL_DATA
  611. INSTALL_SCRIPT
  612. INSTALL_PROGRAM
  613. CXXCPP
  614. OTOOL64
  615. OTOOL
  616. LIPO
  617. NMEDIT
  618. DSYMUTIL
  619. MANIFEST_TOOL
  620. AWK
  621. RANLIB
  622. STRIP
  623. ac_ct_AR
  624. AR
  625. LN_S
  626. NM
  627. ac_ct_DUMPBIN
  628. DUMPBIN
  629. LD
  630. FGREP
  631. SED
  632. LIBTOOL
  633. OBJDUMP
  634. DLLTOOL
  635. AS
  636. host_os
  637. host_vendor
  638. host_cpu
  639. host
  640. build_os
  641. build_vendor
  642. build_cpu
  643. build
  644. ac_ct_CXX
  645. CXXFLAGS
  646. CXX
  647. EGREP
  648. GREP
  649. CPP
  650. OBJEXT
  651. EXEEXT
  652. ac_ct_CC
  653. CPPFLAGS
  654. LDFLAGS
  655. CFLAGS
  656. CC
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files=''
  696. ac_user_opts='
  697. enable_option_checking
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. with_sysroot
  704. enable_libtool_lock
  705. enable_dependency_tracking
  706. enable_debug
  707. with_rt
  708. '
  709. ac_precious_vars='build_alias
  710. host_alias
  711. target_alias
  712. CC
  713. CFLAGS
  714. LDFLAGS
  715. LIBS
  716. CPPFLAGS
  717. CPP
  718. CXX
  719. CXXFLAGS
  720. CCC
  721. CXXCPP'
  722. # Initialize some variables set by options.
  723. ac_init_help=
  724. ac_init_version=false
  725. ac_unrecognized_opts=
  726. ac_unrecognized_sep=
  727. # The variables have the same names as the options, with
  728. # dashes changed to underlines.
  729. cache_file=/dev/null
  730. exec_prefix=NONE
  731. no_create=
  732. no_recursion=
  733. prefix=NONE
  734. program_prefix=NONE
  735. program_suffix=NONE
  736. program_transform_name=s,x,x,
  737. silent=
  738. site=
  739. srcdir=
  740. verbose=
  741. x_includes=NONE
  742. x_libraries=NONE
  743. # Installation directory options.
  744. # These are left unexpanded so users can "make install exec_prefix=/foo"
  745. # and all the variables that are supposed to be based on exec_prefix
  746. # by default will actually change.
  747. # Use braces instead of parens because sh, perl, etc. also accept them.
  748. # (The list follows the same order as the GNU Coding Standards.)
  749. bindir='${exec_prefix}/bin'
  750. sbindir='${exec_prefix}/sbin'
  751. libexecdir='${exec_prefix}/libexec'
  752. datarootdir='${prefix}/share'
  753. datadir='${datarootdir}'
  754. sysconfdir='${prefix}/etc'
  755. sharedstatedir='${prefix}/com'
  756. localstatedir='${prefix}/var'
  757. includedir='${prefix}/include'
  758. oldincludedir='/usr/include'
  759. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  760. infodir='${datarootdir}/info'
  761. htmldir='${docdir}'
  762. dvidir='${docdir}'
  763. pdfdir='${docdir}'
  764. psdir='${docdir}'
  765. libdir='${exec_prefix}/lib'
  766. localedir='${datarootdir}/locale'
  767. mandir='${datarootdir}/man'
  768. ac_prev=
  769. ac_dashdash=
  770. for ac_option
  771. do
  772. # If the previous option needs an argument, assign it.
  773. if test -n "$ac_prev"; then
  774. eval $ac_prev=\$ac_option
  775. ac_prev=
  776. continue
  777. fi
  778. case $ac_option in
  779. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  780. *=) ac_optarg= ;;
  781. *) ac_optarg=yes ;;
  782. esac
  783. # Accept the important Cygnus configure options, so we can diagnose typos.
  784. case $ac_dashdash$ac_option in
  785. --)
  786. ac_dashdash=yes ;;
  787. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  788. ac_prev=bindir ;;
  789. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  790. bindir=$ac_optarg ;;
  791. -build | --build | --buil | --bui | --bu)
  792. ac_prev=build_alias ;;
  793. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  794. build_alias=$ac_optarg ;;
  795. -cache-file | --cache-file | --cache-fil | --cache-fi \
  796. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  797. ac_prev=cache_file ;;
  798. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  799. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  800. cache_file=$ac_optarg ;;
  801. --config-cache | -C)
  802. cache_file=config.cache ;;
  803. -datadir | --datadir | --datadi | --datad)
  804. ac_prev=datadir ;;
  805. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  806. datadir=$ac_optarg ;;
  807. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  808. | --dataroo | --dataro | --datar)
  809. ac_prev=datarootdir ;;
  810. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  811. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  812. datarootdir=$ac_optarg ;;
  813. -disable-* | --disable-*)
  814. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  817. as_fn_error $? "invalid feature name: $ac_useropt"
  818. ac_useropt_orig=$ac_useropt
  819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  820. case $ac_user_opts in
  821. *"
  822. "enable_$ac_useropt"
  823. "*) ;;
  824. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  825. ac_unrecognized_sep=', ';;
  826. esac
  827. eval enable_$ac_useropt=no ;;
  828. -docdir | --docdir | --docdi | --doc | --do)
  829. ac_prev=docdir ;;
  830. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  831. docdir=$ac_optarg ;;
  832. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  833. ac_prev=dvidir ;;
  834. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  835. dvidir=$ac_optarg ;;
  836. -enable-* | --enable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=\$ac_optarg ;;
  851. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  852. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  853. | --exec | --exe | --ex)
  854. ac_prev=exec_prefix ;;
  855. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  856. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  857. | --exec=* | --exe=* | --ex=*)
  858. exec_prefix=$ac_optarg ;;
  859. -gas | --gas | --ga | --g)
  860. # Obsolete; use --with-gas.
  861. with_gas=yes ;;
  862. -help | --help | --hel | --he | -h)
  863. ac_init_help=long ;;
  864. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  865. ac_init_help=recursive ;;
  866. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  867. ac_init_help=short ;;
  868. -host | --host | --hos | --ho)
  869. ac_prev=host_alias ;;
  870. -host=* | --host=* | --hos=* | --ho=*)
  871. host_alias=$ac_optarg ;;
  872. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  873. ac_prev=htmldir ;;
  874. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  875. | --ht=*)
  876. htmldir=$ac_optarg ;;
  877. -includedir | --includedir | --includedi | --included | --include \
  878. | --includ | --inclu | --incl | --inc)
  879. ac_prev=includedir ;;
  880. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  881. | --includ=* | --inclu=* | --incl=* | --inc=*)
  882. includedir=$ac_optarg ;;
  883. -infodir | --infodir | --infodi | --infod | --info | --inf)
  884. ac_prev=infodir ;;
  885. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  886. infodir=$ac_optarg ;;
  887. -libdir | --libdir | --libdi | --libd)
  888. ac_prev=libdir ;;
  889. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  890. libdir=$ac_optarg ;;
  891. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  892. | --libexe | --libex | --libe)
  893. ac_prev=libexecdir ;;
  894. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  895. | --libexe=* | --libex=* | --libe=*)
  896. libexecdir=$ac_optarg ;;
  897. -localedir | --localedir | --localedi | --localed | --locale)
  898. ac_prev=localedir ;;
  899. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  900. localedir=$ac_optarg ;;
  901. -localstatedir | --localstatedir | --localstatedi | --localstated \
  902. | --localstate | --localstat | --localsta | --localst | --locals)
  903. ac_prev=localstatedir ;;
  904. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  905. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  906. localstatedir=$ac_optarg ;;
  907. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  908. ac_prev=mandir ;;
  909. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  910. mandir=$ac_optarg ;;
  911. -nfp | --nfp | --nf)
  912. # Obsolete; use --without-fp.
  913. with_fp=no ;;
  914. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  915. | --no-cr | --no-c | -n)
  916. no_create=yes ;;
  917. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  918. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  919. no_recursion=yes ;;
  920. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  921. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  922. | --oldin | --oldi | --old | --ol | --o)
  923. ac_prev=oldincludedir ;;
  924. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  925. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  926. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  927. oldincludedir=$ac_optarg ;;
  928. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  929. ac_prev=prefix ;;
  930. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  931. prefix=$ac_optarg ;;
  932. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  933. | --program-pre | --program-pr | --program-p)
  934. ac_prev=program_prefix ;;
  935. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  936. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  937. program_prefix=$ac_optarg ;;
  938. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  939. | --program-suf | --program-su | --program-s)
  940. ac_prev=program_suffix ;;
  941. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  942. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  943. program_suffix=$ac_optarg ;;
  944. -program-transform-name | --program-transform-name \
  945. | --program-transform-nam | --program-transform-na \
  946. | --program-transform-n | --program-transform- \
  947. | --program-transform | --program-transfor \
  948. | --program-transfo | --program-transf \
  949. | --program-trans | --program-tran \
  950. | --progr-tra | --program-tr | --program-t)
  951. ac_prev=program_transform_name ;;
  952. -program-transform-name=* | --program-transform-name=* \
  953. | --program-transform-nam=* | --program-transform-na=* \
  954. | --program-transform-n=* | --program-transform-=* \
  955. | --program-transform=* | --program-transfor=* \
  956. | --program-transfo=* | --program-transf=* \
  957. | --program-trans=* | --program-tran=* \
  958. | --progr-tra=* | --program-tr=* | --program-t=*)
  959. program_transform_name=$ac_optarg ;;
  960. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  961. ac_prev=pdfdir ;;
  962. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  963. pdfdir=$ac_optarg ;;
  964. -psdir | --psdir | --psdi | --psd | --ps)
  965. ac_prev=psdir ;;
  966. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  967. psdir=$ac_optarg ;;
  968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  969. | -silent | --silent | --silen | --sile | --sil)
  970. silent=yes ;;
  971. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  972. ac_prev=sbindir ;;
  973. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  974. | --sbi=* | --sb=*)
  975. sbindir=$ac_optarg ;;
  976. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  977. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  978. | --sharedst | --shareds | --shared | --share | --shar \
  979. | --sha | --sh)
  980. ac_prev=sharedstatedir ;;
  981. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  982. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  983. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  984. | --sha=* | --sh=*)
  985. sharedstatedir=$ac_optarg ;;
  986. -site | --site | --sit)
  987. ac_prev=site ;;
  988. -site=* | --site=* | --sit=*)
  989. site=$ac_optarg ;;
  990. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  991. ac_prev=srcdir ;;
  992. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  993. srcdir=$ac_optarg ;;
  994. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  995. | --syscon | --sysco | --sysc | --sys | --sy)
  996. ac_prev=sysconfdir ;;
  997. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  998. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  999. sysconfdir=$ac_optarg ;;
  1000. -target | --target | --targe | --targ | --tar | --ta | --t)
  1001. ac_prev=target_alias ;;
  1002. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1003. target_alias=$ac_optarg ;;
  1004. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1005. verbose=yes ;;
  1006. -version | --version | --versio | --versi | --vers | -V)
  1007. ac_init_version=: ;;
  1008. -with-* | --with-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid package name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "with_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval with_$ac_useropt=\$ac_optarg ;;
  1023. -without-* | --without-*)
  1024. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1027. as_fn_error $? "invalid package name: $ac_useropt"
  1028. ac_useropt_orig=$ac_useropt
  1029. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1030. case $ac_user_opts in
  1031. *"
  1032. "with_$ac_useropt"
  1033. "*) ;;
  1034. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1035. ac_unrecognized_sep=', ';;
  1036. esac
  1037. eval with_$ac_useropt=no ;;
  1038. --x)
  1039. # Obsolete; use --with-x.
  1040. with_x=yes ;;
  1041. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1042. | --x-incl | --x-inc | --x-in | --x-i)
  1043. ac_prev=x_includes ;;
  1044. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1045. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1046. x_includes=$ac_optarg ;;
  1047. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1048. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1049. ac_prev=x_libraries ;;
  1050. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1051. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1052. x_libraries=$ac_optarg ;;
  1053. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1054. Try \`$0 --help' for more information"
  1055. ;;
  1056. *=*)
  1057. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1058. # Reject names that are not valid shell variable names.
  1059. case $ac_envvar in #(
  1060. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1061. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1062. esac
  1063. eval $ac_envvar=\$ac_optarg
  1064. export $ac_envvar ;;
  1065. *)
  1066. # FIXME: should be removed in autoconf 3.0.
  1067. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1068. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1069. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1070. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1071. ;;
  1072. esac
  1073. done
  1074. if test -n "$ac_prev"; then
  1075. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1076. as_fn_error $? "missing argument to $ac_option"
  1077. fi
  1078. if test -n "$ac_unrecognized_opts"; then
  1079. case $enable_option_checking in
  1080. no) ;;
  1081. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1082. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1083. esac
  1084. fi
  1085. # Check all directory arguments for consistency.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. # Remove trailing slashes.
  1093. case $ac_val in
  1094. */ )
  1095. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1096. eval $ac_var=\$ac_val;;
  1097. esac
  1098. # Be sure to have absolute directory names.
  1099. case $ac_val in
  1100. [\\/$]* | ?:[\\/]* ) continue;;
  1101. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1102. esac
  1103. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1104. done
  1105. # There might be people who depend on the old broken behavior: `$host'
  1106. # used to hold the argument of --host etc.
  1107. # FIXME: To remove some day.
  1108. build=$build_alias
  1109. host=$host_alias
  1110. target=$target_alias
  1111. # FIXME: To remove some day.
  1112. if test "x$host_alias" != x; then
  1113. if test "x$build_alias" = x; then
  1114. cross_compiling=maybe
  1115. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1116. If a cross compiler is detected then cross compile mode will be used" >&2
  1117. elif test "x$build_alias" != "x$host_alias"; then
  1118. cross_compiling=yes
  1119. fi
  1120. fi
  1121. ac_tool_prefix=
  1122. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1123. test "$silent" = yes && exec 6>/dev/null
  1124. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1125. ac_ls_di=`ls -di .` &&
  1126. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1127. as_fn_error $? "working directory cannot be determined"
  1128. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1129. as_fn_error $? "pwd does not report name of working directory"
  1130. # Find the source files, if location was not specified.
  1131. if test -z "$srcdir"; then
  1132. ac_srcdir_defaulted=yes
  1133. # Try the directory containing this script, then the parent directory.
  1134. ac_confdir=`$as_dirname -- "$as_myself" ||
  1135. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1136. X"$as_myself" : 'X\(//\)[^/]' \| \
  1137. X"$as_myself" : 'X\(//\)$' \| \
  1138. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1139. $as_echo X"$as_myself" |
  1140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)[^/].*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\).*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. s/.*/./; q'`
  1157. srcdir=$ac_confdir
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. srcdir=..
  1160. fi
  1161. else
  1162. ac_srcdir_defaulted=no
  1163. fi
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1166. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1167. fi
  1168. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1169. ac_abs_confdir=`(
  1170. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1171. pwd)`
  1172. # When building in place, set srcdir=.
  1173. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1174. srcdir=.
  1175. fi
  1176. # Remove unnecessary trailing slashes from srcdir.
  1177. # Double slashes in file names in object file debugging info
  1178. # mess up M-x gdb in Emacs.
  1179. case $srcdir in
  1180. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1181. esac
  1182. for ac_var in $ac_precious_vars; do
  1183. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_env_${ac_var}_value=\$${ac_var}
  1185. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1187. done
  1188. #
  1189. # Report the --help message.
  1190. #
  1191. if test "$ac_init_help" = "long"; then
  1192. # Omit some internal or obsolete options to make the list less imposing.
  1193. # This message is too long to be a string in the A/UX 3.1 sh.
  1194. cat <<_ACEOF
  1195. \`configure' configures klish 1.5.3 to adapt to many kinds of systems.
  1196. Usage: $0 [OPTION]... [VAR=VALUE]...
  1197. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1198. VAR=VALUE. See below for descriptions of some of the useful variables.
  1199. Defaults for the options are specified in brackets.
  1200. Configuration:
  1201. -h, --help display this help and exit
  1202. --help=short display options specific to this package
  1203. --help=recursive display the short help of all the included packages
  1204. -V, --version display version information and exit
  1205. -q, --quiet, --silent do not print \`checking ...' messages
  1206. --cache-file=FILE cache test results in FILE [disabled]
  1207. -C, --config-cache alias for \`--cache-file=config.cache'
  1208. -n, --no-create do not create output files
  1209. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1210. Installation directories:
  1211. --prefix=PREFIX install architecture-independent files in PREFIX
  1212. [$ac_default_prefix]
  1213. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1214. [PREFIX]
  1215. By default, \`make install' will install all the files in
  1216. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1217. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1218. for instance \`--prefix=\$HOME'.
  1219. For better control, use the options below.
  1220. Fine tuning of the installation directories:
  1221. --bindir=DIR user executables [EPREFIX/bin]
  1222. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1223. --libexecdir=DIR program executables [EPREFIX/libexec]
  1224. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1225. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1226. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. Program names:
  1243. --program-prefix=PREFIX prepend PREFIX to installed program names
  1244. --program-suffix=SUFFIX append SUFFIX to installed program names
  1245. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1246. System types:
  1247. --build=BUILD configure for building on BUILD [guessed]
  1248. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1249. _ACEOF
  1250. fi
  1251. if test -n "$ac_init_help"; then
  1252. case $ac_init_help in
  1253. short | recursive ) echo "Configuration of klish 1.5.3:";;
  1254. esac
  1255. cat <<\_ACEOF
  1256. Optional Features:
  1257. --disable-option-checking ignore unrecognized --enable/--with options
  1258. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1259. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1260. --enable-shared[=PKGS] build shared libraries [default=yes]
  1261. --enable-static[=PKGS] build static libraries [default=yes]
  1262. --enable-fast-install[=PKGS]
  1263. optimize for fast installation [default=yes]
  1264. --disable-libtool-lock avoid locking (might break parallel builds)
  1265. --disable-dependency-tracking speeds up one-time build
  1266. --enable-dependency-tracking do not reject slow dependency extractors
  1267. --enable-debug Turn on debugging including asserts [default=no]
  1268. Optional Packages:
  1269. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1270. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1271. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1272. both]
  1273. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1274. --with-sysroot=DIR Search for dependent libraries within DIR
  1275. (or the compiler's sysroot if not specified).
  1276. --with-rt=DIR Use POSIX real time library distribution in DIR
  1277. Some influential environment variables:
  1278. CC C compiler command
  1279. CFLAGS C compiler flags
  1280. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1281. nonstandard directory <lib dir>
  1282. LIBS libraries to pass to the linker, e.g. -l<library>
  1283. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1284. you have headers in a nonstandard directory <include dir>
  1285. CPP C preprocessor
  1286. CXX C++ compiler command
  1287. CXXFLAGS C++ compiler flags
  1288. CXXCPP C++ preprocessor
  1289. Use these variables to override the choices made by `configure' or to help
  1290. it to find libraries and programs with nonstandard names/locations.
  1291. Report bugs to <serj.kalichev at gmail dot com>.
  1292. _ACEOF
  1293. ac_status=$?
  1294. fi
  1295. if test "$ac_init_help" = "recursive"; then
  1296. # If there are subdirs, report their specific --help.
  1297. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1298. test -d "$ac_dir" ||
  1299. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1300. continue
  1301. ac_builddir=.
  1302. case "$ac_dir" in
  1303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *)
  1305. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1306. # A ".." for each directory in $ac_dir_suffix.
  1307. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1308. case $ac_top_builddir_sub in
  1309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1311. esac ;;
  1312. esac
  1313. ac_abs_top_builddir=$ac_pwd
  1314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1315. # for backward compatibility:
  1316. ac_top_builddir=$ac_top_build_prefix
  1317. case $srcdir in
  1318. .) # We are building in place.
  1319. ac_srcdir=.
  1320. ac_top_srcdir=$ac_top_builddir_sub
  1321. ac_abs_top_srcdir=$ac_pwd ;;
  1322. [\\/]* | ?:[\\/]* ) # Absolute name.
  1323. ac_srcdir=$srcdir$ac_dir_suffix;
  1324. ac_top_srcdir=$srcdir
  1325. ac_abs_top_srcdir=$srcdir ;;
  1326. *) # Relative name.
  1327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1330. esac
  1331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1332. cd "$ac_dir" || { ac_status=$?; continue; }
  1333. # Check for guested configure.
  1334. if test -f "$ac_srcdir/configure.gnu"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1337. elif test -f "$ac_srcdir/configure"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure" --help=recursive
  1340. else
  1341. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1342. fi || ac_status=$?
  1343. cd "$ac_pwd" || { ac_status=$?; break; }
  1344. done
  1345. fi
  1346. test -n "$ac_init_help" && exit $ac_status
  1347. if $ac_init_version; then
  1348. cat <<\_ACEOF
  1349. klish configure 1.5.3
  1350. generated by GNU Autoconf 2.68
  1351. Copyright (C) 2010 Free Software Foundation, Inc.
  1352. This configure script is free software; the Free Software Foundation
  1353. gives unlimited permission to copy, distribute and modify it.
  1354. _ACEOF
  1355. exit
  1356. fi
  1357. ## ------------------------ ##
  1358. ## Autoconf initialization. ##
  1359. ## ------------------------ ##
  1360. # ac_fn_c_try_compile LINENO
  1361. # --------------------------
  1362. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1363. ac_fn_c_try_compile ()
  1364. {
  1365. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1366. rm -f conftest.$ac_objext
  1367. if { { ac_try="$ac_compile"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_compile") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } && {
  1383. test -z "$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. } && test -s conftest.$ac_objext; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1393. as_fn_set_status $ac_retval
  1394. } # ac_fn_c_try_compile
  1395. # ac_fn_c_try_cpp LINENO
  1396. # ----------------------
  1397. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1398. ac_fn_c_try_cpp ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1409. ac_status=$?
  1410. if test -s conftest.err; then
  1411. grep -v '^ *+' conftest.err >conftest.er1
  1412. cat conftest.er1 >&5
  1413. mv -f conftest.er1 conftest.err
  1414. fi
  1415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1416. test $ac_status = 0; } > conftest.i && {
  1417. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1418. test ! -s conftest.err
  1419. }; then :
  1420. ac_retval=0
  1421. else
  1422. $as_echo "$as_me: failed program was:" >&5
  1423. sed 's/^/| /' conftest.$ac_ext >&5
  1424. ac_retval=1
  1425. fi
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_cpp
  1429. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1430. # -------------------------------------------------------
  1431. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1432. # the include files in INCLUDES and setting the cache variable VAR
  1433. # accordingly.
  1434. ac_fn_c_check_header_mongrel ()
  1435. {
  1436. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1437. if eval \${$3+:} false; then :
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1439. $as_echo_n "checking for $2... " >&6; }
  1440. if eval \${$3+:} false; then :
  1441. $as_echo_n "(cached) " >&6
  1442. fi
  1443. eval ac_res=\$$3
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1445. $as_echo "$ac_res" >&6; }
  1446. else
  1447. # Is the header compilable?
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1449. $as_echo_n "checking $2 usability... " >&6; }
  1450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1451. /* end confdefs.h. */
  1452. $4
  1453. #include <$2>
  1454. _ACEOF
  1455. if ac_fn_c_try_compile "$LINENO"; then :
  1456. ac_header_compiler=yes
  1457. else
  1458. ac_header_compiler=no
  1459. fi
  1460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1462. $as_echo "$ac_header_compiler" >&6; }
  1463. # Is the header present?
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1465. $as_echo_n "checking $2 presence... " >&6; }
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. #include <$2>
  1469. _ACEOF
  1470. if ac_fn_c_try_cpp "$LINENO"; then :
  1471. ac_header_preproc=yes
  1472. else
  1473. ac_header_preproc=no
  1474. fi
  1475. rm -f conftest.err conftest.i conftest.$ac_ext
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1477. $as_echo "$ac_header_preproc" >&6; }
  1478. # So? What about this header?
  1479. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1480. yes:no: )
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1482. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1484. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1485. ;;
  1486. no:yes:* )
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1488. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1490. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1492. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1494. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1496. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1497. ( $as_echo "## --------------------------------------------- ##
  1498. ## Report this to serj.kalichev at gmail dot com ##
  1499. ## --------------------------------------------- ##"
  1500. ) | sed "s/^/$as_me: WARNING: /" >&2
  1501. ;;
  1502. esac
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if eval \${$3+:} false; then :
  1506. $as_echo_n "(cached) " >&6
  1507. else
  1508. eval "$3=\$ac_header_compiler"
  1509. fi
  1510. eval ac_res=\$$3
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1512. $as_echo "$ac_res" >&6; }
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. } # ac_fn_c_check_header_mongrel
  1516. # ac_fn_c_try_run LINENO
  1517. # ----------------------
  1518. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1519. # that executables *can* be run.
  1520. ac_fn_c_try_run ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. if { { ac_try="$ac_link"
  1524. case "(($ac_try" in
  1525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1526. *) ac_try_echo=$ac_try;;
  1527. esac
  1528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1529. $as_echo "$ac_try_echo"; } >&5
  1530. (eval "$ac_link") 2>&5
  1531. ac_status=$?
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1534. { { case "(($ac_try" in
  1535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1536. *) ac_try_echo=$ac_try;;
  1537. esac
  1538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1539. $as_echo "$ac_try_echo"; } >&5
  1540. (eval "$ac_try") 2>&5
  1541. ac_status=$?
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; }; }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: program exited with status $ac_status" >&5
  1547. $as_echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_retval=$ac_status
  1550. fi
  1551. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1552. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1553. as_fn_set_status $ac_retval
  1554. } # ac_fn_c_try_run
  1555. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1556. # -------------------------------------------------------
  1557. # Tests whether HEADER exists and can be compiled using the include files in
  1558. # INCLUDES, setting the cache variable VAR accordingly.
  1559. ac_fn_c_check_header_compile ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1563. $as_echo_n "checking for $2... " >&6; }
  1564. if eval \${$3+:} false; then :
  1565. $as_echo_n "(cached) " >&6
  1566. else
  1567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1568. /* end confdefs.h. */
  1569. $4
  1570. #include <$2>
  1571. _ACEOF
  1572. if ac_fn_c_try_compile "$LINENO"; then :
  1573. eval "$3=yes"
  1574. else
  1575. eval "$3=no"
  1576. fi
  1577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1578. fi
  1579. eval ac_res=\$$3
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1581. $as_echo "$ac_res" >&6; }
  1582. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1583. } # ac_fn_c_check_header_compile
  1584. # ac_fn_cxx_try_compile LINENO
  1585. # ----------------------------
  1586. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1587. ac_fn_cxx_try_compile ()
  1588. {
  1589. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1590. rm -f conftest.$ac_objext
  1591. if { { ac_try="$ac_compile"
  1592. case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_compile") 2>conftest.err
  1599. ac_status=$?
  1600. if test -s conftest.err; then
  1601. grep -v '^ *+' conftest.err >conftest.er1
  1602. cat conftest.er1 >&5
  1603. mv -f conftest.er1 conftest.err
  1604. fi
  1605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1606. test $ac_status = 0; } && {
  1607. test -z "$ac_cxx_werror_flag" ||
  1608. test ! -s conftest.err
  1609. } && test -s conftest.$ac_objext; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: failed program was:" >&5
  1613. sed 's/^/| /' conftest.$ac_ext >&5
  1614. ac_retval=1
  1615. fi
  1616. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_cxx_try_compile
  1619. # ac_fn_c_try_link LINENO
  1620. # -----------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_c_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_c_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. $as_test_x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_link
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if eval \${$3+:} false; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1677. #define $2 innocuous_$2
  1678. /* System header to define __stub macros and hopefully few prototypes,
  1679. which can conflict with char $2 (); below.
  1680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1681. <limits.h> exists even on freestanding compilers. */
  1682. #ifdef __STDC__
  1683. # include <limits.h>
  1684. #else
  1685. # include <assert.h>
  1686. #endif
  1687. #undef $2
  1688. /* Override any GCC internal prototype to avoid an error.
  1689. Use char because int might match the return type of a GCC
  1690. builtin and then its argument prototype would still apply. */
  1691. #ifdef __cplusplus
  1692. extern "C"
  1693. #endif
  1694. char $2 ();
  1695. /* The GNU C library defines this for functions which it implements
  1696. to always fail with ENOSYS. Some functions are actually named
  1697. something starting with __ and the normal name is an alias. */
  1698. #if defined __stub_$2 || defined __stub___$2
  1699. choke me
  1700. #endif
  1701. int
  1702. main ()
  1703. {
  1704. return $2 ();
  1705. ;
  1706. return 0;
  1707. }
  1708. _ACEOF
  1709. if ac_fn_c_try_link "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext \
  1715. conftest$ac_exeext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. } # ac_fn_c_check_func
  1722. # ac_fn_cxx_try_cpp LINENO
  1723. # ------------------------
  1724. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_cxx_try_cpp ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } > conftest.i && {
  1744. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1745. test ! -s conftest.err
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_cxx_try_cpp
  1756. # ac_fn_cxx_try_link LINENO
  1757. # -------------------------
  1758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1759. ac_fn_cxx_try_link ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. rm -f conftest.$ac_objext conftest$ac_exeext
  1763. if { { ac_try="$ac_link"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_link") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } && {
  1779. test -z "$ac_cxx_werror_flag" ||
  1780. test ! -s conftest.err
  1781. } && test -s conftest$ac_exeext && {
  1782. test "$cross_compiling" = yes ||
  1783. $as_test_x conftest$ac_exeext
  1784. }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_cxx_try_link
  1799. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1800. # --------------------------------------------
  1801. # Tries to find the compile-time value of EXPR in a program that includes
  1802. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1803. # computed
  1804. ac_fn_c_compute_int ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. if test "$cross_compiling" = yes; then
  1808. # Depending upon the size, compute the lo and hi bounds.
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $4
  1812. int
  1813. main ()
  1814. {
  1815. static int test_array [1 - 2 * !(($2) >= 0)];
  1816. test_array [0] = 0
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_c_try_compile "$LINENO"; then :
  1822. ac_lo=0 ac_mid=0
  1823. while :; do
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. int
  1828. main ()
  1829. {
  1830. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1831. test_array [0] = 0
  1832. ;
  1833. return 0;
  1834. }
  1835. _ACEOF
  1836. if ac_fn_c_try_compile "$LINENO"; then :
  1837. ac_hi=$ac_mid; break
  1838. else
  1839. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1840. if test $ac_lo -le $ac_mid; then
  1841. ac_lo= ac_hi=
  1842. break
  1843. fi
  1844. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1845. fi
  1846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1847. done
  1848. else
  1849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1850. /* end confdefs.h. */
  1851. $4
  1852. int
  1853. main ()
  1854. {
  1855. static int test_array [1 - 2 * !(($2) < 0)];
  1856. test_array [0] = 0
  1857. ;
  1858. return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_compile "$LINENO"; then :
  1862. ac_hi=-1 ac_mid=-1
  1863. while :; do
  1864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1865. /* end confdefs.h. */
  1866. $4
  1867. int
  1868. main ()
  1869. {
  1870. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1871. test_array [0] = 0
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_c_try_compile "$LINENO"; then :
  1877. ac_lo=$ac_mid; break
  1878. else
  1879. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1880. if test $ac_mid -le $ac_hi; then
  1881. ac_lo= ac_hi=
  1882. break
  1883. fi
  1884. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1887. done
  1888. else
  1889. ac_lo= ac_hi=
  1890. fi
  1891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1892. fi
  1893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1894. # Binary search between lo and hi bounds.
  1895. while test "x$ac_lo" != "x$ac_hi"; do
  1896. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. $4
  1900. int
  1901. main ()
  1902. {
  1903. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1904. test_array [0] = 0
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. ac_hi=$ac_mid
  1911. else
  1912. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. done
  1916. case $ac_lo in #((
  1917. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1918. '') ac_retval=1 ;;
  1919. esac
  1920. else
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $4
  1924. static long int longval () { return $2; }
  1925. static unsigned long int ulongval () { return $2; }
  1926. #include <stdio.h>
  1927. #include <stdlib.h>
  1928. int
  1929. main ()
  1930. {
  1931. FILE *f = fopen ("conftest.val", "w");
  1932. if (! f)
  1933. return 1;
  1934. if (($2) < 0)
  1935. {
  1936. long int i = longval ();
  1937. if (i != ($2))
  1938. return 1;
  1939. fprintf (f, "%ld", i);
  1940. }
  1941. else
  1942. {
  1943. unsigned long int i = ulongval ();
  1944. if (i != ($2))
  1945. return 1;
  1946. fprintf (f, "%lu", i);
  1947. }
  1948. /* Do not output a trailing newline, as this causes \r\n confusion
  1949. on some platforms. */
  1950. return ferror (f) || fclose (f) != 0;
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_run "$LINENO"; then :
  1956. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1957. else
  1958. ac_retval=1
  1959. fi
  1960. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1961. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1962. rm -f conftest.val
  1963. fi
  1964. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1965. as_fn_set_status $ac_retval
  1966. } # ac_fn_c_compute_int
  1967. cat >config.log <<_ACEOF
  1968. This file contains any messages produced by compilers while
  1969. running configure, to aid debugging if configure makes a mistake.
  1970. It was created by klish $as_me 1.5.3, which was
  1971. generated by GNU Autoconf 2.68. Invocation command line was
  1972. $ $0 $@
  1973. _ACEOF
  1974. exec 5>>config.log
  1975. {
  1976. cat <<_ASUNAME
  1977. ## --------- ##
  1978. ## Platform. ##
  1979. ## --------- ##
  1980. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1981. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1982. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1983. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1984. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1985. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1986. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1987. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1988. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1989. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1990. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1991. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1992. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1993. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1994. _ASUNAME
  1995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1996. for as_dir in $PATH
  1997. do
  1998. IFS=$as_save_IFS
  1999. test -z "$as_dir" && as_dir=.
  2000. $as_echo "PATH: $as_dir"
  2001. done
  2002. IFS=$as_save_IFS
  2003. } >&5
  2004. cat >&5 <<_ACEOF
  2005. ## ----------- ##
  2006. ## Core tests. ##
  2007. ## ----------- ##
  2008. _ACEOF
  2009. # Keep a trace of the command line.
  2010. # Strip out --no-create and --no-recursion so they do not pile up.
  2011. # Strip out --silent because we don't want to record it for future runs.
  2012. # Also quote any args containing shell meta-characters.
  2013. # Make two passes to allow for proper duplicate-argument suppression.
  2014. ac_configure_args=
  2015. ac_configure_args0=
  2016. ac_configure_args1=
  2017. ac_must_keep_next=false
  2018. for ac_pass in 1 2
  2019. do
  2020. for ac_arg
  2021. do
  2022. case $ac_arg in
  2023. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2024. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2025. | -silent | --silent | --silen | --sile | --sil)
  2026. continue ;;
  2027. *\'*)
  2028. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2029. esac
  2030. case $ac_pass in
  2031. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2032. 2)
  2033. as_fn_append ac_configure_args1 " '$ac_arg'"
  2034. if test $ac_must_keep_next = true; then
  2035. ac_must_keep_next=false # Got value, back to normal.
  2036. else
  2037. case $ac_arg in
  2038. *=* | --config-cache | -C | -disable-* | --disable-* \
  2039. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2040. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2041. | -with-* | --with-* | -without-* | --without-* | --x)
  2042. case "$ac_configure_args0 " in
  2043. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2044. esac
  2045. ;;
  2046. -* ) ac_must_keep_next=true ;;
  2047. esac
  2048. fi
  2049. as_fn_append ac_configure_args " '$ac_arg'"
  2050. ;;
  2051. esac
  2052. done
  2053. done
  2054. { ac_configure_args0=; unset ac_configure_args0;}
  2055. { ac_configure_args1=; unset ac_configure_args1;}
  2056. # When interrupted or exit'd, cleanup temporary files, and complete
  2057. # config.log. We remove comments because anyway the quotes in there
  2058. # would cause problems or look ugly.
  2059. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2060. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2061. trap 'exit_status=$?
  2062. # Save into config.log some information that might help in debugging.
  2063. {
  2064. echo
  2065. $as_echo "## ---------------- ##
  2066. ## Cache variables. ##
  2067. ## ---------------- ##"
  2068. echo
  2069. # The following way of writing the cache mishandles newlines in values,
  2070. (
  2071. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2072. eval ac_val=\$$ac_var
  2073. case $ac_val in #(
  2074. *${as_nl}*)
  2075. case $ac_var in #(
  2076. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2077. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2078. esac
  2079. case $ac_var in #(
  2080. _ | IFS | as_nl) ;; #(
  2081. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2082. *) { eval $ac_var=; unset $ac_var;} ;;
  2083. esac ;;
  2084. esac
  2085. done
  2086. (set) 2>&1 |
  2087. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2088. *${as_nl}ac_space=\ *)
  2089. sed -n \
  2090. "s/'\''/'\''\\\\'\'''\''/g;
  2091. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2092. ;; #(
  2093. *)
  2094. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2095. ;;
  2096. esac |
  2097. sort
  2098. )
  2099. echo
  2100. $as_echo "## ----------------- ##
  2101. ## Output variables. ##
  2102. ## ----------------- ##"
  2103. echo
  2104. for ac_var in $ac_subst_vars
  2105. do
  2106. eval ac_val=\$$ac_var
  2107. case $ac_val in
  2108. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2109. esac
  2110. $as_echo "$ac_var='\''$ac_val'\''"
  2111. done | sort
  2112. echo
  2113. if test -n "$ac_subst_files"; then
  2114. $as_echo "## ------------------- ##
  2115. ## File substitutions. ##
  2116. ## ------------------- ##"
  2117. echo
  2118. for ac_var in $ac_subst_files
  2119. do
  2120. eval ac_val=\$$ac_var
  2121. case $ac_val in
  2122. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2123. esac
  2124. $as_echo "$ac_var='\''$ac_val'\''"
  2125. done | sort
  2126. echo
  2127. fi
  2128. if test -s confdefs.h; then
  2129. $as_echo "## ----------- ##
  2130. ## confdefs.h. ##
  2131. ## ----------- ##"
  2132. echo
  2133. cat confdefs.h
  2134. echo
  2135. fi
  2136. test "$ac_signal" != 0 &&
  2137. $as_echo "$as_me: caught signal $ac_signal"
  2138. $as_echo "$as_me: exit $exit_status"
  2139. } >&5
  2140. rm -f core *.core core.conftest.* &&
  2141. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2142. exit $exit_status
  2143. ' 0
  2144. for ac_signal in 1 2 13 15; do
  2145. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2146. done
  2147. ac_signal=0
  2148. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2149. rm -f -r conftest* confdefs.h
  2150. $as_echo "/* confdefs.h */" > confdefs.h
  2151. # Predefined preprocessor variables.
  2152. cat >>confdefs.h <<_ACEOF
  2153. #define PACKAGE_NAME "$PACKAGE_NAME"
  2154. _ACEOF
  2155. cat >>confdefs.h <<_ACEOF
  2156. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2157. _ACEOF
  2158. cat >>confdefs.h <<_ACEOF
  2159. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2160. _ACEOF
  2161. cat >>confdefs.h <<_ACEOF
  2162. #define PACKAGE_STRING "$PACKAGE_STRING"
  2163. _ACEOF
  2164. cat >>confdefs.h <<_ACEOF
  2165. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2166. _ACEOF
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_URL "$PACKAGE_URL"
  2169. _ACEOF
  2170. # Let the site file select an alternate cache file if it wants to.
  2171. # Prefer an explicitly selected file to automatically selected ones.
  2172. ac_site_file1=NONE
  2173. ac_site_file2=NONE
  2174. if test -n "$CONFIG_SITE"; then
  2175. # We do not want a PATH search for config.site.
  2176. case $CONFIG_SITE in #((
  2177. -*) ac_site_file1=./$CONFIG_SITE;;
  2178. */*) ac_site_file1=$CONFIG_SITE;;
  2179. *) ac_site_file1=./$CONFIG_SITE;;
  2180. esac
  2181. elif test "x$prefix" != xNONE; then
  2182. ac_site_file1=$prefix/share/config.site
  2183. ac_site_file2=$prefix/etc/config.site
  2184. else
  2185. ac_site_file1=$ac_default_prefix/share/config.site
  2186. ac_site_file2=$ac_default_prefix/etc/config.site
  2187. fi
  2188. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2189. do
  2190. test "x$ac_site_file" = xNONE && continue
  2191. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2193. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2194. sed 's/^/| /' "$ac_site_file" >&5
  2195. . "$ac_site_file" \
  2196. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2197. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2198. as_fn_error $? "failed to load site script $ac_site_file
  2199. See \`config.log' for more details" "$LINENO" 5; }
  2200. fi
  2201. done
  2202. if test -r "$cache_file"; then
  2203. # Some versions of bash will fail to source /dev/null (special files
  2204. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2205. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2207. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2208. case $cache_file in
  2209. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2210. *) . "./$cache_file";;
  2211. esac
  2212. fi
  2213. else
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2215. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2216. >$cache_file
  2217. fi
  2218. # Check that the precious variables saved in the cache have kept the same
  2219. # value.
  2220. ac_cache_corrupted=false
  2221. for ac_var in $ac_precious_vars; do
  2222. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2223. eval ac_new_set=\$ac_env_${ac_var}_set
  2224. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2225. eval ac_new_val=\$ac_env_${ac_var}_value
  2226. case $ac_old_set,$ac_new_set in
  2227. set,)
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2229. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2230. ac_cache_corrupted=: ;;
  2231. ,set)
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2233. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2234. ac_cache_corrupted=: ;;
  2235. ,);;
  2236. *)
  2237. if test "x$ac_old_val" != "x$ac_new_val"; then
  2238. # differences in whitespace do not lead to failure.
  2239. ac_old_val_w=`echo x $ac_old_val`
  2240. ac_new_val_w=`echo x $ac_new_val`
  2241. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2244. ac_cache_corrupted=:
  2245. else
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2247. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2248. eval $ac_var=\$ac_old_val
  2249. fi
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2251. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2253. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2254. fi;;
  2255. esac
  2256. # Pass precious variables to config.status.
  2257. if test "$ac_new_set" = set; then
  2258. case $ac_new_val in
  2259. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2260. *) ac_arg=$ac_var=$ac_new_val ;;
  2261. esac
  2262. case " $ac_configure_args " in
  2263. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2264. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2265. esac
  2266. fi
  2267. done
  2268. if $ac_cache_corrupted; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2272. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2273. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2274. fi
  2275. ## -------------------- ##
  2276. ## Main body of script. ##
  2277. ## -------------------- ##
  2278. ac_ext=c
  2279. ac_cpp='$CPP $CPPFLAGS'
  2280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2283. ac_aux_dir=
  2284. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2285. if test -f "$ac_dir/install-sh"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/install-sh -c"
  2288. break
  2289. elif test -f "$ac_dir/install.sh"; then
  2290. ac_aux_dir=$ac_dir
  2291. ac_install_sh="$ac_aux_dir/install.sh -c"
  2292. break
  2293. elif test -f "$ac_dir/shtool"; then
  2294. ac_aux_dir=$ac_dir
  2295. ac_install_sh="$ac_aux_dir/shtool install -c"
  2296. break
  2297. fi
  2298. done
  2299. if test -z "$ac_aux_dir"; then
  2300. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2301. fi
  2302. # These three variables are undocumented and unsupported,
  2303. # and are intended to be withdrawn in a future Autoconf release.
  2304. # They can cause serious problems if a builder's source tree is in a directory
  2305. # whose full name contains unusual characters.
  2306. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2307. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2308. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2309. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2310. ac_ext=c
  2311. ac_cpp='$CPP $CPPFLAGS'
  2312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2315. if test -n "$ac_tool_prefix"; then
  2316. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2317. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2319. $as_echo_n "checking for $ac_word... " >&6; }
  2320. if ${ac_cv_prog_CC+:} false; then :
  2321. $as_echo_n "(cached) " >&6
  2322. else
  2323. if test -n "$CC"; then
  2324. ac_cv_prog_CC="$CC" # Let the user override the test.
  2325. else
  2326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2327. for as_dir in $PATH
  2328. do
  2329. IFS=$as_save_IFS
  2330. test -z "$as_dir" && as_dir=.
  2331. for ac_exec_ext in '' $ac_executable_extensions; do
  2332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2333. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2335. break 2
  2336. fi
  2337. done
  2338. done
  2339. IFS=$as_save_IFS
  2340. fi
  2341. fi
  2342. CC=$ac_cv_prog_CC
  2343. if test -n "$CC"; then
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2345. $as_echo "$CC" >&6; }
  2346. else
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2348. $as_echo "no" >&6; }
  2349. fi
  2350. fi
  2351. if test -z "$ac_cv_prog_CC"; then
  2352. ac_ct_CC=$CC
  2353. # Extract the first word of "gcc", so it can be a program name with args.
  2354. set dummy gcc; ac_word=$2
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2356. $as_echo_n "checking for $ac_word... " >&6; }
  2357. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2358. $as_echo_n "(cached) " >&6
  2359. else
  2360. if test -n "$ac_ct_CC"; then
  2361. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2362. else
  2363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2364. for as_dir in $PATH
  2365. do
  2366. IFS=$as_save_IFS
  2367. test -z "$as_dir" && as_dir=.
  2368. for ac_exec_ext in '' $ac_executable_extensions; do
  2369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2370. ac_cv_prog_ac_ct_CC="gcc"
  2371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2372. break 2
  2373. fi
  2374. done
  2375. done
  2376. IFS=$as_save_IFS
  2377. fi
  2378. fi
  2379. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2380. if test -n "$ac_ct_CC"; then
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2382. $as_echo "$ac_ct_CC" >&6; }
  2383. else
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2385. $as_echo "no" >&6; }
  2386. fi
  2387. if test "x$ac_ct_CC" = x; then
  2388. CC=""
  2389. else
  2390. case $cross_compiling:$ac_tool_warned in
  2391. yes:)
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2393. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2394. ac_tool_warned=yes ;;
  2395. esac
  2396. CC=$ac_ct_CC
  2397. fi
  2398. else
  2399. CC="$ac_cv_prog_CC"
  2400. fi
  2401. if test -z "$CC"; then
  2402. if test -n "$ac_tool_prefix"; then
  2403. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2404. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if ${ac_cv_prog_CC+:} false; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$CC"; then
  2411. ac_cv_prog_CC="$CC" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. CC=$ac_cv_prog_CC
  2430. if test -n "$CC"; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2432. $as_echo "$CC" >&6; }
  2433. else
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. fi
  2438. fi
  2439. if test -z "$CC"; then
  2440. # Extract the first word of "cc", so it can be a program name with args.
  2441. set dummy cc; 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 ${ac_cv_prog_CC+:} false; 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. ac_prog_rejected=no
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2458. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2459. ac_prog_rejected=yes
  2460. continue
  2461. fi
  2462. ac_cv_prog_CC="cc"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. if test $ac_prog_rejected = yes; then
  2470. # We found a bogon in the path, so make sure we never use it.
  2471. set dummy $ac_cv_prog_CC
  2472. shift
  2473. if test $# != 0; then
  2474. # We chose a different compiler from the bogus one.
  2475. # However, it has the same basename, so the bogon will be chosen
  2476. # first if we set CC to just the basename; use the full file name.
  2477. shift
  2478. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2479. fi
  2480. fi
  2481. fi
  2482. fi
  2483. CC=$ac_cv_prog_CC
  2484. if test -n "$CC"; then
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2486. $as_echo "$CC" >&6; }
  2487. else
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2489. $as_echo "no" >&6; }
  2490. fi
  2491. fi
  2492. if test -z "$CC"; then
  2493. if test -n "$ac_tool_prefix"; then
  2494. for ac_prog in cl.exe
  2495. do
  2496. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2497. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2499. $as_echo_n "checking for $ac_word... " >&6; }
  2500. if ${ac_cv_prog_CC+:} false; then :
  2501. $as_echo_n "(cached) " >&6
  2502. else
  2503. if test -n "$CC"; then
  2504. ac_cv_prog_CC="$CC" # Let the user override the test.
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. for ac_exec_ext in '' $ac_executable_extensions; do
  2512. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2513. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2515. break 2
  2516. fi
  2517. done
  2518. done
  2519. IFS=$as_save_IFS
  2520. fi
  2521. fi
  2522. CC=$ac_cv_prog_CC
  2523. if test -n "$CC"; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2525. $as_echo "$CC" >&6; }
  2526. else
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2528. $as_echo "no" >&6; }
  2529. fi
  2530. test -n "$CC" && break
  2531. done
  2532. fi
  2533. if test -z "$CC"; then
  2534. ac_ct_CC=$CC
  2535. for ac_prog in cl.exe
  2536. do
  2537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2538. set dummy $ac_prog; ac_word=$2
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2540. $as_echo_n "checking for $ac_word... " >&6; }
  2541. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. if test -n "$ac_ct_CC"; then
  2545. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2546. else
  2547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2548. for as_dir in $PATH
  2549. do
  2550. IFS=$as_save_IFS
  2551. test -z "$as_dir" && as_dir=.
  2552. for ac_exec_ext in '' $ac_executable_extensions; do
  2553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2554. ac_cv_prog_ac_ct_CC="$ac_prog"
  2555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2556. break 2
  2557. fi
  2558. done
  2559. done
  2560. IFS=$as_save_IFS
  2561. fi
  2562. fi
  2563. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2564. if test -n "$ac_ct_CC"; then
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2566. $as_echo "$ac_ct_CC" >&6; }
  2567. else
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2569. $as_echo "no" >&6; }
  2570. fi
  2571. test -n "$ac_ct_CC" && break
  2572. done
  2573. if test "x$ac_ct_CC" = x; then
  2574. CC=""
  2575. else
  2576. case $cross_compiling:$ac_tool_warned in
  2577. yes:)
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2580. ac_tool_warned=yes ;;
  2581. esac
  2582. CC=$ac_ct_CC
  2583. fi
  2584. fi
  2585. fi
  2586. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2588. as_fn_error $? "no acceptable C compiler found in \$PATH
  2589. See \`config.log' for more details" "$LINENO" 5; }
  2590. # Provide some information about the compiler.
  2591. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2592. set X $ac_compile
  2593. ac_compiler=$2
  2594. for ac_option in --version -v -V -qversion; do
  2595. { { ac_try="$ac_compiler $ac_option >&5"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2601. $as_echo "$ac_try_echo"; } >&5
  2602. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2603. ac_status=$?
  2604. if test -s conftest.err; then
  2605. sed '10a\
  2606. ... rest of stderr output deleted ...
  2607. 10q' conftest.err >conftest.er1
  2608. cat conftest.er1 >&5
  2609. fi
  2610. rm -f conftest.er1 conftest.err
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2612. test $ac_status = 0; }
  2613. done
  2614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2615. /* end confdefs.h. */
  2616. int
  2617. main ()
  2618. {
  2619. ;
  2620. return 0;
  2621. }
  2622. _ACEOF
  2623. ac_clean_files_save=$ac_clean_files
  2624. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2625. # Try to create an executable without -o first, disregard a.out.
  2626. # It will help us diagnose broken compilers, and finding out an intuition
  2627. # of exeext.
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2629. $as_echo_n "checking whether the C compiler works... " >&6; }
  2630. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2631. # The possible output files:
  2632. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2633. ac_rmfiles=
  2634. for ac_file in $ac_files
  2635. do
  2636. case $ac_file in
  2637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2638. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2639. esac
  2640. done
  2641. rm -f $ac_rmfiles
  2642. if { { ac_try="$ac_link_default"
  2643. case "(($ac_try" in
  2644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2645. *) ac_try_echo=$ac_try;;
  2646. esac
  2647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2648. $as_echo "$ac_try_echo"; } >&5
  2649. (eval "$ac_link_default") 2>&5
  2650. ac_status=$?
  2651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2652. test $ac_status = 0; }; then :
  2653. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2654. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2655. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2656. # so that the user can short-circuit this test for compilers unknown to
  2657. # Autoconf.
  2658. for ac_file in $ac_files ''
  2659. do
  2660. test -f "$ac_file" || continue
  2661. case $ac_file in
  2662. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2663. ;;
  2664. [ab].out )
  2665. # We found the default executable, but exeext='' is most
  2666. # certainly right.
  2667. break;;
  2668. *.* )
  2669. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2670. then :; else
  2671. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2672. fi
  2673. # We set ac_cv_exeext here because the later test for it is not
  2674. # safe: cross compilers may not add the suffix if given an `-o'
  2675. # argument, so we may need to know it at that point already.
  2676. # Even if this section looks crufty: it has the advantage of
  2677. # actually working.
  2678. break;;
  2679. * )
  2680. break;;
  2681. esac
  2682. done
  2683. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2684. else
  2685. ac_file=''
  2686. fi
  2687. if test -z "$ac_file"; then :
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. $as_echo "$as_me: failed program was:" >&5
  2691. sed 's/^/| /' conftest.$ac_ext >&5
  2692. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2693. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2694. as_fn_error 77 "C compiler cannot create executables
  2695. See \`config.log' for more details" "$LINENO" 5; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2698. $as_echo "yes" >&6; }
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2701. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2703. $as_echo "$ac_file" >&6; }
  2704. ac_exeext=$ac_cv_exeext
  2705. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2706. ac_clean_files=$ac_clean_files_save
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2708. $as_echo_n "checking for suffix of executables... " >&6; }
  2709. if { { ac_try="$ac_link"
  2710. case "(($ac_try" in
  2711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2712. *) ac_try_echo=$ac_try;;
  2713. esac
  2714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2715. $as_echo "$ac_try_echo"; } >&5
  2716. (eval "$ac_link") 2>&5
  2717. ac_status=$?
  2718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2719. test $ac_status = 0; }; then :
  2720. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2721. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2722. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2723. # `rm'.
  2724. for ac_file in conftest.exe conftest conftest.*; do
  2725. test -f "$ac_file" || continue
  2726. case $ac_file in
  2727. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2728. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2729. break;;
  2730. * ) break;;
  2731. esac
  2732. done
  2733. else
  2734. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2735. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2736. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2737. See \`config.log' for more details" "$LINENO" 5; }
  2738. fi
  2739. rm -f conftest conftest$ac_cv_exeext
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2741. $as_echo "$ac_cv_exeext" >&6; }
  2742. rm -f conftest.$ac_ext
  2743. EXEEXT=$ac_cv_exeext
  2744. ac_exeext=$EXEEXT
  2745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2746. /* end confdefs.h. */
  2747. #include <stdio.h>
  2748. int
  2749. main ()
  2750. {
  2751. FILE *f = fopen ("conftest.out", "w");
  2752. return ferror (f) || fclose (f) != 0;
  2753. ;
  2754. return 0;
  2755. }
  2756. _ACEOF
  2757. ac_clean_files="$ac_clean_files conftest.out"
  2758. # Check that the compiler produces executables we can run. If not, either
  2759. # the compiler is broken, or we cross compile.
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2761. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2762. if test "$cross_compiling" != yes; then
  2763. { { ac_try="$ac_link"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2769. $as_echo "$ac_try_echo"; } >&5
  2770. (eval "$ac_link") 2>&5
  2771. ac_status=$?
  2772. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2773. test $ac_status = 0; }
  2774. if { ac_try='./conftest$ac_cv_exeext'
  2775. { { case "(($ac_try" in
  2776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2777. *) ac_try_echo=$ac_try;;
  2778. esac
  2779. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2780. $as_echo "$ac_try_echo"; } >&5
  2781. (eval "$ac_try") 2>&5
  2782. ac_status=$?
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2784. test $ac_status = 0; }; }; then
  2785. cross_compiling=no
  2786. else
  2787. if test "$cross_compiling" = maybe; then
  2788. cross_compiling=yes
  2789. else
  2790. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2791. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2792. as_fn_error $? "cannot run C compiled programs.
  2793. If you meant to cross compile, use \`--host'.
  2794. See \`config.log' for more details" "$LINENO" 5; }
  2795. fi
  2796. fi
  2797. fi
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2799. $as_echo "$cross_compiling" >&6; }
  2800. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2801. ac_clean_files=$ac_clean_files_save
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2803. $as_echo_n "checking for suffix of object files... " >&6; }
  2804. if ${ac_cv_objext+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. int
  2810. main ()
  2811. {
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. rm -f conftest.o conftest.obj
  2817. if { { ac_try="$ac_compile"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2823. $as_echo "$ac_try_echo"; } >&5
  2824. (eval "$ac_compile") 2>&5
  2825. ac_status=$?
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2827. test $ac_status = 0; }; then :
  2828. for ac_file in conftest.o conftest.obj conftest.*; do
  2829. test -f "$ac_file" || continue;
  2830. case $ac_file in
  2831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2832. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2833. break;;
  2834. esac
  2835. done
  2836. else
  2837. $as_echo "$as_me: failed program was:" >&5
  2838. sed 's/^/| /' conftest.$ac_ext >&5
  2839. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2841. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2842. See \`config.log' for more details" "$LINENO" 5; }
  2843. fi
  2844. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2845. fi
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2847. $as_echo "$ac_cv_objext" >&6; }
  2848. OBJEXT=$ac_cv_objext
  2849. ac_objext=$OBJEXT
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2851. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2852. if ${ac_cv_c_compiler_gnu+:} false; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. #ifndef __GNUC__
  2861. choke me
  2862. #endif
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. if ac_fn_c_try_compile "$LINENO"; then :
  2868. ac_compiler_gnu=yes
  2869. else
  2870. ac_compiler_gnu=no
  2871. fi
  2872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2873. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2874. fi
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2876. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2877. if test $ac_compiler_gnu = yes; then
  2878. GCC=yes
  2879. else
  2880. GCC=
  2881. fi
  2882. ac_test_CFLAGS=${CFLAGS+set}
  2883. ac_save_CFLAGS=$CFLAGS
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2885. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2886. if ${ac_cv_prog_cc_g+:} false; then :
  2887. $as_echo_n "(cached) " >&6
  2888. else
  2889. ac_save_c_werror_flag=$ac_c_werror_flag
  2890. ac_c_werror_flag=yes
  2891. ac_cv_prog_cc_g=no
  2892. CFLAGS="-g"
  2893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2894. /* end confdefs.h. */
  2895. int
  2896. main ()
  2897. {
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. if ac_fn_c_try_compile "$LINENO"; then :
  2903. ac_cv_prog_cc_g=yes
  2904. else
  2905. CFLAGS=""
  2906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2907. /* end confdefs.h. */
  2908. int
  2909. main ()
  2910. {
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. if ac_fn_c_try_compile "$LINENO"; then :
  2916. else
  2917. ac_c_werror_flag=$ac_save_c_werror_flag
  2918. CFLAGS="-g"
  2919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2920. /* end confdefs.h. */
  2921. int
  2922. main ()
  2923. {
  2924. ;
  2925. return 0;
  2926. }
  2927. _ACEOF
  2928. if ac_fn_c_try_compile "$LINENO"; then :
  2929. ac_cv_prog_cc_g=yes
  2930. fi
  2931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2932. fi
  2933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2934. fi
  2935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2936. ac_c_werror_flag=$ac_save_c_werror_flag
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2939. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2940. if test "$ac_test_CFLAGS" = set; then
  2941. CFLAGS=$ac_save_CFLAGS
  2942. elif test $ac_cv_prog_cc_g = yes; then
  2943. if test "$GCC" = yes; then
  2944. CFLAGS="-g -O2"
  2945. else
  2946. CFLAGS="-g"
  2947. fi
  2948. else
  2949. if test "$GCC" = yes; then
  2950. CFLAGS="-O2"
  2951. else
  2952. CFLAGS=
  2953. fi
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2956. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2957. if ${ac_cv_prog_cc_c89+:} false; then :
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. ac_cv_prog_cc_c89=no
  2961. ac_save_CC=$CC
  2962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2963. /* end confdefs.h. */
  2964. #include <stdarg.h>
  2965. #include <stdio.h>
  2966. #include <sys/types.h>
  2967. #include <sys/stat.h>
  2968. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2969. struct buf { int x; };
  2970. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2971. static char *e (p, i)
  2972. char **p;
  2973. int i;
  2974. {
  2975. return p[i];
  2976. }
  2977. static char *f (char * (*g) (char **, int), char **p, ...)
  2978. {
  2979. char *s;
  2980. va_list v;
  2981. va_start (v,p);
  2982. s = g (p, va_arg (v,int));
  2983. va_end (v);
  2984. return s;
  2985. }
  2986. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2987. function prototypes and stuff, but not '\xHH' hex character constants.
  2988. These don't provoke an error unfortunately, instead are silently treated
  2989. as 'x'. The following induces an error, until -std is added to get
  2990. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2991. array size at least. It's necessary to write '\x00'==0 to get something
  2992. that's true only with -std. */
  2993. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2994. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2995. inside strings and character constants. */
  2996. #define FOO(x) 'x'
  2997. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2998. int test (int i, double x);
  2999. struct s1 {int (*f) (int a);};
  3000. struct s2 {int (*f) (double a);};
  3001. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3002. int argc;
  3003. char **argv;
  3004. int
  3005. main ()
  3006. {
  3007. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3008. ;
  3009. return 0;
  3010. }
  3011. _ACEOF
  3012. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3013. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3014. do
  3015. CC="$ac_save_CC $ac_arg"
  3016. if ac_fn_c_try_compile "$LINENO"; then :
  3017. ac_cv_prog_cc_c89=$ac_arg
  3018. fi
  3019. rm -f core conftest.err conftest.$ac_objext
  3020. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3021. done
  3022. rm -f conftest.$ac_ext
  3023. CC=$ac_save_CC
  3024. fi
  3025. # AC_CACHE_VAL
  3026. case "x$ac_cv_prog_cc_c89" in
  3027. x)
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3029. $as_echo "none needed" >&6; } ;;
  3030. xno)
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3032. $as_echo "unsupported" >&6; } ;;
  3033. *)
  3034. CC="$CC $ac_cv_prog_cc_c89"
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3036. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3037. esac
  3038. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3039. fi
  3040. ac_ext=c
  3041. ac_cpp='$CPP $CPPFLAGS'
  3042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3045. ac_ext=c
  3046. ac_cpp='$CPP $CPPFLAGS'
  3047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3051. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3052. # On Suns, sometimes $CPP names a directory.
  3053. if test -n "$CPP" && test -d "$CPP"; then
  3054. CPP=
  3055. fi
  3056. if test -z "$CPP"; then
  3057. if ${ac_cv_prog_CPP+:} false; then :
  3058. $as_echo_n "(cached) " >&6
  3059. else
  3060. # Double quotes because CPP needs to be expanded
  3061. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3062. do
  3063. ac_preproc_ok=false
  3064. for ac_c_preproc_warn_flag in '' yes
  3065. do
  3066. # Use a header file that comes with gcc, so configuring glibc
  3067. # with a fresh cross-compiler works.
  3068. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3069. # <limits.h> exists even on freestanding compilers.
  3070. # On the NeXT, cc -E runs the code through the compiler's parser,
  3071. # not just through cpp. "Syntax error" is here to catch this case.
  3072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3073. /* end confdefs.h. */
  3074. #ifdef __STDC__
  3075. # include <limits.h>
  3076. #else
  3077. # include <assert.h>
  3078. #endif
  3079. Syntax error
  3080. _ACEOF
  3081. if ac_fn_c_try_cpp "$LINENO"; then :
  3082. else
  3083. # Broken: fails on valid input.
  3084. continue
  3085. fi
  3086. rm -f conftest.err conftest.i conftest.$ac_ext
  3087. # OK, works on sane cases. Now check whether nonexistent headers
  3088. # can be detected and how.
  3089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3090. /* end confdefs.h. */
  3091. #include <ac_nonexistent.h>
  3092. _ACEOF
  3093. if ac_fn_c_try_cpp "$LINENO"; then :
  3094. # Broken: success on invalid input.
  3095. continue
  3096. else
  3097. # Passes both tests.
  3098. ac_preproc_ok=:
  3099. break
  3100. fi
  3101. rm -f conftest.err conftest.i conftest.$ac_ext
  3102. done
  3103. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3104. rm -f conftest.i conftest.err conftest.$ac_ext
  3105. if $ac_preproc_ok; then :
  3106. break
  3107. fi
  3108. done
  3109. ac_cv_prog_CPP=$CPP
  3110. fi
  3111. CPP=$ac_cv_prog_CPP
  3112. else
  3113. ac_cv_prog_CPP=$CPP
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3116. $as_echo "$CPP" >&6; }
  3117. ac_preproc_ok=false
  3118. for ac_c_preproc_warn_flag in '' yes
  3119. do
  3120. # Use a header file that comes with gcc, so configuring glibc
  3121. # with a fresh cross-compiler works.
  3122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3123. # <limits.h> exists even on freestanding compilers.
  3124. # On the NeXT, cc -E runs the code through the compiler's parser,
  3125. # not just through cpp. "Syntax error" is here to catch this case.
  3126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3127. /* end confdefs.h. */
  3128. #ifdef __STDC__
  3129. # include <limits.h>
  3130. #else
  3131. # include <assert.h>
  3132. #endif
  3133. Syntax error
  3134. _ACEOF
  3135. if ac_fn_c_try_cpp "$LINENO"; then :
  3136. else
  3137. # Broken: fails on valid input.
  3138. continue
  3139. fi
  3140. rm -f conftest.err conftest.i conftest.$ac_ext
  3141. # OK, works on sane cases. Now check whether nonexistent headers
  3142. # can be detected and how.
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. #include <ac_nonexistent.h>
  3146. _ACEOF
  3147. if ac_fn_c_try_cpp "$LINENO"; then :
  3148. # Broken: success on invalid input.
  3149. continue
  3150. else
  3151. # Passes both tests.
  3152. ac_preproc_ok=:
  3153. break
  3154. fi
  3155. rm -f conftest.err conftest.i conftest.$ac_ext
  3156. done
  3157. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3158. rm -f conftest.i conftest.err conftest.$ac_ext
  3159. if $ac_preproc_ok; then :
  3160. else
  3161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3163. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3164. See \`config.log' for more details" "$LINENO" 5; }
  3165. fi
  3166. ac_ext=c
  3167. ac_cpp='$CPP $CPPFLAGS'
  3168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3172. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3173. if ${ac_cv_path_GREP+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. if test -z "$GREP"; then
  3177. ac_path_GREP_found=false
  3178. # Loop through the user's path and test for each of PROGNAME-LIST
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_prog in grep ggrep; do
  3185. for ac_exec_ext in '' $ac_executable_extensions; do
  3186. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3187. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3188. # Check for GNU ac_path_GREP and select it if it is found.
  3189. # Check for GNU $ac_path_GREP
  3190. case `"$ac_path_GREP" --version 2>&1` in
  3191. *GNU*)
  3192. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3193. *)
  3194. ac_count=0
  3195. $as_echo_n 0123456789 >"conftest.in"
  3196. while :
  3197. do
  3198. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3199. mv "conftest.tmp" "conftest.in"
  3200. cp "conftest.in" "conftest.nl"
  3201. $as_echo 'GREP' >> "conftest.nl"
  3202. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3203. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3204. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3205. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3206. # Best one so far, save it but keep looking for a better one
  3207. ac_cv_path_GREP="$ac_path_GREP"
  3208. ac_path_GREP_max=$ac_count
  3209. fi
  3210. # 10*(2^10) chars as input seems more than enough
  3211. test $ac_count -gt 10 && break
  3212. done
  3213. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3214. esac
  3215. $ac_path_GREP_found && break 3
  3216. done
  3217. done
  3218. done
  3219. IFS=$as_save_IFS
  3220. if test -z "$ac_cv_path_GREP"; then
  3221. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3222. fi
  3223. else
  3224. ac_cv_path_GREP=$GREP
  3225. fi
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3228. $as_echo "$ac_cv_path_GREP" >&6; }
  3229. GREP="$ac_cv_path_GREP"
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3231. $as_echo_n "checking for egrep... " >&6; }
  3232. if ${ac_cv_path_EGREP+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3236. then ac_cv_path_EGREP="$GREP -E"
  3237. else
  3238. if test -z "$EGREP"; then
  3239. ac_path_EGREP_found=false
  3240. # Loop through the user's path and test for each of PROGNAME-LIST
  3241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3242. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3243. do
  3244. IFS=$as_save_IFS
  3245. test -z "$as_dir" && as_dir=.
  3246. for ac_prog in egrep; do
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3249. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3250. # Check for GNU ac_path_EGREP and select it if it is found.
  3251. # Check for GNU $ac_path_EGREP
  3252. case `"$ac_path_EGREP" --version 2>&1` in
  3253. *GNU*)
  3254. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3255. *)
  3256. ac_count=0
  3257. $as_echo_n 0123456789 >"conftest.in"
  3258. while :
  3259. do
  3260. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3261. mv "conftest.tmp" "conftest.in"
  3262. cp "conftest.in" "conftest.nl"
  3263. $as_echo 'EGREP' >> "conftest.nl"
  3264. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3265. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3266. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3267. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3268. # Best one so far, save it but keep looking for a better one
  3269. ac_cv_path_EGREP="$ac_path_EGREP"
  3270. ac_path_EGREP_max=$ac_count
  3271. fi
  3272. # 10*(2^10) chars as input seems more than enough
  3273. test $ac_count -gt 10 && break
  3274. done
  3275. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3276. esac
  3277. $ac_path_EGREP_found && break 3
  3278. done
  3279. done
  3280. done
  3281. IFS=$as_save_IFS
  3282. if test -z "$ac_cv_path_EGREP"; then
  3283. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3284. fi
  3285. else
  3286. ac_cv_path_EGREP=$EGREP
  3287. fi
  3288. fi
  3289. fi
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3291. $as_echo "$ac_cv_path_EGREP" >&6; }
  3292. EGREP="$ac_cv_path_EGREP"
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3294. $as_echo_n "checking for ANSI C header files... " >&6; }
  3295. if ${ac_cv_header_stdc+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. #include <stdlib.h>
  3301. #include <stdarg.h>
  3302. #include <string.h>
  3303. #include <float.h>
  3304. int
  3305. main ()
  3306. {
  3307. ;
  3308. return 0;
  3309. }
  3310. _ACEOF
  3311. if ac_fn_c_try_compile "$LINENO"; then :
  3312. ac_cv_header_stdc=yes
  3313. else
  3314. ac_cv_header_stdc=no
  3315. fi
  3316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3317. if test $ac_cv_header_stdc = yes; then
  3318. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. #include <string.h>
  3322. _ACEOF
  3323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3324. $EGREP "memchr" >/dev/null 2>&1; then :
  3325. else
  3326. ac_cv_header_stdc=no
  3327. fi
  3328. rm -f conftest*
  3329. fi
  3330. if test $ac_cv_header_stdc = yes; then
  3331. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. #include <stdlib.h>
  3335. _ACEOF
  3336. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3337. $EGREP "free" >/dev/null 2>&1; then :
  3338. else
  3339. ac_cv_header_stdc=no
  3340. fi
  3341. rm -f conftest*
  3342. fi
  3343. if test $ac_cv_header_stdc = yes; then
  3344. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3345. if test "$cross_compiling" = yes; then :
  3346. :
  3347. else
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. #include <ctype.h>
  3351. #include <stdlib.h>
  3352. #if ((' ' & 0x0FF) == 0x020)
  3353. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3354. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3355. #else
  3356. # define ISLOWER(c) \
  3357. (('a' <= (c) && (c) <= 'i') \
  3358. || ('j' <= (c) && (c) <= 'r') \
  3359. || ('s' <= (c) && (c) <= 'z'))
  3360. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3361. #endif
  3362. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3363. int
  3364. main ()
  3365. {
  3366. int i;
  3367. for (i = 0; i < 256; i++)
  3368. if (XOR (islower (i), ISLOWER (i))
  3369. || toupper (i) != TOUPPER (i))
  3370. return 2;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. if ac_fn_c_try_run "$LINENO"; then :
  3375. else
  3376. ac_cv_header_stdc=no
  3377. fi
  3378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3380. fi
  3381. fi
  3382. fi
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3384. $as_echo "$ac_cv_header_stdc" >&6; }
  3385. if test $ac_cv_header_stdc = yes; then
  3386. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3387. fi
  3388. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3389. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3390. inttypes.h stdint.h unistd.h
  3391. do :
  3392. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3393. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3394. "
  3395. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3396. cat >>confdefs.h <<_ACEOF
  3397. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3398. _ACEOF
  3399. fi
  3400. done
  3401. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3402. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3403. MINIX=yes
  3404. else
  3405. MINIX=
  3406. fi
  3407. if test "$MINIX" = yes; then
  3408. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3409. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3410. $as_echo "#define _MINIX 1" >>confdefs.h
  3411. fi
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3413. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3414. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3418. /* end confdefs.h. */
  3419. # define __EXTENSIONS__ 1
  3420. $ac_includes_default
  3421. int
  3422. main ()
  3423. {
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. if ac_fn_c_try_compile "$LINENO"; then :
  3429. ac_cv_safe_to_define___extensions__=yes
  3430. else
  3431. ac_cv_safe_to_define___extensions__=no
  3432. fi
  3433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3436. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3437. test $ac_cv_safe_to_define___extensions__ = yes &&
  3438. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3439. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3440. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3441. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3442. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3443. # Checks for programs.
  3444. ac_ext=c
  3445. ac_cpp='$CPP $CPPFLAGS'
  3446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3449. if test -n "$ac_tool_prefix"; then
  3450. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3451. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3453. $as_echo_n "checking for $ac_word... " >&6; }
  3454. if ${ac_cv_prog_CC+:} false; then :
  3455. $as_echo_n "(cached) " >&6
  3456. else
  3457. if test -n "$CC"; then
  3458. ac_cv_prog_CC="$CC" # Let the user override the test.
  3459. else
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. test -z "$as_dir" && as_dir=.
  3465. for ac_exec_ext in '' $ac_executable_extensions; do
  3466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3467. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3469. break 2
  3470. fi
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. $as_echo "$CC" >&6; }
  3480. else
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. $as_echo "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$ac_cv_prog_CC"; then
  3486. ac_ct_CC=$CC
  3487. # Extract the first word of "gcc", so it can be a program name with args.
  3488. set dummy gcc; ac_word=$2
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3490. $as_echo_n "checking for $ac_word... " >&6; }
  3491. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3492. $as_echo_n "(cached) " >&6
  3493. else
  3494. if test -n "$ac_ct_CC"; then
  3495. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3496. else
  3497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3498. for as_dir in $PATH
  3499. do
  3500. IFS=$as_save_IFS
  3501. test -z "$as_dir" && as_dir=.
  3502. for ac_exec_ext in '' $ac_executable_extensions; do
  3503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3504. ac_cv_prog_ac_ct_CC="gcc"
  3505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3506. break 2
  3507. fi
  3508. done
  3509. done
  3510. IFS=$as_save_IFS
  3511. fi
  3512. fi
  3513. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3514. if test -n "$ac_ct_CC"; then
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3516. $as_echo "$ac_ct_CC" >&6; }
  3517. else
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3519. $as_echo "no" >&6; }
  3520. fi
  3521. if test "x$ac_ct_CC" = x; then
  3522. CC=""
  3523. else
  3524. case $cross_compiling:$ac_tool_warned in
  3525. yes:)
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3528. ac_tool_warned=yes ;;
  3529. esac
  3530. CC=$ac_ct_CC
  3531. fi
  3532. else
  3533. CC="$ac_cv_prog_CC"
  3534. fi
  3535. if test -z "$CC"; then
  3536. if test -n "$ac_tool_prefix"; then
  3537. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3538. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3540. $as_echo_n "checking for $ac_word... " >&6; }
  3541. if ${ac_cv_prog_CC+:} false; then :
  3542. $as_echo_n "(cached) " >&6
  3543. else
  3544. if test -n "$CC"; then
  3545. ac_cv_prog_CC="$CC" # Let the user override the test.
  3546. else
  3547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3548. for as_dir in $PATH
  3549. do
  3550. IFS=$as_save_IFS
  3551. test -z "$as_dir" && as_dir=.
  3552. for ac_exec_ext in '' $ac_executable_extensions; do
  3553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3554. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3556. break 2
  3557. fi
  3558. done
  3559. done
  3560. IFS=$as_save_IFS
  3561. fi
  3562. fi
  3563. CC=$ac_cv_prog_CC
  3564. if test -n "$CC"; then
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3566. $as_echo "$CC" >&6; }
  3567. else
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3569. $as_echo "no" >&6; }
  3570. fi
  3571. fi
  3572. fi
  3573. if test -z "$CC"; then
  3574. # Extract the first word of "cc", so it can be a program name with args.
  3575. set dummy cc; ac_word=$2
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3577. $as_echo_n "checking for $ac_word... " >&6; }
  3578. if ${ac_cv_prog_CC+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if test -n "$CC"; then
  3582. ac_cv_prog_CC="$CC" # Let the user override the test.
  3583. else
  3584. ac_prog_rejected=no
  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. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3593. ac_prog_rejected=yes
  3594. continue
  3595. fi
  3596. ac_cv_prog_CC="cc"
  3597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3598. break 2
  3599. fi
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. if test $ac_prog_rejected = yes; then
  3604. # We found a bogon in the path, so make sure we never use it.
  3605. set dummy $ac_cv_prog_CC
  3606. shift
  3607. if test $# != 0; then
  3608. # We chose a different compiler from the bogus one.
  3609. # However, it has the same basename, so the bogon will be chosen
  3610. # first if we set CC to just the basename; use the full file name.
  3611. shift
  3612. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3613. fi
  3614. fi
  3615. fi
  3616. fi
  3617. CC=$ac_cv_prog_CC
  3618. if test -n "$CC"; then
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3620. $as_echo "$CC" >&6; }
  3621. else
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3623. $as_echo "no" >&6; }
  3624. fi
  3625. fi
  3626. if test -z "$CC"; then
  3627. if test -n "$ac_tool_prefix"; then
  3628. for ac_prog in cl.exe
  3629. do
  3630. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3631. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3633. $as_echo_n "checking for $ac_word... " >&6; }
  3634. if ${ac_cv_prog_CC+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -n "$CC"; then
  3638. ac_cv_prog_CC="$CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. test -z "$as_dir" && as_dir=.
  3645. for ac_exec_ext in '' $ac_executable_extensions; do
  3646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3647. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3649. break 2
  3650. fi
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. fi
  3655. fi
  3656. CC=$ac_cv_prog_CC
  3657. if test -n "$CC"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3659. $as_echo "$CC" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. test -n "$CC" && break
  3665. done
  3666. fi
  3667. if test -z "$CC"; then
  3668. ac_ct_CC=$CC
  3669. for ac_prog in cl.exe
  3670. do
  3671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3672. set dummy $ac_prog; ac_word=$2
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3674. $as_echo_n "checking for $ac_word... " >&6; }
  3675. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3676. $as_echo_n "(cached) " >&6
  3677. else
  3678. if test -n "$ac_ct_CC"; then
  3679. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3680. else
  3681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3682. for as_dir in $PATH
  3683. do
  3684. IFS=$as_save_IFS
  3685. test -z "$as_dir" && as_dir=.
  3686. for ac_exec_ext in '' $ac_executable_extensions; do
  3687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3688. ac_cv_prog_ac_ct_CC="$ac_prog"
  3689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3690. break 2
  3691. fi
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. fi
  3696. fi
  3697. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3698. if test -n "$ac_ct_CC"; then
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3700. $as_echo "$ac_ct_CC" >&6; }
  3701. else
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3703. $as_echo "no" >&6; }
  3704. fi
  3705. test -n "$ac_ct_CC" && break
  3706. done
  3707. if test "x$ac_ct_CC" = x; then
  3708. CC=""
  3709. else
  3710. case $cross_compiling:$ac_tool_warned in
  3711. yes:)
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3714. ac_tool_warned=yes ;;
  3715. esac
  3716. CC=$ac_ct_CC
  3717. fi
  3718. fi
  3719. fi
  3720. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3721. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3722. as_fn_error $? "no acceptable C compiler found in \$PATH
  3723. See \`config.log' for more details" "$LINENO" 5; }
  3724. # Provide some information about the compiler.
  3725. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3726. set X $ac_compile
  3727. ac_compiler=$2
  3728. for ac_option in --version -v -V -qversion; do
  3729. { { ac_try="$ac_compiler $ac_option >&5"
  3730. case "(($ac_try" in
  3731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3732. *) ac_try_echo=$ac_try;;
  3733. esac
  3734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3735. $as_echo "$ac_try_echo"; } >&5
  3736. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3737. ac_status=$?
  3738. if test -s conftest.err; then
  3739. sed '10a\
  3740. ... rest of stderr output deleted ...
  3741. 10q' conftest.err >conftest.er1
  3742. cat conftest.er1 >&5
  3743. fi
  3744. rm -f conftest.er1 conftest.err
  3745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3746. test $ac_status = 0; }
  3747. done
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3749. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3750. if ${ac_cv_c_compiler_gnu+:} false; then :
  3751. $as_echo_n "(cached) " >&6
  3752. else
  3753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3754. /* end confdefs.h. */
  3755. int
  3756. main ()
  3757. {
  3758. #ifndef __GNUC__
  3759. choke me
  3760. #endif
  3761. ;
  3762. return 0;
  3763. }
  3764. _ACEOF
  3765. if ac_fn_c_try_compile "$LINENO"; then :
  3766. ac_compiler_gnu=yes
  3767. else
  3768. ac_compiler_gnu=no
  3769. fi
  3770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3771. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3772. fi
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3774. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3775. if test $ac_compiler_gnu = yes; then
  3776. GCC=yes
  3777. else
  3778. GCC=
  3779. fi
  3780. ac_test_CFLAGS=${CFLAGS+set}
  3781. ac_save_CFLAGS=$CFLAGS
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3783. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3784. if ${ac_cv_prog_cc_g+:} false; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. ac_save_c_werror_flag=$ac_c_werror_flag
  3788. ac_c_werror_flag=yes
  3789. ac_cv_prog_cc_g=no
  3790. CFLAGS="-g"
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. int
  3794. main ()
  3795. {
  3796. ;
  3797. return 0;
  3798. }
  3799. _ACEOF
  3800. if ac_fn_c_try_compile "$LINENO"; then :
  3801. ac_cv_prog_cc_g=yes
  3802. else
  3803. CFLAGS=""
  3804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3805. /* end confdefs.h. */
  3806. int
  3807. main ()
  3808. {
  3809. ;
  3810. return 0;
  3811. }
  3812. _ACEOF
  3813. if ac_fn_c_try_compile "$LINENO"; then :
  3814. else
  3815. ac_c_werror_flag=$ac_save_c_werror_flag
  3816. CFLAGS="-g"
  3817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3818. /* end confdefs.h. */
  3819. int
  3820. main ()
  3821. {
  3822. ;
  3823. return 0;
  3824. }
  3825. _ACEOF
  3826. if ac_fn_c_try_compile "$LINENO"; then :
  3827. ac_cv_prog_cc_g=yes
  3828. fi
  3829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3830. fi
  3831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3832. fi
  3833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3834. ac_c_werror_flag=$ac_save_c_werror_flag
  3835. fi
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3837. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3838. if test "$ac_test_CFLAGS" = set; then
  3839. CFLAGS=$ac_save_CFLAGS
  3840. elif test $ac_cv_prog_cc_g = yes; then
  3841. if test "$GCC" = yes; then
  3842. CFLAGS="-g -O2"
  3843. else
  3844. CFLAGS="-g"
  3845. fi
  3846. else
  3847. if test "$GCC" = yes; then
  3848. CFLAGS="-O2"
  3849. else
  3850. CFLAGS=
  3851. fi
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3854. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3855. if ${ac_cv_prog_cc_c89+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. ac_cv_prog_cc_c89=no
  3859. ac_save_CC=$CC
  3860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3861. /* end confdefs.h. */
  3862. #include <stdarg.h>
  3863. #include <stdio.h>
  3864. #include <sys/types.h>
  3865. #include <sys/stat.h>
  3866. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3867. struct buf { int x; };
  3868. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3869. static char *e (p, i)
  3870. char **p;
  3871. int i;
  3872. {
  3873. return p[i];
  3874. }
  3875. static char *f (char * (*g) (char **, int), char **p, ...)
  3876. {
  3877. char *s;
  3878. va_list v;
  3879. va_start (v,p);
  3880. s = g (p, va_arg (v,int));
  3881. va_end (v);
  3882. return s;
  3883. }
  3884. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3885. function prototypes and stuff, but not '\xHH' hex character constants.
  3886. These don't provoke an error unfortunately, instead are silently treated
  3887. as 'x'. The following induces an error, until -std is added to get
  3888. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3889. array size at least. It's necessary to write '\x00'==0 to get something
  3890. that's true only with -std. */
  3891. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3892. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3893. inside strings and character constants. */
  3894. #define FOO(x) 'x'
  3895. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3896. int test (int i, double x);
  3897. struct s1 {int (*f) (int a);};
  3898. struct s2 {int (*f) (double a);};
  3899. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3900. int argc;
  3901. char **argv;
  3902. int
  3903. main ()
  3904. {
  3905. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3911. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3912. do
  3913. CC="$ac_save_CC $ac_arg"
  3914. if ac_fn_c_try_compile "$LINENO"; then :
  3915. ac_cv_prog_cc_c89=$ac_arg
  3916. fi
  3917. rm -f core conftest.err conftest.$ac_objext
  3918. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3919. done
  3920. rm -f conftest.$ac_ext
  3921. CC=$ac_save_CC
  3922. fi
  3923. # AC_CACHE_VAL
  3924. case "x$ac_cv_prog_cc_c89" in
  3925. x)
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3927. $as_echo "none needed" >&6; } ;;
  3928. xno)
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3930. $as_echo "unsupported" >&6; } ;;
  3931. *)
  3932. CC="$CC $ac_cv_prog_cc_c89"
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3934. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3935. esac
  3936. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3937. fi
  3938. ac_ext=c
  3939. ac_cpp='$CPP $CPPFLAGS'
  3940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3943. ac_ext=cpp
  3944. ac_cpp='$CXXCPP $CPPFLAGS'
  3945. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3946. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3947. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3948. if test -z "$CXX"; then
  3949. if test -n "$CCC"; then
  3950. CXX=$CCC
  3951. else
  3952. if test -n "$ac_tool_prefix"; then
  3953. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3954. do
  3955. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3956. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3958. $as_echo_n "checking for $ac_word... " >&6; }
  3959. if ${ac_cv_prog_CXX+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. if test -n "$CXX"; then
  3963. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3964. else
  3965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3966. for as_dir in $PATH
  3967. do
  3968. IFS=$as_save_IFS
  3969. test -z "$as_dir" && as_dir=.
  3970. for ac_exec_ext in '' $ac_executable_extensions; do
  3971. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3972. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3974. break 2
  3975. fi
  3976. done
  3977. done
  3978. IFS=$as_save_IFS
  3979. fi
  3980. fi
  3981. CXX=$ac_cv_prog_CXX
  3982. if test -n "$CXX"; then
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3984. $as_echo "$CXX" >&6; }
  3985. else
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3987. $as_echo "no" >&6; }
  3988. fi
  3989. test -n "$CXX" && break
  3990. done
  3991. fi
  3992. if test -z "$CXX"; then
  3993. ac_ct_CXX=$CXX
  3994. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3995. do
  3996. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3997. set dummy $ac_prog; ac_word=$2
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3999. $as_echo_n "checking for $ac_word... " >&6; }
  4000. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. if test -n "$ac_ct_CXX"; then
  4004. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4005. else
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4013. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4023. if test -n "$ac_ct_CXX"; then
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4025. $as_echo "$ac_ct_CXX" >&6; }
  4026. else
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4028. $as_echo "no" >&6; }
  4029. fi
  4030. test -n "$ac_ct_CXX" && break
  4031. done
  4032. if test "x$ac_ct_CXX" = x; then
  4033. CXX="g++"
  4034. else
  4035. case $cross_compiling:$ac_tool_warned in
  4036. yes:)
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4039. ac_tool_warned=yes ;;
  4040. esac
  4041. CXX=$ac_ct_CXX
  4042. fi
  4043. fi
  4044. fi
  4045. fi
  4046. # Provide some information about the compiler.
  4047. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4048. set X $ac_compile
  4049. ac_compiler=$2
  4050. for ac_option in --version -v -V -qversion; do
  4051. { { ac_try="$ac_compiler $ac_option >&5"
  4052. case "(($ac_try" in
  4053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4054. *) ac_try_echo=$ac_try;;
  4055. esac
  4056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4057. $as_echo "$ac_try_echo"; } >&5
  4058. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4059. ac_status=$?
  4060. if test -s conftest.err; then
  4061. sed '10a\
  4062. ... rest of stderr output deleted ...
  4063. 10q' conftest.err >conftest.er1
  4064. cat conftest.er1 >&5
  4065. fi
  4066. rm -f conftest.er1 conftest.err
  4067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4068. test $ac_status = 0; }
  4069. done
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4071. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4072. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main ()
  4079. {
  4080. #ifndef __GNUC__
  4081. choke me
  4082. #endif
  4083. ;
  4084. return 0;
  4085. }
  4086. _ACEOF
  4087. if ac_fn_cxx_try_compile "$LINENO"; then :
  4088. ac_compiler_gnu=yes
  4089. else
  4090. ac_compiler_gnu=no
  4091. fi
  4092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4093. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4096. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4097. if test $ac_compiler_gnu = yes; then
  4098. GXX=yes
  4099. else
  4100. GXX=
  4101. fi
  4102. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4103. ac_save_CXXFLAGS=$CXXFLAGS
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4105. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4106. if ${ac_cv_prog_cxx_g+:} false; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4110. ac_cxx_werror_flag=yes
  4111. ac_cv_prog_cxx_g=no
  4112. CXXFLAGS="-g"
  4113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4114. /* end confdefs.h. */
  4115. int
  4116. main ()
  4117. {
  4118. ;
  4119. return 0;
  4120. }
  4121. _ACEOF
  4122. if ac_fn_cxx_try_compile "$LINENO"; then :
  4123. ac_cv_prog_cxx_g=yes
  4124. else
  4125. CXXFLAGS=""
  4126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h. */
  4128. int
  4129. main ()
  4130. {
  4131. ;
  4132. return 0;
  4133. }
  4134. _ACEOF
  4135. if ac_fn_cxx_try_compile "$LINENO"; then :
  4136. else
  4137. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4138. CXXFLAGS="-g"
  4139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4140. /* end confdefs.h. */
  4141. int
  4142. main ()
  4143. {
  4144. ;
  4145. return 0;
  4146. }
  4147. _ACEOF
  4148. if ac_fn_cxx_try_compile "$LINENO"; then :
  4149. ac_cv_prog_cxx_g=yes
  4150. fi
  4151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4152. fi
  4153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4154. fi
  4155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4156. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4157. fi
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4159. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4160. if test "$ac_test_CXXFLAGS" = set; then
  4161. CXXFLAGS=$ac_save_CXXFLAGS
  4162. elif test $ac_cv_prog_cxx_g = yes; then
  4163. if test "$GXX" = yes; then
  4164. CXXFLAGS="-g -O2"
  4165. else
  4166. CXXFLAGS="-g"
  4167. fi
  4168. else
  4169. if test "$GXX" = yes; then
  4170. CXXFLAGS="-O2"
  4171. else
  4172. CXXFLAGS=
  4173. fi
  4174. fi
  4175. ac_ext=c
  4176. ac_cpp='$CPP $CPPFLAGS'
  4177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4180. # Make sure we can run config.sub.
  4181. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4182. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4184. $as_echo_n "checking build system type... " >&6; }
  4185. if ${ac_cv_build+:} false; then :
  4186. $as_echo_n "(cached) " >&6
  4187. else
  4188. ac_build_alias=$build_alias
  4189. test "x$ac_build_alias" = x &&
  4190. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4191. test "x$ac_build_alias" = x &&
  4192. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4193. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4194. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4197. $as_echo "$ac_cv_build" >&6; }
  4198. case $ac_cv_build in
  4199. *-*-*) ;;
  4200. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4201. esac
  4202. build=$ac_cv_build
  4203. ac_save_IFS=$IFS; IFS='-'
  4204. set x $ac_cv_build
  4205. shift
  4206. build_cpu=$1
  4207. build_vendor=$2
  4208. shift; shift
  4209. # Remember, the first character of IFS is used to create $*,
  4210. # except with old shells:
  4211. build_os=$*
  4212. IFS=$ac_save_IFS
  4213. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4215. $as_echo_n "checking host system type... " >&6; }
  4216. if ${ac_cv_host+:} false; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. if test "x$host_alias" = x; then
  4220. ac_cv_host=$ac_cv_build
  4221. else
  4222. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4223. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4224. fi
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4227. $as_echo "$ac_cv_host" >&6; }
  4228. case $ac_cv_host in
  4229. *-*-*) ;;
  4230. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4231. esac
  4232. host=$ac_cv_host
  4233. ac_save_IFS=$IFS; IFS='-'
  4234. set x $ac_cv_host
  4235. shift
  4236. host_cpu=$1
  4237. host_vendor=$2
  4238. shift; shift
  4239. # Remember, the first character of IFS is used to create $*,
  4240. # except with old shells:
  4241. host_os=$*
  4242. IFS=$ac_save_IFS
  4243. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4244. enable_win32_dll=yes
  4245. case $host in
  4246. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4247. if test -n "$ac_tool_prefix"; then
  4248. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4249. set dummy ${ac_tool_prefix}as; ac_word=$2
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4251. $as_echo_n "checking for $ac_word... " >&6; }
  4252. if ${ac_cv_prog_AS+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. if test -n "$AS"; then
  4256. ac_cv_prog_AS="$AS" # Let the user override the test.
  4257. else
  4258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4259. for as_dir in $PATH
  4260. do
  4261. IFS=$as_save_IFS
  4262. test -z "$as_dir" && as_dir=.
  4263. for ac_exec_ext in '' $ac_executable_extensions; do
  4264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4265. ac_cv_prog_AS="${ac_tool_prefix}as"
  4266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4267. break 2
  4268. fi
  4269. done
  4270. done
  4271. IFS=$as_save_IFS
  4272. fi
  4273. fi
  4274. AS=$ac_cv_prog_AS
  4275. if test -n "$AS"; then
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4277. $as_echo "$AS" >&6; }
  4278. else
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4280. $as_echo "no" >&6; }
  4281. fi
  4282. fi
  4283. if test -z "$ac_cv_prog_AS"; then
  4284. ac_ct_AS=$AS
  4285. # Extract the first word of "as", so it can be a program name with args.
  4286. set dummy as; ac_word=$2
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4288. $as_echo_n "checking for $ac_word... " >&6; }
  4289. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4290. $as_echo_n "(cached) " >&6
  4291. else
  4292. if test -n "$ac_ct_AS"; then
  4293. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4294. else
  4295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4296. for as_dir in $PATH
  4297. do
  4298. IFS=$as_save_IFS
  4299. test -z "$as_dir" && as_dir=.
  4300. for ac_exec_ext in '' $ac_executable_extensions; do
  4301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4302. ac_cv_prog_ac_ct_AS="as"
  4303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4304. break 2
  4305. fi
  4306. done
  4307. done
  4308. IFS=$as_save_IFS
  4309. fi
  4310. fi
  4311. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4312. if test -n "$ac_ct_AS"; then
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4314. $as_echo "$ac_ct_AS" >&6; }
  4315. else
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4317. $as_echo "no" >&6; }
  4318. fi
  4319. if test "x$ac_ct_AS" = x; then
  4320. AS="false"
  4321. else
  4322. case $cross_compiling:$ac_tool_warned in
  4323. yes:)
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4326. ac_tool_warned=yes ;;
  4327. esac
  4328. AS=$ac_ct_AS
  4329. fi
  4330. else
  4331. AS="$ac_cv_prog_AS"
  4332. fi
  4333. if test -n "$ac_tool_prefix"; then
  4334. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4335. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4337. $as_echo_n "checking for $ac_word... " >&6; }
  4338. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. if test -n "$DLLTOOL"; then
  4342. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4343. else
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_exec_ext in '' $ac_executable_extensions; do
  4350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4351. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4353. break 2
  4354. fi
  4355. done
  4356. done
  4357. IFS=$as_save_IFS
  4358. fi
  4359. fi
  4360. DLLTOOL=$ac_cv_prog_DLLTOOL
  4361. if test -n "$DLLTOOL"; then
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4363. $as_echo "$DLLTOOL" >&6; }
  4364. else
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4366. $as_echo "no" >&6; }
  4367. fi
  4368. fi
  4369. if test -z "$ac_cv_prog_DLLTOOL"; then
  4370. ac_ct_DLLTOOL=$DLLTOOL
  4371. # Extract the first word of "dlltool", so it can be a program name with args.
  4372. set dummy dlltool; ac_word=$2
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4374. $as_echo_n "checking for $ac_word... " >&6; }
  4375. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4376. $as_echo_n "(cached) " >&6
  4377. else
  4378. if test -n "$ac_ct_DLLTOOL"; then
  4379. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4380. else
  4381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4382. for as_dir in $PATH
  4383. do
  4384. IFS=$as_save_IFS
  4385. test -z "$as_dir" && as_dir=.
  4386. for ac_exec_ext in '' $ac_executable_extensions; do
  4387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4388. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4390. break 2
  4391. fi
  4392. done
  4393. done
  4394. IFS=$as_save_IFS
  4395. fi
  4396. fi
  4397. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4398. if test -n "$ac_ct_DLLTOOL"; then
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4400. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4401. else
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4403. $as_echo "no" >&6; }
  4404. fi
  4405. if test "x$ac_ct_DLLTOOL" = x; then
  4406. DLLTOOL="false"
  4407. else
  4408. case $cross_compiling:$ac_tool_warned in
  4409. yes:)
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4412. ac_tool_warned=yes ;;
  4413. esac
  4414. DLLTOOL=$ac_ct_DLLTOOL
  4415. fi
  4416. else
  4417. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4418. fi
  4419. if test -n "$ac_tool_prefix"; then
  4420. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4421. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -n "$OBJDUMP"; then
  4428. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4437. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. fi
  4445. fi
  4446. OBJDUMP=$ac_cv_prog_OBJDUMP
  4447. if test -n "$OBJDUMP"; then
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4449. $as_echo "$OBJDUMP" >&6; }
  4450. else
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4452. $as_echo "no" >&6; }
  4453. fi
  4454. fi
  4455. if test -z "$ac_cv_prog_OBJDUMP"; then
  4456. ac_ct_OBJDUMP=$OBJDUMP
  4457. # Extract the first word of "objdump", so it can be a program name with args.
  4458. set dummy objdump; ac_word=$2
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4460. $as_echo_n "checking for $ac_word... " >&6; }
  4461. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -n "$ac_ct_OBJDUMP"; then
  4465. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4466. else
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_exec_ext in '' $ac_executable_extensions; do
  4473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4474. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4476. break 2
  4477. fi
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. fi
  4482. fi
  4483. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4484. if test -n "$ac_ct_OBJDUMP"; then
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4486. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4487. else
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4489. $as_echo "no" >&6; }
  4490. fi
  4491. if test "x$ac_ct_OBJDUMP" = x; then
  4492. OBJDUMP="false"
  4493. else
  4494. case $cross_compiling:$ac_tool_warned in
  4495. yes:)
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4497. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4498. ac_tool_warned=yes ;;
  4499. esac
  4500. OBJDUMP=$ac_ct_OBJDUMP
  4501. fi
  4502. else
  4503. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4504. fi
  4505. ;;
  4506. esac
  4507. test -z "$AS" && AS=as
  4508. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4509. test -z "$OBJDUMP" && OBJDUMP=objdump
  4510. case `pwd` in
  4511. *\ * | *\ *)
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4513. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4514. esac
  4515. macro_version='2.4.2'
  4516. macro_revision='1.3337'
  4517. ltmain="$ac_aux_dir/ltmain.sh"
  4518. # Backslashify metacharacters that are still active within
  4519. # double-quoted strings.
  4520. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4521. # Same as above, but do not quote variable references.
  4522. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4523. # Sed substitution to delay expansion of an escaped shell variable in a
  4524. # double_quote_subst'ed string.
  4525. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4526. # Sed substitution to delay expansion of an escaped single quote.
  4527. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4528. # Sed substitution to avoid accidental globbing in evaled expressions
  4529. no_glob_subst='s/\*/\\\*/g'
  4530. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4531. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4532. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4534. $as_echo_n "checking how to print strings... " >&6; }
  4535. # Test print first, because it will be a builtin if present.
  4536. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4537. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4538. ECHO='print -r --'
  4539. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4540. ECHO='printf %s\n'
  4541. else
  4542. # Use this function as a fallback that always works.
  4543. func_fallback_echo ()
  4544. {
  4545. eval 'cat <<_LTECHO_EOF
  4546. $1
  4547. _LTECHO_EOF'
  4548. }
  4549. ECHO='func_fallback_echo'
  4550. fi
  4551. # func_echo_all arg...
  4552. # Invoke $ECHO with all args, space-separated.
  4553. func_echo_all ()
  4554. {
  4555. $ECHO ""
  4556. }
  4557. case "$ECHO" in
  4558. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4559. $as_echo "printf" >&6; } ;;
  4560. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4561. $as_echo "print -r" >&6; } ;;
  4562. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4563. $as_echo "cat" >&6; } ;;
  4564. esac
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4566. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4567. if ${ac_cv_path_SED+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4571. for ac_i in 1 2 3 4 5 6 7; do
  4572. ac_script="$ac_script$as_nl$ac_script"
  4573. done
  4574. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4575. { ac_script=; unset ac_script;}
  4576. if test -z "$SED"; then
  4577. ac_path_SED_found=false
  4578. # Loop through the user's path and test for each of PROGNAME-LIST
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_prog in sed gsed; do
  4585. for ac_exec_ext in '' $ac_executable_extensions; do
  4586. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4587. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4588. # Check for GNU ac_path_SED and select it if it is found.
  4589. # Check for GNU $ac_path_SED
  4590. case `"$ac_path_SED" --version 2>&1` in
  4591. *GNU*)
  4592. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4593. *)
  4594. ac_count=0
  4595. $as_echo_n 0123456789 >"conftest.in"
  4596. while :
  4597. do
  4598. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4599. mv "conftest.tmp" "conftest.in"
  4600. cp "conftest.in" "conftest.nl"
  4601. $as_echo '' >> "conftest.nl"
  4602. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4603. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4604. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4605. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4606. # Best one so far, save it but keep looking for a better one
  4607. ac_cv_path_SED="$ac_path_SED"
  4608. ac_path_SED_max=$ac_count
  4609. fi
  4610. # 10*(2^10) chars as input seems more than enough
  4611. test $ac_count -gt 10 && break
  4612. done
  4613. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4614. esac
  4615. $ac_path_SED_found && break 3
  4616. done
  4617. done
  4618. done
  4619. IFS=$as_save_IFS
  4620. if test -z "$ac_cv_path_SED"; then
  4621. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4622. fi
  4623. else
  4624. ac_cv_path_SED=$SED
  4625. fi
  4626. fi
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4628. $as_echo "$ac_cv_path_SED" >&6; }
  4629. SED="$ac_cv_path_SED"
  4630. rm -f conftest.sed
  4631. test -z "$SED" && SED=sed
  4632. Xsed="$SED -e 1s/^X//"
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4634. $as_echo_n "checking for fgrep... " >&6; }
  4635. if ${ac_cv_path_FGREP+:} false; then :
  4636. $as_echo_n "(cached) " >&6
  4637. else
  4638. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4639. then ac_cv_path_FGREP="$GREP -F"
  4640. else
  4641. if test -z "$FGREP"; then
  4642. ac_path_FGREP_found=false
  4643. # Loop through the user's path and test for each of PROGNAME-LIST
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_prog in fgrep; do
  4650. for ac_exec_ext in '' $ac_executable_extensions; do
  4651. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4652. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4653. # Check for GNU ac_path_FGREP and select it if it is found.
  4654. # Check for GNU $ac_path_FGREP
  4655. case `"$ac_path_FGREP" --version 2>&1` in
  4656. *GNU*)
  4657. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4658. *)
  4659. ac_count=0
  4660. $as_echo_n 0123456789 >"conftest.in"
  4661. while :
  4662. do
  4663. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4664. mv "conftest.tmp" "conftest.in"
  4665. cp "conftest.in" "conftest.nl"
  4666. $as_echo 'FGREP' >> "conftest.nl"
  4667. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4668. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4669. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4670. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4671. # Best one so far, save it but keep looking for a better one
  4672. ac_cv_path_FGREP="$ac_path_FGREP"
  4673. ac_path_FGREP_max=$ac_count
  4674. fi
  4675. # 10*(2^10) chars as input seems more than enough
  4676. test $ac_count -gt 10 && break
  4677. done
  4678. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4679. esac
  4680. $ac_path_FGREP_found && break 3
  4681. done
  4682. done
  4683. done
  4684. IFS=$as_save_IFS
  4685. if test -z "$ac_cv_path_FGREP"; then
  4686. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4687. fi
  4688. else
  4689. ac_cv_path_FGREP=$FGREP
  4690. fi
  4691. fi
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4694. $as_echo "$ac_cv_path_FGREP" >&6; }
  4695. FGREP="$ac_cv_path_FGREP"
  4696. test -z "$GREP" && GREP=grep
  4697. # Check whether --with-gnu-ld was given.
  4698. if test "${with_gnu_ld+set}" = set; then :
  4699. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4700. else
  4701. with_gnu_ld=no
  4702. fi
  4703. ac_prog=ld
  4704. if test "$GCC" = yes; then
  4705. # Check if gcc -print-prog-name=ld gives a path.
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4707. $as_echo_n "checking for ld used by $CC... " >&6; }
  4708. case $host in
  4709. *-*-mingw*)
  4710. # gcc leaves a trailing carriage return which upsets mingw
  4711. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4712. *)
  4713. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4714. esac
  4715. case $ac_prog in
  4716. # Accept absolute paths.
  4717. [\\/]* | ?:[\\/]*)
  4718. re_direlt='/[^/][^/]*/\.\./'
  4719. # Canonicalize the pathname of ld
  4720. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4721. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4722. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4723. done
  4724. test -z "$LD" && LD="$ac_prog"
  4725. ;;
  4726. "")
  4727. # If it fails, then pretend we aren't using GCC.
  4728. ac_prog=ld
  4729. ;;
  4730. *)
  4731. # If it is relative, then search for the first ld in PATH.
  4732. with_gnu_ld=unknown
  4733. ;;
  4734. esac
  4735. elif test "$with_gnu_ld" = yes; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4737. $as_echo_n "checking for GNU ld... " >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4740. $as_echo_n "checking for non-GNU ld... " >&6; }
  4741. fi
  4742. if ${lt_cv_path_LD+:} false; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. if test -z "$LD"; then
  4746. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4747. for ac_dir in $PATH; do
  4748. IFS="$lt_save_ifs"
  4749. test -z "$ac_dir" && ac_dir=.
  4750. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4751. lt_cv_path_LD="$ac_dir/$ac_prog"
  4752. # Check to see if the program is GNU ld. I'd rather use --version,
  4753. # but apparently some variants of GNU ld only accept -v.
  4754. # Break only if it was the GNU/non-GNU ld that we prefer.
  4755. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4756. *GNU* | *'with BFD'*)
  4757. test "$with_gnu_ld" != no && break
  4758. ;;
  4759. *)
  4760. test "$with_gnu_ld" != yes && break
  4761. ;;
  4762. esac
  4763. fi
  4764. done
  4765. IFS="$lt_save_ifs"
  4766. else
  4767. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4768. fi
  4769. fi
  4770. LD="$lt_cv_path_LD"
  4771. if test -n "$LD"; then
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4773. $as_echo "$LD" >&6; }
  4774. else
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4776. $as_echo "no" >&6; }
  4777. fi
  4778. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4780. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4781. if ${lt_cv_prog_gnu_ld+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4785. case `$LD -v 2>&1 </dev/null` in
  4786. *GNU* | *'with BFD'*)
  4787. lt_cv_prog_gnu_ld=yes
  4788. ;;
  4789. *)
  4790. lt_cv_prog_gnu_ld=no
  4791. ;;
  4792. esac
  4793. fi
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4795. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4796. with_gnu_ld=$lt_cv_prog_gnu_ld
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4798. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4799. if ${lt_cv_path_NM+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -n "$NM"; then
  4803. # Let the user override the test.
  4804. lt_cv_path_NM="$NM"
  4805. else
  4806. lt_nm_to_check="${ac_tool_prefix}nm"
  4807. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4808. lt_nm_to_check="$lt_nm_to_check nm"
  4809. fi
  4810. for lt_tmp_nm in $lt_nm_to_check; do
  4811. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4812. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4813. IFS="$lt_save_ifs"
  4814. test -z "$ac_dir" && ac_dir=.
  4815. tmp_nm="$ac_dir/$lt_tmp_nm"
  4816. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4817. # Check to see if the nm accepts a BSD-compat flag.
  4818. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4819. # nm: unknown option "B" ignored
  4820. # Tru64's nm complains that /dev/null is an invalid object file
  4821. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4822. */dev/null* | *'Invalid file or object type'*)
  4823. lt_cv_path_NM="$tmp_nm -B"
  4824. break
  4825. ;;
  4826. *)
  4827. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4828. */dev/null*)
  4829. lt_cv_path_NM="$tmp_nm -p"
  4830. break
  4831. ;;
  4832. *)
  4833. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4834. continue # so that we can try to find one that supports BSD flags
  4835. ;;
  4836. esac
  4837. ;;
  4838. esac
  4839. fi
  4840. done
  4841. IFS="$lt_save_ifs"
  4842. done
  4843. : ${lt_cv_path_NM=no}
  4844. fi
  4845. fi
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4847. $as_echo "$lt_cv_path_NM" >&6; }
  4848. if test "$lt_cv_path_NM" != "no"; then
  4849. NM="$lt_cv_path_NM"
  4850. else
  4851. # Didn't find any BSD compatible name lister, look for dumpbin.
  4852. if test -n "$DUMPBIN"; then :
  4853. # Let the user override the test.
  4854. else
  4855. if test -n "$ac_tool_prefix"; then
  4856. for ac_prog in dumpbin "link -dump"
  4857. do
  4858. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4859. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4861. $as_echo_n "checking for $ac_word... " >&6; }
  4862. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4863. $as_echo_n "(cached) " >&6
  4864. else
  4865. if test -n "$DUMPBIN"; then
  4866. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4867. else
  4868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4869. for as_dir in $PATH
  4870. do
  4871. IFS=$as_save_IFS
  4872. test -z "$as_dir" && as_dir=.
  4873. for ac_exec_ext in '' $ac_executable_extensions; do
  4874. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4875. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4877. break 2
  4878. fi
  4879. done
  4880. done
  4881. IFS=$as_save_IFS
  4882. fi
  4883. fi
  4884. DUMPBIN=$ac_cv_prog_DUMPBIN
  4885. if test -n "$DUMPBIN"; then
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4887. $as_echo "$DUMPBIN" >&6; }
  4888. else
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4890. $as_echo "no" >&6; }
  4891. fi
  4892. test -n "$DUMPBIN" && break
  4893. done
  4894. fi
  4895. if test -z "$DUMPBIN"; then
  4896. ac_ct_DUMPBIN=$DUMPBIN
  4897. for ac_prog in dumpbin "link -dump"
  4898. do
  4899. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4900. set dummy $ac_prog; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$ac_ct_DUMPBIN"; then
  4907. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4916. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4926. if test -n "$ac_ct_DUMPBIN"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4928. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. test -n "$ac_ct_DUMPBIN" && break
  4934. done
  4935. if test "x$ac_ct_DUMPBIN" = x; then
  4936. DUMPBIN=":"
  4937. else
  4938. case $cross_compiling:$ac_tool_warned in
  4939. yes:)
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4942. ac_tool_warned=yes ;;
  4943. esac
  4944. DUMPBIN=$ac_ct_DUMPBIN
  4945. fi
  4946. fi
  4947. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4948. *COFF*)
  4949. DUMPBIN="$DUMPBIN -symbols"
  4950. ;;
  4951. *)
  4952. DUMPBIN=:
  4953. ;;
  4954. esac
  4955. fi
  4956. if test "$DUMPBIN" != ":"; then
  4957. NM="$DUMPBIN"
  4958. fi
  4959. fi
  4960. test -z "$NM" && NM=nm
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4962. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4963. if ${lt_cv_nm_interface+:} false; then :
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. lt_cv_nm_interface="BSD nm"
  4967. echo "int some_variable = 0;" > conftest.$ac_ext
  4968. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4969. (eval "$ac_compile" 2>conftest.err)
  4970. cat conftest.err >&5
  4971. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4972. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4973. cat conftest.err >&5
  4974. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4975. cat conftest.out >&5
  4976. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4977. lt_cv_nm_interface="MS dumpbin"
  4978. fi
  4979. rm -f conftest*
  4980. fi
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4982. $as_echo "$lt_cv_nm_interface" >&6; }
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4984. $as_echo_n "checking whether ln -s works... " >&6; }
  4985. LN_S=$as_ln_s
  4986. if test "$LN_S" = "ln -s"; then
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4988. $as_echo "yes" >&6; }
  4989. else
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4991. $as_echo "no, using $LN_S" >&6; }
  4992. fi
  4993. # find the maximum length of command line arguments
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4995. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4996. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. i=0
  5000. teststring="ABCD"
  5001. case $build_os in
  5002. msdosdjgpp*)
  5003. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5004. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5005. # during glob expansion). Even if it were fixed, the result of this
  5006. # check would be larger than it should be.
  5007. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5008. ;;
  5009. gnu*)
  5010. # Under GNU Hurd, this test is not required because there is
  5011. # no limit to the length of command line arguments.
  5012. # Libtool will interpret -1 as no limit whatsoever
  5013. lt_cv_sys_max_cmd_len=-1;
  5014. ;;
  5015. cygwin* | mingw* | cegcc*)
  5016. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5017. # about 5 minutes as the teststring grows exponentially.
  5018. # Worse, since 9x/ME are not pre-emptively multitasking,
  5019. # you end up with a "frozen" computer, even though with patience
  5020. # the test eventually succeeds (with a max line length of 256k).
  5021. # Instead, let's just punt: use the minimum linelength reported by
  5022. # all of the supported platforms: 8192 (on NT/2K/XP).
  5023. lt_cv_sys_max_cmd_len=8192;
  5024. ;;
  5025. mint*)
  5026. # On MiNT this can take a long time and run out of memory.
  5027. lt_cv_sys_max_cmd_len=8192;
  5028. ;;
  5029. amigaos*)
  5030. # On AmigaOS with pdksh, this test takes hours, literally.
  5031. # So we just punt and use a minimum line length of 8192.
  5032. lt_cv_sys_max_cmd_len=8192;
  5033. ;;
  5034. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5035. # This has been around since 386BSD, at least. Likely further.
  5036. if test -x /sbin/sysctl; then
  5037. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5038. elif test -x /usr/sbin/sysctl; then
  5039. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5040. else
  5041. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5042. fi
  5043. # And add a safety zone
  5044. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5045. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5046. ;;
  5047. interix*)
  5048. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5049. lt_cv_sys_max_cmd_len=196608
  5050. ;;
  5051. os2*)
  5052. # The test takes a long time on OS/2.
  5053. lt_cv_sys_max_cmd_len=8192
  5054. ;;
  5055. osf*)
  5056. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5057. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5058. # nice to cause kernel panics so lets avoid the loop below.
  5059. # First set a reasonable default.
  5060. lt_cv_sys_max_cmd_len=16384
  5061. #
  5062. if test -x /sbin/sysconfig; then
  5063. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5064. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5065. esac
  5066. fi
  5067. ;;
  5068. sco3.2v5*)
  5069. lt_cv_sys_max_cmd_len=102400
  5070. ;;
  5071. sysv5* | sco5v6* | sysv4.2uw2*)
  5072. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5073. if test -n "$kargmax"; then
  5074. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5075. else
  5076. lt_cv_sys_max_cmd_len=32768
  5077. fi
  5078. ;;
  5079. *)
  5080. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5081. if test -n "$lt_cv_sys_max_cmd_len"; then
  5082. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5083. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5084. else
  5085. # Make teststring a little bigger before we do anything with it.
  5086. # a 1K string should be a reasonable start.
  5087. for i in 1 2 3 4 5 6 7 8 ; do
  5088. teststring=$teststring$teststring
  5089. done
  5090. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5091. # If test is not a shell built-in, we'll probably end up computing a
  5092. # maximum length that is only half of the actual maximum length, but
  5093. # we can't tell.
  5094. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5095. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5096. test $i != 17 # 1/2 MB should be enough
  5097. do
  5098. i=`expr $i + 1`
  5099. teststring=$teststring$teststring
  5100. done
  5101. # Only check the string length outside the loop.
  5102. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5103. teststring=
  5104. # Add a significant safety factor because C++ compilers can tack on
  5105. # massive amounts of additional arguments before passing them to the
  5106. # linker. It appears as though 1/2 is a usable value.
  5107. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5108. fi
  5109. ;;
  5110. esac
  5111. fi
  5112. if test -n $lt_cv_sys_max_cmd_len ; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5114. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5117. $as_echo "none" >&6; }
  5118. fi
  5119. max_cmd_len=$lt_cv_sys_max_cmd_len
  5120. : ${CP="cp -f"}
  5121. : ${MV="mv -f"}
  5122. : ${RM="rm -f"}
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5124. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5125. # Try some XSI features
  5126. xsi_shell=no
  5127. ( _lt_dummy="a/b/c"
  5128. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5129. = c,a/b,b/c, \
  5130. && eval 'test $(( 1 + 1 )) -eq 2 \
  5131. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5132. && xsi_shell=yes
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5134. $as_echo "$xsi_shell" >&6; }
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5136. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5137. lt_shell_append=no
  5138. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5139. >/dev/null 2>&1 \
  5140. && lt_shell_append=yes
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5142. $as_echo "$lt_shell_append" >&6; }
  5143. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5144. lt_unset=unset
  5145. else
  5146. lt_unset=false
  5147. fi
  5148. # test EBCDIC or ASCII
  5149. case `echo X|tr X '\101'` in
  5150. A) # ASCII based system
  5151. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5152. lt_SP2NL='tr \040 \012'
  5153. lt_NL2SP='tr \015\012 \040\040'
  5154. ;;
  5155. *) # EBCDIC based system
  5156. lt_SP2NL='tr \100 \n'
  5157. lt_NL2SP='tr \r\n \100\100'
  5158. ;;
  5159. esac
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5161. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5162. if ${lt_cv_to_host_file_cmd+:} false; then :
  5163. $as_echo_n "(cached) " >&6
  5164. else
  5165. case $host in
  5166. *-*-mingw* )
  5167. case $build in
  5168. *-*-mingw* ) # actually msys
  5169. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5170. ;;
  5171. *-*-cygwin* )
  5172. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5173. ;;
  5174. * ) # otherwise, assume *nix
  5175. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5176. ;;
  5177. esac
  5178. ;;
  5179. *-*-cygwin* )
  5180. case $build in
  5181. *-*-mingw* ) # actually msys
  5182. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5183. ;;
  5184. *-*-cygwin* )
  5185. lt_cv_to_host_file_cmd=func_convert_file_noop
  5186. ;;
  5187. * ) # otherwise, assume *nix
  5188. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5189. ;;
  5190. esac
  5191. ;;
  5192. * ) # unhandled hosts (and "normal" native builds)
  5193. lt_cv_to_host_file_cmd=func_convert_file_noop
  5194. ;;
  5195. esac
  5196. fi
  5197. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5199. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5201. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5202. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. #assume ordinary cross tools, or native build.
  5206. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5207. case $host in
  5208. *-*-mingw* )
  5209. case $build in
  5210. *-*-mingw* ) # actually msys
  5211. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5212. ;;
  5213. esac
  5214. ;;
  5215. esac
  5216. fi
  5217. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5219. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5221. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5222. if ${lt_cv_ld_reload_flag+:} false; then :
  5223. $as_echo_n "(cached) " >&6
  5224. else
  5225. lt_cv_ld_reload_flag='-r'
  5226. fi
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5228. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5229. reload_flag=$lt_cv_ld_reload_flag
  5230. case $reload_flag in
  5231. "" | " "*) ;;
  5232. *) reload_flag=" $reload_flag" ;;
  5233. esac
  5234. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5235. case $host_os in
  5236. cygwin* | mingw* | pw32* | cegcc*)
  5237. if test "$GCC" != yes; then
  5238. reload_cmds=false
  5239. fi
  5240. ;;
  5241. darwin*)
  5242. if test "$GCC" = yes; then
  5243. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5244. else
  5245. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5246. fi
  5247. ;;
  5248. esac
  5249. if test -n "$ac_tool_prefix"; then
  5250. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5251. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5253. $as_echo_n "checking for $ac_word... " >&6; }
  5254. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. if test -n "$OBJDUMP"; then
  5258. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5259. else
  5260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5261. for as_dir in $PATH
  5262. do
  5263. IFS=$as_save_IFS
  5264. test -z "$as_dir" && as_dir=.
  5265. for ac_exec_ext in '' $ac_executable_extensions; do
  5266. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5267. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5269. break 2
  5270. fi
  5271. done
  5272. done
  5273. IFS=$as_save_IFS
  5274. fi
  5275. fi
  5276. OBJDUMP=$ac_cv_prog_OBJDUMP
  5277. if test -n "$OBJDUMP"; then
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5279. $as_echo "$OBJDUMP" >&6; }
  5280. else
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5282. $as_echo "no" >&6; }
  5283. fi
  5284. fi
  5285. if test -z "$ac_cv_prog_OBJDUMP"; then
  5286. ac_ct_OBJDUMP=$OBJDUMP
  5287. # Extract the first word of "objdump", so it can be a program name with args.
  5288. set dummy objdump; ac_word=$2
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5290. $as_echo_n "checking for $ac_word... " >&6; }
  5291. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. if test -n "$ac_ct_OBJDUMP"; then
  5295. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5296. else
  5297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5298. for as_dir in $PATH
  5299. do
  5300. IFS=$as_save_IFS
  5301. test -z "$as_dir" && as_dir=.
  5302. for ac_exec_ext in '' $ac_executable_extensions; do
  5303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5304. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5306. break 2
  5307. fi
  5308. done
  5309. done
  5310. IFS=$as_save_IFS
  5311. fi
  5312. fi
  5313. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5314. if test -n "$ac_ct_OBJDUMP"; then
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5316. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5317. else
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5319. $as_echo "no" >&6; }
  5320. fi
  5321. if test "x$ac_ct_OBJDUMP" = x; then
  5322. OBJDUMP="false"
  5323. else
  5324. case $cross_compiling:$ac_tool_warned in
  5325. yes:)
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5328. ac_tool_warned=yes ;;
  5329. esac
  5330. OBJDUMP=$ac_ct_OBJDUMP
  5331. fi
  5332. else
  5333. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5334. fi
  5335. test -z "$OBJDUMP" && OBJDUMP=objdump
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5337. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5338. if ${lt_cv_deplibs_check_method+:} false; then :
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5342. lt_cv_file_magic_test_file=
  5343. lt_cv_deplibs_check_method='unknown'
  5344. # Need to set the preceding variable on all platforms that support
  5345. # interlibrary dependencies.
  5346. # 'none' -- dependencies not supported.
  5347. # `unknown' -- same as none, but documents that we really don't know.
  5348. # 'pass_all' -- all dependencies passed with no checks.
  5349. # 'test_compile' -- check by making test program.
  5350. # 'file_magic [[regex]]' -- check by looking for files in library path
  5351. # which responds to the $file_magic_cmd with a given extended regex.
  5352. # If you have `file' or equivalent on your system and you're not sure
  5353. # whether `pass_all' will *always* work, you probably want this one.
  5354. case $host_os in
  5355. aix[4-9]*)
  5356. lt_cv_deplibs_check_method=pass_all
  5357. ;;
  5358. beos*)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. bsdi[45]*)
  5362. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5363. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5364. lt_cv_file_magic_test_file=/shlib/libc.so
  5365. ;;
  5366. cygwin*)
  5367. # func_win32_libid is a shell function defined in ltmain.sh
  5368. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5369. lt_cv_file_magic_cmd='func_win32_libid'
  5370. ;;
  5371. mingw* | pw32*)
  5372. # Base MSYS/MinGW do not provide the 'file' command needed by
  5373. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5374. # unless we find 'file', for example because we are cross-compiling.
  5375. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5376. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5377. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5378. lt_cv_file_magic_cmd='func_win32_libid'
  5379. else
  5380. # Keep this pattern in sync with the one in func_win32_libid.
  5381. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5382. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5383. fi
  5384. ;;
  5385. cegcc*)
  5386. # use the weaker test based on 'objdump'. See mingw*.
  5387. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5388. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5389. ;;
  5390. darwin* | rhapsody*)
  5391. lt_cv_deplibs_check_method=pass_all
  5392. ;;
  5393. freebsd* | dragonfly*)
  5394. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5395. case $host_cpu in
  5396. i*86 )
  5397. # Not sure whether the presence of OpenBSD here was a mistake.
  5398. # Let's accept both of them until this is cleared up.
  5399. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5400. lt_cv_file_magic_cmd=/usr/bin/file
  5401. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5402. ;;
  5403. esac
  5404. else
  5405. lt_cv_deplibs_check_method=pass_all
  5406. fi
  5407. ;;
  5408. gnu*)
  5409. lt_cv_deplibs_check_method=pass_all
  5410. ;;
  5411. haiku*)
  5412. lt_cv_deplibs_check_method=pass_all
  5413. ;;
  5414. hpux10.20* | hpux11*)
  5415. lt_cv_file_magic_cmd=/usr/bin/file
  5416. case $host_cpu in
  5417. ia64*)
  5418. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5419. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5420. ;;
  5421. hppa*64*)
  5422. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5423. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5424. ;;
  5425. *)
  5426. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5427. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5428. ;;
  5429. esac
  5430. ;;
  5431. interix[3-9]*)
  5432. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5433. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5434. ;;
  5435. irix5* | irix6* | nonstopux*)
  5436. case $LD in
  5437. *-32|*"-32 ") libmagic=32-bit;;
  5438. *-n32|*"-n32 ") libmagic=N32;;
  5439. *-64|*"-64 ") libmagic=64-bit;;
  5440. *) libmagic=never-match;;
  5441. esac
  5442. lt_cv_deplibs_check_method=pass_all
  5443. ;;
  5444. # This must be glibc/ELF.
  5445. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5446. lt_cv_deplibs_check_method=pass_all
  5447. ;;
  5448. netbsd*)
  5449. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5450. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5451. else
  5452. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5453. fi
  5454. ;;
  5455. newos6*)
  5456. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5457. lt_cv_file_magic_cmd=/usr/bin/file
  5458. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5459. ;;
  5460. *nto* | *qnx*)
  5461. lt_cv_deplibs_check_method=pass_all
  5462. ;;
  5463. openbsd*)
  5464. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5466. else
  5467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5468. fi
  5469. ;;
  5470. osf3* | osf4* | osf5*)
  5471. lt_cv_deplibs_check_method=pass_all
  5472. ;;
  5473. rdos*)
  5474. lt_cv_deplibs_check_method=pass_all
  5475. ;;
  5476. solaris*)
  5477. lt_cv_deplibs_check_method=pass_all
  5478. ;;
  5479. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5480. lt_cv_deplibs_check_method=pass_all
  5481. ;;
  5482. sysv4 | sysv4.3*)
  5483. case $host_vendor in
  5484. motorola)
  5485. 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]'
  5486. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5487. ;;
  5488. ncr)
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. sequent)
  5492. lt_cv_file_magic_cmd='/bin/file'
  5493. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5494. ;;
  5495. sni)
  5496. lt_cv_file_magic_cmd='/bin/file'
  5497. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5498. lt_cv_file_magic_test_file=/lib/libc.so
  5499. ;;
  5500. siemens)
  5501. lt_cv_deplibs_check_method=pass_all
  5502. ;;
  5503. pc)
  5504. lt_cv_deplibs_check_method=pass_all
  5505. ;;
  5506. esac
  5507. ;;
  5508. tpf*)
  5509. lt_cv_deplibs_check_method=pass_all
  5510. ;;
  5511. esac
  5512. fi
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5514. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5515. file_magic_glob=
  5516. want_nocaseglob=no
  5517. if test "$build" = "$host"; then
  5518. case $host_os in
  5519. mingw* | pw32*)
  5520. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5521. want_nocaseglob=yes
  5522. else
  5523. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5524. fi
  5525. ;;
  5526. esac
  5527. fi
  5528. file_magic_cmd=$lt_cv_file_magic_cmd
  5529. deplibs_check_method=$lt_cv_deplibs_check_method
  5530. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5531. if test -n "$ac_tool_prefix"; then
  5532. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5533. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5535. $as_echo_n "checking for $ac_word... " >&6; }
  5536. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5537. $as_echo_n "(cached) " >&6
  5538. else
  5539. if test -n "$DLLTOOL"; then
  5540. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5541. else
  5542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5543. for as_dir in $PATH
  5544. do
  5545. IFS=$as_save_IFS
  5546. test -z "$as_dir" && as_dir=.
  5547. for ac_exec_ext in '' $ac_executable_extensions; do
  5548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5549. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5551. break 2
  5552. fi
  5553. done
  5554. done
  5555. IFS=$as_save_IFS
  5556. fi
  5557. fi
  5558. DLLTOOL=$ac_cv_prog_DLLTOOL
  5559. if test -n "$DLLTOOL"; then
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5561. $as_echo "$DLLTOOL" >&6; }
  5562. else
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5564. $as_echo "no" >&6; }
  5565. fi
  5566. fi
  5567. if test -z "$ac_cv_prog_DLLTOOL"; then
  5568. ac_ct_DLLTOOL=$DLLTOOL
  5569. # Extract the first word of "dlltool", so it can be a program name with args.
  5570. set dummy dlltool; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$ac_ct_DLLTOOL"; then
  5577. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5586. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5596. if test -n "$ac_ct_DLLTOOL"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5598. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. if test "x$ac_ct_DLLTOOL" = x; then
  5604. DLLTOOL="false"
  5605. else
  5606. case $cross_compiling:$ac_tool_warned in
  5607. yes:)
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5610. ac_tool_warned=yes ;;
  5611. esac
  5612. DLLTOOL=$ac_ct_DLLTOOL
  5613. fi
  5614. else
  5615. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5616. fi
  5617. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5619. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5620. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5621. $as_echo_n "(cached) " >&6
  5622. else
  5623. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5624. case $host_os in
  5625. cygwin* | mingw* | pw32* | cegcc*)
  5626. # two different shell functions defined in ltmain.sh
  5627. # decide which to use based on capabilities of $DLLTOOL
  5628. case `$DLLTOOL --help 2>&1` in
  5629. *--identify-strict*)
  5630. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5631. ;;
  5632. *)
  5633. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5634. ;;
  5635. esac
  5636. ;;
  5637. *)
  5638. # fallback: assume linklib IS sharedlib
  5639. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5640. ;;
  5641. esac
  5642. fi
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5644. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5645. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5646. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5647. if test -n "$ac_tool_prefix"; then
  5648. for ac_prog in ar
  5649. do
  5650. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5651. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5653. $as_echo_n "checking for $ac_word... " >&6; }
  5654. if ${ac_cv_prog_AR+:} false; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. if test -n "$AR"; then
  5658. ac_cv_prog_AR="$AR" # Let the user override the test.
  5659. else
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5667. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. fi
  5675. fi
  5676. AR=$ac_cv_prog_AR
  5677. if test -n "$AR"; then
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5679. $as_echo "$AR" >&6; }
  5680. else
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5682. $as_echo "no" >&6; }
  5683. fi
  5684. test -n "$AR" && break
  5685. done
  5686. fi
  5687. if test -z "$AR"; then
  5688. ac_ct_AR=$AR
  5689. for ac_prog in ar
  5690. do
  5691. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5692. set dummy $ac_prog; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$ac_ct_AR"; then
  5699. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5708. ac_cv_prog_ac_ct_AR="$ac_prog"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5718. if test -n "$ac_ct_AR"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5720. $as_echo "$ac_ct_AR" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. test -n "$ac_ct_AR" && break
  5726. done
  5727. if test "x$ac_ct_AR" = x; then
  5728. AR="false"
  5729. else
  5730. case $cross_compiling:$ac_tool_warned in
  5731. yes:)
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5734. ac_tool_warned=yes ;;
  5735. esac
  5736. AR=$ac_ct_AR
  5737. fi
  5738. fi
  5739. : ${AR=ar}
  5740. : ${AR_FLAGS=cru}
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5742. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5743. if ${lt_cv_ar_at_file+:} false; then :
  5744. $as_echo_n "(cached) " >&6
  5745. else
  5746. lt_cv_ar_at_file=no
  5747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5748. /* end confdefs.h. */
  5749. int
  5750. main ()
  5751. {
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. if ac_fn_c_try_compile "$LINENO"; then :
  5757. echo conftest.$ac_objext > conftest.lst
  5758. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5759. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5760. (eval $lt_ar_try) 2>&5
  5761. ac_status=$?
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5763. test $ac_status = 0; }
  5764. if test "$ac_status" -eq 0; then
  5765. # Ensure the archiver fails upon bogus file names.
  5766. rm -f conftest.$ac_objext libconftest.a
  5767. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5768. (eval $lt_ar_try) 2>&5
  5769. ac_status=$?
  5770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5771. test $ac_status = 0; }
  5772. if test "$ac_status" -ne 0; then
  5773. lt_cv_ar_at_file=@
  5774. fi
  5775. fi
  5776. rm -f conftest.* libconftest.a
  5777. fi
  5778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5779. fi
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5781. $as_echo "$lt_cv_ar_at_file" >&6; }
  5782. if test "x$lt_cv_ar_at_file" = xno; then
  5783. archiver_list_spec=
  5784. else
  5785. archiver_list_spec=$lt_cv_ar_at_file
  5786. fi
  5787. if test -n "$ac_tool_prefix"; then
  5788. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5789. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5791. $as_echo_n "checking for $ac_word... " >&6; }
  5792. if ${ac_cv_prog_STRIP+:} false; then :
  5793. $as_echo_n "(cached) " >&6
  5794. else
  5795. if test -n "$STRIP"; then
  5796. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5797. else
  5798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5799. for as_dir in $PATH
  5800. do
  5801. IFS=$as_save_IFS
  5802. test -z "$as_dir" && as_dir=.
  5803. for ac_exec_ext in '' $ac_executable_extensions; do
  5804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5805. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5807. break 2
  5808. fi
  5809. done
  5810. done
  5811. IFS=$as_save_IFS
  5812. fi
  5813. fi
  5814. STRIP=$ac_cv_prog_STRIP
  5815. if test -n "$STRIP"; then
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5817. $as_echo "$STRIP" >&6; }
  5818. else
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. $as_echo "no" >&6; }
  5821. fi
  5822. fi
  5823. if test -z "$ac_cv_prog_STRIP"; then
  5824. ac_ct_STRIP=$STRIP
  5825. # Extract the first word of "strip", so it can be a program name with args.
  5826. set dummy strip; ac_word=$2
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5828. $as_echo_n "checking for $ac_word... " >&6; }
  5829. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5830. $as_echo_n "(cached) " >&6
  5831. else
  5832. if test -n "$ac_ct_STRIP"; then
  5833. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5834. else
  5835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5836. for as_dir in $PATH
  5837. do
  5838. IFS=$as_save_IFS
  5839. test -z "$as_dir" && as_dir=.
  5840. for ac_exec_ext in '' $ac_executable_extensions; do
  5841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5842. ac_cv_prog_ac_ct_STRIP="strip"
  5843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5844. break 2
  5845. fi
  5846. done
  5847. done
  5848. IFS=$as_save_IFS
  5849. fi
  5850. fi
  5851. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5852. if test -n "$ac_ct_STRIP"; then
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5854. $as_echo "$ac_ct_STRIP" >&6; }
  5855. else
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5857. $as_echo "no" >&6; }
  5858. fi
  5859. if test "x$ac_ct_STRIP" = x; then
  5860. STRIP=":"
  5861. else
  5862. case $cross_compiling:$ac_tool_warned in
  5863. yes:)
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5866. ac_tool_warned=yes ;;
  5867. esac
  5868. STRIP=$ac_ct_STRIP
  5869. fi
  5870. else
  5871. STRIP="$ac_cv_prog_STRIP"
  5872. fi
  5873. test -z "$STRIP" && STRIP=:
  5874. if test -n "$ac_tool_prefix"; then
  5875. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5876. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if ${ac_cv_prog_RANLIB+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$RANLIB"; then
  5883. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5892. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. RANLIB=$ac_cv_prog_RANLIB
  5902. if test -n "$RANLIB"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5904. $as_echo "$RANLIB" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. fi
  5910. if test -z "$ac_cv_prog_RANLIB"; then
  5911. ac_ct_RANLIB=$RANLIB
  5912. # Extract the first word of "ranlib", so it can be a program name with args.
  5913. set dummy ranlib; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$ac_ct_RANLIB"; then
  5920. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5929. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5939. if test -n "$ac_ct_RANLIB"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5941. $as_echo "$ac_ct_RANLIB" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. if test "x$ac_ct_RANLIB" = x; then
  5947. RANLIB=":"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. RANLIB=$ac_ct_RANLIB
  5956. fi
  5957. else
  5958. RANLIB="$ac_cv_prog_RANLIB"
  5959. fi
  5960. test -z "$RANLIB" && RANLIB=:
  5961. # Determine commands to create old-style static archives.
  5962. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5963. old_postinstall_cmds='chmod 644 $oldlib'
  5964. old_postuninstall_cmds=
  5965. if test -n "$RANLIB"; then
  5966. case $host_os in
  5967. openbsd*)
  5968. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5969. ;;
  5970. *)
  5971. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5972. ;;
  5973. esac
  5974. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5975. fi
  5976. case $host_os in
  5977. darwin*)
  5978. lock_old_archive_extraction=yes ;;
  5979. *)
  5980. lock_old_archive_extraction=no ;;
  5981. esac
  5982. for ac_prog in gawk mawk nawk awk
  5983. do
  5984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5985. set dummy $ac_prog; ac_word=$2
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5987. $as_echo_n "checking for $ac_word... " >&6; }
  5988. if ${ac_cv_prog_AWK+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. if test -n "$AWK"; then
  5992. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5993. else
  5994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5995. for as_dir in $PATH
  5996. do
  5997. IFS=$as_save_IFS
  5998. test -z "$as_dir" && as_dir=.
  5999. for ac_exec_ext in '' $ac_executable_extensions; do
  6000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6001. ac_cv_prog_AWK="$ac_prog"
  6002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6003. break 2
  6004. fi
  6005. done
  6006. done
  6007. IFS=$as_save_IFS
  6008. fi
  6009. fi
  6010. AWK=$ac_cv_prog_AWK
  6011. if test -n "$AWK"; then
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6013. $as_echo "$AWK" >&6; }
  6014. else
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6016. $as_echo "no" >&6; }
  6017. fi
  6018. test -n "$AWK" && break
  6019. done
  6020. # If no C compiler was specified, use CC.
  6021. LTCC=${LTCC-"$CC"}
  6022. # If no C compiler flags were specified, use CFLAGS.
  6023. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6024. # Allow CC to be a program name with arguments.
  6025. compiler=$CC
  6026. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6028. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6029. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. # These are sane defaults that work on at least a few old systems.
  6033. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6034. # Character class describing NM global symbol codes.
  6035. symcode='[BCDEGRST]'
  6036. # Regexp to match symbols that can be accessed directly from C.
  6037. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6038. # Define system-specific variables.
  6039. case $host_os in
  6040. aix*)
  6041. symcode='[BCDT]'
  6042. ;;
  6043. cygwin* | mingw* | pw32* | cegcc*)
  6044. symcode='[ABCDGISTW]'
  6045. ;;
  6046. hpux*)
  6047. if test "$host_cpu" = ia64; then
  6048. symcode='[ABCDEGRST]'
  6049. fi
  6050. ;;
  6051. irix* | nonstopux*)
  6052. symcode='[BCDEGRST]'
  6053. ;;
  6054. osf*)
  6055. symcode='[BCDEGQRST]'
  6056. ;;
  6057. solaris*)
  6058. symcode='[BDRT]'
  6059. ;;
  6060. sco3.2v5*)
  6061. symcode='[DT]'
  6062. ;;
  6063. sysv4.2uw2*)
  6064. symcode='[DT]'
  6065. ;;
  6066. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6067. symcode='[ABDT]'
  6068. ;;
  6069. sysv4)
  6070. symcode='[DFNSTU]'
  6071. ;;
  6072. esac
  6073. # If we're using GNU nm, then use its standard symbol codes.
  6074. case `$NM -V 2>&1` in
  6075. *GNU* | *'with BFD'*)
  6076. symcode='[ABCDGIRSTW]' ;;
  6077. esac
  6078. # Transform an extracted symbol line into a proper C declaration.
  6079. # Some systems (esp. on ia64) link data and code symbols differently,
  6080. # so use this general approach.
  6081. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6082. # Transform an extracted symbol line into symbol name and symbol address
  6083. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6084. 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'"
  6085. # Handle CRLF in mingw tool chain
  6086. opt_cr=
  6087. case $build_os in
  6088. mingw*)
  6089. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6090. ;;
  6091. esac
  6092. # Try without a prefix underscore, then with it.
  6093. for ac_symprfx in "" "_"; do
  6094. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6095. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6096. # Write the raw and C identifiers.
  6097. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6098. # Fake it for dumpbin and say T for any non-static function
  6099. # and D for any global variable.
  6100. # Also find C++ and __fastcall symbols from MSVC++,
  6101. # which start with @ or ?.
  6102. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6103. " {last_section=section; section=\$ 3};"\
  6104. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6105. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6106. " \$ 0!~/External *\|/{next};"\
  6107. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6108. " {if(hide[section]) next};"\
  6109. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6110. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6111. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6112. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6113. " ' prfx=^$ac_symprfx"
  6114. else
  6115. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6116. fi
  6117. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6118. # Check to see that the pipe works correctly.
  6119. pipe_works=no
  6120. rm -f conftest*
  6121. cat > conftest.$ac_ext <<_LT_EOF
  6122. #ifdef __cplusplus
  6123. extern "C" {
  6124. #endif
  6125. char nm_test_var;
  6126. void nm_test_func(void);
  6127. void nm_test_func(void){}
  6128. #ifdef __cplusplus
  6129. }
  6130. #endif
  6131. int main(){nm_test_var='a';nm_test_func();return(0);}
  6132. _LT_EOF
  6133. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6134. (eval $ac_compile) 2>&5
  6135. ac_status=$?
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6137. test $ac_status = 0; }; then
  6138. # Now try to grab the symbols.
  6139. nlist=conftest.nm
  6140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6141. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6142. ac_status=$?
  6143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6144. test $ac_status = 0; } && test -s "$nlist"; then
  6145. # Try sorting and uniquifying the output.
  6146. if sort "$nlist" | uniq > "$nlist"T; then
  6147. mv -f "$nlist"T "$nlist"
  6148. else
  6149. rm -f "$nlist"T
  6150. fi
  6151. # Make sure that we snagged all the symbols we need.
  6152. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6153. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6154. cat <<_LT_EOF > conftest.$ac_ext
  6155. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6156. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6157. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6158. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6159. # define LT_DLSYM_CONST
  6160. #elif defined(__osf__)
  6161. /* This system does not cope well with relocations in const data. */
  6162. # define LT_DLSYM_CONST
  6163. #else
  6164. # define LT_DLSYM_CONST const
  6165. #endif
  6166. #ifdef __cplusplus
  6167. extern "C" {
  6168. #endif
  6169. _LT_EOF
  6170. # Now generate the symbol file.
  6171. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6172. cat <<_LT_EOF >> conftest.$ac_ext
  6173. /* The mapping between symbol names and symbols. */
  6174. LT_DLSYM_CONST struct {
  6175. const char *name;
  6176. void *address;
  6177. }
  6178. lt__PROGRAM__LTX_preloaded_symbols[] =
  6179. {
  6180. { "@PROGRAM@", (void *) 0 },
  6181. _LT_EOF
  6182. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6183. cat <<\_LT_EOF >> conftest.$ac_ext
  6184. {0, (void *) 0}
  6185. };
  6186. /* This works around a problem in FreeBSD linker */
  6187. #ifdef FREEBSD_WORKAROUND
  6188. static const void *lt_preloaded_setup() {
  6189. return lt__PROGRAM__LTX_preloaded_symbols;
  6190. }
  6191. #endif
  6192. #ifdef __cplusplus
  6193. }
  6194. #endif
  6195. _LT_EOF
  6196. # Now try linking the two files.
  6197. mv conftest.$ac_objext conftstm.$ac_objext
  6198. lt_globsym_save_LIBS=$LIBS
  6199. lt_globsym_save_CFLAGS=$CFLAGS
  6200. LIBS="conftstm.$ac_objext"
  6201. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6202. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6203. (eval $ac_link) 2>&5
  6204. ac_status=$?
  6205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6206. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6207. pipe_works=yes
  6208. fi
  6209. LIBS=$lt_globsym_save_LIBS
  6210. CFLAGS=$lt_globsym_save_CFLAGS
  6211. else
  6212. echo "cannot find nm_test_func in $nlist" >&5
  6213. fi
  6214. else
  6215. echo "cannot find nm_test_var in $nlist" >&5
  6216. fi
  6217. else
  6218. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6219. fi
  6220. else
  6221. echo "$progname: failed program was:" >&5
  6222. cat conftest.$ac_ext >&5
  6223. fi
  6224. rm -rf conftest* conftst*
  6225. # Do not use the global_symbol_pipe unless it works.
  6226. if test "$pipe_works" = yes; then
  6227. break
  6228. else
  6229. lt_cv_sys_global_symbol_pipe=
  6230. fi
  6231. done
  6232. fi
  6233. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6234. lt_cv_sys_global_symbol_to_cdecl=
  6235. fi
  6236. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6238. $as_echo "failed" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6241. $as_echo "ok" >&6; }
  6242. fi
  6243. # Response file support.
  6244. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6245. nm_file_list_spec='@'
  6246. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6247. nm_file_list_spec='@'
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6250. $as_echo_n "checking for sysroot... " >&6; }
  6251. # Check whether --with-sysroot was given.
  6252. if test "${with_sysroot+set}" = set; then :
  6253. withval=$with_sysroot;
  6254. else
  6255. with_sysroot=no
  6256. fi
  6257. lt_sysroot=
  6258. case ${with_sysroot} in #(
  6259. yes)
  6260. if test "$GCC" = yes; then
  6261. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6262. fi
  6263. ;; #(
  6264. /*)
  6265. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6266. ;; #(
  6267. no|'')
  6268. ;; #(
  6269. *)
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6271. $as_echo "${with_sysroot}" >&6; }
  6272. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6273. ;;
  6274. esac
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6276. $as_echo "${lt_sysroot:-no}" >&6; }
  6277. # Check whether --enable-libtool-lock was given.
  6278. if test "${enable_libtool_lock+set}" = set; then :
  6279. enableval=$enable_libtool_lock;
  6280. fi
  6281. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6282. # Some flags need to be propagated to the compiler or linker for good
  6283. # libtool support.
  6284. case $host in
  6285. ia64-*-hpux*)
  6286. # Find out which ABI we are using.
  6287. echo 'int i;' > conftest.$ac_ext
  6288. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6289. (eval $ac_compile) 2>&5
  6290. ac_status=$?
  6291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6292. test $ac_status = 0; }; then
  6293. case `/usr/bin/file conftest.$ac_objext` in
  6294. *ELF-32*)
  6295. HPUX_IA64_MODE="32"
  6296. ;;
  6297. *ELF-64*)
  6298. HPUX_IA64_MODE="64"
  6299. ;;
  6300. esac
  6301. fi
  6302. rm -rf conftest*
  6303. ;;
  6304. *-*-irix6*)
  6305. # Find out which ABI we are using.
  6306. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6307. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6308. (eval $ac_compile) 2>&5
  6309. ac_status=$?
  6310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6311. test $ac_status = 0; }; then
  6312. if test "$lt_cv_prog_gnu_ld" = yes; then
  6313. case `/usr/bin/file conftest.$ac_objext` in
  6314. *32-bit*)
  6315. LD="${LD-ld} -melf32bsmip"
  6316. ;;
  6317. *N32*)
  6318. LD="${LD-ld} -melf32bmipn32"
  6319. ;;
  6320. *64-bit*)
  6321. LD="${LD-ld} -melf64bmip"
  6322. ;;
  6323. esac
  6324. else
  6325. case `/usr/bin/file conftest.$ac_objext` in
  6326. *32-bit*)
  6327. LD="${LD-ld} -32"
  6328. ;;
  6329. *N32*)
  6330. LD="${LD-ld} -n32"
  6331. ;;
  6332. *64-bit*)
  6333. LD="${LD-ld} -64"
  6334. ;;
  6335. esac
  6336. fi
  6337. fi
  6338. rm -rf conftest*
  6339. ;;
  6340. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6341. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6342. # Find out which ABI we are using.
  6343. echo 'int i;' > conftest.$ac_ext
  6344. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6345. (eval $ac_compile) 2>&5
  6346. ac_status=$?
  6347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6348. test $ac_status = 0; }; then
  6349. case `/usr/bin/file conftest.o` in
  6350. *32-bit*)
  6351. case $host in
  6352. x86_64-*kfreebsd*-gnu)
  6353. LD="${LD-ld} -m elf_i386_fbsd"
  6354. ;;
  6355. x86_64-*linux*)
  6356. LD="${LD-ld} -m elf_i386"
  6357. ;;
  6358. ppc64-*linux*|powerpc64-*linux*)
  6359. LD="${LD-ld} -m elf32ppclinux"
  6360. ;;
  6361. s390x-*linux*)
  6362. LD="${LD-ld} -m elf_s390"
  6363. ;;
  6364. sparc64-*linux*)
  6365. LD="${LD-ld} -m elf32_sparc"
  6366. ;;
  6367. esac
  6368. ;;
  6369. *64-bit*)
  6370. case $host in
  6371. x86_64-*kfreebsd*-gnu)
  6372. LD="${LD-ld} -m elf_x86_64_fbsd"
  6373. ;;
  6374. x86_64-*linux*)
  6375. LD="${LD-ld} -m elf_x86_64"
  6376. ;;
  6377. ppc*-*linux*|powerpc*-*linux*)
  6378. LD="${LD-ld} -m elf64ppc"
  6379. ;;
  6380. s390*-*linux*|s390*-*tpf*)
  6381. LD="${LD-ld} -m elf64_s390"
  6382. ;;
  6383. sparc*-*linux*)
  6384. LD="${LD-ld} -m elf64_sparc"
  6385. ;;
  6386. esac
  6387. ;;
  6388. esac
  6389. fi
  6390. rm -rf conftest*
  6391. ;;
  6392. *-*-sco3.2v5*)
  6393. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6394. SAVE_CFLAGS="$CFLAGS"
  6395. CFLAGS="$CFLAGS -belf"
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6397. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6398. if ${lt_cv_cc_needs_belf+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. ac_ext=c
  6402. ac_cpp='$CPP $CPPFLAGS'
  6403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6407. /* end confdefs.h. */
  6408. int
  6409. main ()
  6410. {
  6411. ;
  6412. return 0;
  6413. }
  6414. _ACEOF
  6415. if ac_fn_c_try_link "$LINENO"; then :
  6416. lt_cv_cc_needs_belf=yes
  6417. else
  6418. lt_cv_cc_needs_belf=no
  6419. fi
  6420. rm -f core conftest.err conftest.$ac_objext \
  6421. conftest$ac_exeext conftest.$ac_ext
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. fi
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6429. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6430. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6431. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6432. CFLAGS="$SAVE_CFLAGS"
  6433. fi
  6434. ;;
  6435. *-*solaris*)
  6436. # Find out which ABI we are using.
  6437. echo 'int i;' > conftest.$ac_ext
  6438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6439. (eval $ac_compile) 2>&5
  6440. ac_status=$?
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6442. test $ac_status = 0; }; then
  6443. case `/usr/bin/file conftest.o` in
  6444. *64-bit*)
  6445. case $lt_cv_prog_gnu_ld in
  6446. yes*)
  6447. case $host in
  6448. i?86-*-solaris*)
  6449. LD="${LD-ld} -m elf_x86_64"
  6450. ;;
  6451. sparc*-*-solaris*)
  6452. LD="${LD-ld} -m elf64_sparc"
  6453. ;;
  6454. esac
  6455. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6456. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6457. LD="${LD-ld}_sol2"
  6458. fi
  6459. ;;
  6460. *)
  6461. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6462. LD="${LD-ld} -64"
  6463. fi
  6464. ;;
  6465. esac
  6466. ;;
  6467. esac
  6468. fi
  6469. rm -rf conftest*
  6470. ;;
  6471. esac
  6472. need_locks="$enable_libtool_lock"
  6473. if test -n "$ac_tool_prefix"; then
  6474. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6475. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6477. $as_echo_n "checking for $ac_word... " >&6; }
  6478. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. if test -n "$MANIFEST_TOOL"; then
  6482. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6483. else
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. test -z "$as_dir" && as_dir=.
  6489. for ac_exec_ext in '' $ac_executable_extensions; do
  6490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6491. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6493. break 2
  6494. fi
  6495. done
  6496. done
  6497. IFS=$as_save_IFS
  6498. fi
  6499. fi
  6500. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6501. if test -n "$MANIFEST_TOOL"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6503. $as_echo "$MANIFEST_TOOL" >&6; }
  6504. else
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6506. $as_echo "no" >&6; }
  6507. fi
  6508. fi
  6509. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6510. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6511. # Extract the first word of "mt", so it can be a program name with args.
  6512. set dummy mt; ac_word=$2
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6514. $as_echo_n "checking for $ac_word... " >&6; }
  6515. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6519. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6520. else
  6521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6522. for as_dir in $PATH
  6523. do
  6524. IFS=$as_save_IFS
  6525. test -z "$as_dir" && as_dir=.
  6526. for ac_exec_ext in '' $ac_executable_extensions; do
  6527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6528. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6530. break 2
  6531. fi
  6532. done
  6533. done
  6534. IFS=$as_save_IFS
  6535. fi
  6536. fi
  6537. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6538. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6540. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6541. else
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6543. $as_echo "no" >&6; }
  6544. fi
  6545. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6546. MANIFEST_TOOL=":"
  6547. else
  6548. case $cross_compiling:$ac_tool_warned in
  6549. yes:)
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6551. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6552. ac_tool_warned=yes ;;
  6553. esac
  6554. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6555. fi
  6556. else
  6557. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6558. fi
  6559. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6561. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6562. if ${lt_cv_path_mainfest_tool+:} false; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. lt_cv_path_mainfest_tool=no
  6566. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6567. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6568. cat conftest.err >&5
  6569. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6570. lt_cv_path_mainfest_tool=yes
  6571. fi
  6572. rm -f conftest*
  6573. fi
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6575. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6576. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6577. MANIFEST_TOOL=:
  6578. fi
  6579. case $host_os in
  6580. rhapsody* | darwin*)
  6581. if test -n "$ac_tool_prefix"; then
  6582. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6583. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6585. $as_echo_n "checking for $ac_word... " >&6; }
  6586. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6587. $as_echo_n "(cached) " >&6
  6588. else
  6589. if test -n "$DSYMUTIL"; then
  6590. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6591. else
  6592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6593. for as_dir in $PATH
  6594. do
  6595. IFS=$as_save_IFS
  6596. test -z "$as_dir" && as_dir=.
  6597. for ac_exec_ext in '' $ac_executable_extensions; do
  6598. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6599. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6601. break 2
  6602. fi
  6603. done
  6604. done
  6605. IFS=$as_save_IFS
  6606. fi
  6607. fi
  6608. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6609. if test -n "$DSYMUTIL"; then
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6611. $as_echo "$DSYMUTIL" >&6; }
  6612. else
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6614. $as_echo "no" >&6; }
  6615. fi
  6616. fi
  6617. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6618. ac_ct_DSYMUTIL=$DSYMUTIL
  6619. # Extract the first word of "dsymutil", so it can be a program name with args.
  6620. set dummy dsymutil; ac_word=$2
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6622. $as_echo_n "checking for $ac_word... " >&6; }
  6623. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6624. $as_echo_n "(cached) " >&6
  6625. else
  6626. if test -n "$ac_ct_DSYMUTIL"; then
  6627. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6628. else
  6629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6630. for as_dir in $PATH
  6631. do
  6632. IFS=$as_save_IFS
  6633. test -z "$as_dir" && as_dir=.
  6634. for ac_exec_ext in '' $ac_executable_extensions; do
  6635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6636. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6638. break 2
  6639. fi
  6640. done
  6641. done
  6642. IFS=$as_save_IFS
  6643. fi
  6644. fi
  6645. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6646. if test -n "$ac_ct_DSYMUTIL"; then
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6648. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6649. else
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6651. $as_echo "no" >&6; }
  6652. fi
  6653. if test "x$ac_ct_DSYMUTIL" = x; then
  6654. DSYMUTIL=":"
  6655. else
  6656. case $cross_compiling:$ac_tool_warned in
  6657. yes:)
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6660. ac_tool_warned=yes ;;
  6661. esac
  6662. DSYMUTIL=$ac_ct_DSYMUTIL
  6663. fi
  6664. else
  6665. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6666. fi
  6667. if test -n "$ac_tool_prefix"; then
  6668. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6669. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6671. $as_echo_n "checking for $ac_word... " >&6; }
  6672. if ${ac_cv_prog_NMEDIT+:} false; then :
  6673. $as_echo_n "(cached) " >&6
  6674. else
  6675. if test -n "$NMEDIT"; then
  6676. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6677. else
  6678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6679. for as_dir in $PATH
  6680. do
  6681. IFS=$as_save_IFS
  6682. test -z "$as_dir" && as_dir=.
  6683. for ac_exec_ext in '' $ac_executable_extensions; do
  6684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6685. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6687. break 2
  6688. fi
  6689. done
  6690. done
  6691. IFS=$as_save_IFS
  6692. fi
  6693. fi
  6694. NMEDIT=$ac_cv_prog_NMEDIT
  6695. if test -n "$NMEDIT"; then
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6697. $as_echo "$NMEDIT" >&6; }
  6698. else
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6700. $as_echo "no" >&6; }
  6701. fi
  6702. fi
  6703. if test -z "$ac_cv_prog_NMEDIT"; then
  6704. ac_ct_NMEDIT=$NMEDIT
  6705. # Extract the first word of "nmedit", so it can be a program name with args.
  6706. set dummy nmedit; ac_word=$2
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6708. $as_echo_n "checking for $ac_word... " >&6; }
  6709. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. if test -n "$ac_ct_NMEDIT"; then
  6713. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6714. else
  6715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6716. for as_dir in $PATH
  6717. do
  6718. IFS=$as_save_IFS
  6719. test -z "$as_dir" && as_dir=.
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6722. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. fi
  6730. fi
  6731. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6732. if test -n "$ac_ct_NMEDIT"; then
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6734. $as_echo "$ac_ct_NMEDIT" >&6; }
  6735. else
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6737. $as_echo "no" >&6; }
  6738. fi
  6739. if test "x$ac_ct_NMEDIT" = x; then
  6740. NMEDIT=":"
  6741. else
  6742. case $cross_compiling:$ac_tool_warned in
  6743. yes:)
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6746. ac_tool_warned=yes ;;
  6747. esac
  6748. NMEDIT=$ac_ct_NMEDIT
  6749. fi
  6750. else
  6751. NMEDIT="$ac_cv_prog_NMEDIT"
  6752. fi
  6753. if test -n "$ac_tool_prefix"; then
  6754. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6755. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. $as_echo_n "checking for $ac_word... " >&6; }
  6758. if ${ac_cv_prog_LIPO+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. if test -n "$LIPO"; then
  6762. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6763. else
  6764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6765. for as_dir in $PATH
  6766. do
  6767. IFS=$as_save_IFS
  6768. test -z "$as_dir" && as_dir=.
  6769. for ac_exec_ext in '' $ac_executable_extensions; do
  6770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6771. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6773. break 2
  6774. fi
  6775. done
  6776. done
  6777. IFS=$as_save_IFS
  6778. fi
  6779. fi
  6780. LIPO=$ac_cv_prog_LIPO
  6781. if test -n "$LIPO"; then
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6783. $as_echo "$LIPO" >&6; }
  6784. else
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6786. $as_echo "no" >&6; }
  6787. fi
  6788. fi
  6789. if test -z "$ac_cv_prog_LIPO"; then
  6790. ac_ct_LIPO=$LIPO
  6791. # Extract the first word of "lipo", so it can be a program name with args.
  6792. set dummy lipo; ac_word=$2
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6794. $as_echo_n "checking for $ac_word... " >&6; }
  6795. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. if test -n "$ac_ct_LIPO"; then
  6799. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6800. else
  6801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6802. for as_dir in $PATH
  6803. do
  6804. IFS=$as_save_IFS
  6805. test -z "$as_dir" && as_dir=.
  6806. for ac_exec_ext in '' $ac_executable_extensions; do
  6807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6808. ac_cv_prog_ac_ct_LIPO="lipo"
  6809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6810. break 2
  6811. fi
  6812. done
  6813. done
  6814. IFS=$as_save_IFS
  6815. fi
  6816. fi
  6817. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6818. if test -n "$ac_ct_LIPO"; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6820. $as_echo "$ac_ct_LIPO" >&6; }
  6821. else
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6823. $as_echo "no" >&6; }
  6824. fi
  6825. if test "x$ac_ct_LIPO" = x; then
  6826. LIPO=":"
  6827. else
  6828. case $cross_compiling:$ac_tool_warned in
  6829. yes:)
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6832. ac_tool_warned=yes ;;
  6833. esac
  6834. LIPO=$ac_ct_LIPO
  6835. fi
  6836. else
  6837. LIPO="$ac_cv_prog_LIPO"
  6838. fi
  6839. if test -n "$ac_tool_prefix"; then
  6840. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6841. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6843. $as_echo_n "checking for $ac_word... " >&6; }
  6844. if ${ac_cv_prog_OTOOL+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. if test -n "$OTOOL"; then
  6848. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6849. else
  6850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6851. for as_dir in $PATH
  6852. do
  6853. IFS=$as_save_IFS
  6854. test -z "$as_dir" && as_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6857. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. IFS=$as_save_IFS
  6864. fi
  6865. fi
  6866. OTOOL=$ac_cv_prog_OTOOL
  6867. if test -n "$OTOOL"; then
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6869. $as_echo "$OTOOL" >&6; }
  6870. else
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6872. $as_echo "no" >&6; }
  6873. fi
  6874. fi
  6875. if test -z "$ac_cv_prog_OTOOL"; then
  6876. ac_ct_OTOOL=$OTOOL
  6877. # Extract the first word of "otool", so it can be a program name with args.
  6878. set dummy otool; ac_word=$2
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6880. $as_echo_n "checking for $ac_word... " >&6; }
  6881. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6882. $as_echo_n "(cached) " >&6
  6883. else
  6884. if test -n "$ac_ct_OTOOL"; then
  6885. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6886. else
  6887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6888. for as_dir in $PATH
  6889. do
  6890. IFS=$as_save_IFS
  6891. test -z "$as_dir" && as_dir=.
  6892. for ac_exec_ext in '' $ac_executable_extensions; do
  6893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6894. ac_cv_prog_ac_ct_OTOOL="otool"
  6895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6896. break 2
  6897. fi
  6898. done
  6899. done
  6900. IFS=$as_save_IFS
  6901. fi
  6902. fi
  6903. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6904. if test -n "$ac_ct_OTOOL"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6906. $as_echo "$ac_ct_OTOOL" >&6; }
  6907. else
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. if test "x$ac_ct_OTOOL" = x; then
  6912. OTOOL=":"
  6913. else
  6914. case $cross_compiling:$ac_tool_warned in
  6915. yes:)
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6918. ac_tool_warned=yes ;;
  6919. esac
  6920. OTOOL=$ac_ct_OTOOL
  6921. fi
  6922. else
  6923. OTOOL="$ac_cv_prog_OTOOL"
  6924. fi
  6925. if test -n "$ac_tool_prefix"; then
  6926. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6927. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. $as_echo_n "checking for $ac_word... " >&6; }
  6930. if ${ac_cv_prog_OTOOL64+:} false; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. if test -n "$OTOOL64"; then
  6934. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. test -z "$as_dir" && as_dir=.
  6941. for ac_exec_ext in '' $ac_executable_extensions; do
  6942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6943. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6945. break 2
  6946. fi
  6947. done
  6948. done
  6949. IFS=$as_save_IFS
  6950. fi
  6951. fi
  6952. OTOOL64=$ac_cv_prog_OTOOL64
  6953. if test -n "$OTOOL64"; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6955. $as_echo "$OTOOL64" >&6; }
  6956. else
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6958. $as_echo "no" >&6; }
  6959. fi
  6960. fi
  6961. if test -z "$ac_cv_prog_OTOOL64"; then
  6962. ac_ct_OTOOL64=$OTOOL64
  6963. # Extract the first word of "otool64", so it can be a program name with args.
  6964. set dummy otool64; ac_word=$2
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6966. $as_echo_n "checking for $ac_word... " >&6; }
  6967. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. if test -n "$ac_ct_OTOOL64"; then
  6971. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6972. else
  6973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6974. for as_dir in $PATH
  6975. do
  6976. IFS=$as_save_IFS
  6977. test -z "$as_dir" && as_dir=.
  6978. for ac_exec_ext in '' $ac_executable_extensions; do
  6979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6980. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6982. break 2
  6983. fi
  6984. done
  6985. done
  6986. IFS=$as_save_IFS
  6987. fi
  6988. fi
  6989. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6990. if test -n "$ac_ct_OTOOL64"; then
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6992. $as_echo "$ac_ct_OTOOL64" >&6; }
  6993. else
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6995. $as_echo "no" >&6; }
  6996. fi
  6997. if test "x$ac_ct_OTOOL64" = x; then
  6998. OTOOL64=":"
  6999. else
  7000. case $cross_compiling:$ac_tool_warned in
  7001. yes:)
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7004. ac_tool_warned=yes ;;
  7005. esac
  7006. OTOOL64=$ac_ct_OTOOL64
  7007. fi
  7008. else
  7009. OTOOL64="$ac_cv_prog_OTOOL64"
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7012. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7013. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. lt_cv_apple_cc_single_mod=no
  7017. if test -z "${LT_MULTI_MODULE}"; then
  7018. # By default we will add the -single_module flag. You can override
  7019. # by either setting the environment variable LT_MULTI_MODULE
  7020. # non-empty at configure time, or by adding -multi_module to the
  7021. # link flags.
  7022. rm -rf libconftest.dylib*
  7023. echo "int foo(void){return 1;}" > conftest.c
  7024. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7025. -dynamiclib -Wl,-single_module conftest.c" >&5
  7026. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7027. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7028. _lt_result=$?
  7029. # If there is a non-empty error log, and "single_module"
  7030. # appears in it, assume the flag caused a linker warning
  7031. if test -s conftest.err && $GREP single_module conftest.err; then
  7032. cat conftest.err >&5
  7033. # Otherwise, if the output was created with a 0 exit code from
  7034. # the compiler, it worked.
  7035. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7036. lt_cv_apple_cc_single_mod=yes
  7037. else
  7038. cat conftest.err >&5
  7039. fi
  7040. rm -rf libconftest.dylib*
  7041. rm -f conftest.*
  7042. fi
  7043. fi
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7045. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7047. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7048. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7049. $as_echo_n "(cached) " >&6
  7050. else
  7051. lt_cv_ld_exported_symbols_list=no
  7052. save_LDFLAGS=$LDFLAGS
  7053. echo "_main" > conftest.sym
  7054. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7056. /* end confdefs.h. */
  7057. int
  7058. main ()
  7059. {
  7060. ;
  7061. return 0;
  7062. }
  7063. _ACEOF
  7064. if ac_fn_c_try_link "$LINENO"; then :
  7065. lt_cv_ld_exported_symbols_list=yes
  7066. else
  7067. lt_cv_ld_exported_symbols_list=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext \
  7070. conftest$ac_exeext conftest.$ac_ext
  7071. LDFLAGS="$save_LDFLAGS"
  7072. fi
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7074. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7076. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7077. if ${lt_cv_ld_force_load+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. lt_cv_ld_force_load=no
  7081. cat > conftest.c << _LT_EOF
  7082. int forced_loaded() { return 2;}
  7083. _LT_EOF
  7084. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7085. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7086. echo "$AR cru libconftest.a conftest.o" >&5
  7087. $AR cru libconftest.a conftest.o 2>&5
  7088. echo "$RANLIB libconftest.a" >&5
  7089. $RANLIB libconftest.a 2>&5
  7090. cat > conftest.c << _LT_EOF
  7091. int main() { return 0;}
  7092. _LT_EOF
  7093. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7094. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7095. _lt_result=$?
  7096. if test -s conftest.err && $GREP force_load conftest.err; then
  7097. cat conftest.err >&5
  7098. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7099. lt_cv_ld_force_load=yes
  7100. else
  7101. cat conftest.err >&5
  7102. fi
  7103. rm -f conftest.err libconftest.a conftest conftest.c
  7104. rm -rf conftest.dSYM
  7105. fi
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7107. $as_echo "$lt_cv_ld_force_load" >&6; }
  7108. case $host_os in
  7109. rhapsody* | darwin1.[012])
  7110. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7111. darwin1.*)
  7112. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7113. darwin*) # darwin 5.x on
  7114. # if running on 10.5 or later, the deployment target defaults
  7115. # to the OS version, if on x86, and 10.4, the deployment
  7116. # target defaults to 10.4. Don't you love it?
  7117. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7118. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7119. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7120. 10.[012]*)
  7121. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7122. 10.*)
  7123. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7124. esac
  7125. ;;
  7126. esac
  7127. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7128. _lt_dar_single_mod='$single_module'
  7129. fi
  7130. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7131. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7132. else
  7133. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7134. fi
  7135. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7136. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7137. else
  7138. _lt_dsymutil=
  7139. fi
  7140. ;;
  7141. esac
  7142. for ac_header in dlfcn.h
  7143. do :
  7144. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7145. "
  7146. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7147. cat >>confdefs.h <<_ACEOF
  7148. #define HAVE_DLFCN_H 1
  7149. _ACEOF
  7150. fi
  7151. done
  7152. func_stripname_cnf ()
  7153. {
  7154. case ${2} in
  7155. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7156. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7157. esac
  7158. } # func_stripname_cnf
  7159. # Set options
  7160. enable_dlopen=no
  7161. # Check whether --enable-shared was given.
  7162. if test "${enable_shared+set}" = set; then :
  7163. enableval=$enable_shared; p=${PACKAGE-default}
  7164. case $enableval in
  7165. yes) enable_shared=yes ;;
  7166. no) enable_shared=no ;;
  7167. *)
  7168. enable_shared=no
  7169. # Look at the argument we got. We use all the common list separators.
  7170. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7171. for pkg in $enableval; do
  7172. IFS="$lt_save_ifs"
  7173. if test "X$pkg" = "X$p"; then
  7174. enable_shared=yes
  7175. fi
  7176. done
  7177. IFS="$lt_save_ifs"
  7178. ;;
  7179. esac
  7180. else
  7181. enable_shared=yes
  7182. fi
  7183. # Check whether --enable-static was given.
  7184. if test "${enable_static+set}" = set; then :
  7185. enableval=$enable_static; p=${PACKAGE-default}
  7186. case $enableval in
  7187. yes) enable_static=yes ;;
  7188. no) enable_static=no ;;
  7189. *)
  7190. enable_static=no
  7191. # Look at the argument we got. We use all the common list separators.
  7192. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7193. for pkg in $enableval; do
  7194. IFS="$lt_save_ifs"
  7195. if test "X$pkg" = "X$p"; then
  7196. enable_static=yes
  7197. fi
  7198. done
  7199. IFS="$lt_save_ifs"
  7200. ;;
  7201. esac
  7202. else
  7203. enable_static=yes
  7204. fi
  7205. # Check whether --with-pic was given.
  7206. if test "${with_pic+set}" = set; then :
  7207. withval=$with_pic; lt_p=${PACKAGE-default}
  7208. case $withval in
  7209. yes|no) pic_mode=$withval ;;
  7210. *)
  7211. pic_mode=default
  7212. # Look at the argument we got. We use all the common list separators.
  7213. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7214. for lt_pkg in $withval; do
  7215. IFS="$lt_save_ifs"
  7216. if test "X$lt_pkg" = "X$lt_p"; then
  7217. pic_mode=yes
  7218. fi
  7219. done
  7220. IFS="$lt_save_ifs"
  7221. ;;
  7222. esac
  7223. else
  7224. pic_mode=default
  7225. fi
  7226. test -z "$pic_mode" && pic_mode=default
  7227. # Check whether --enable-fast-install was given.
  7228. if test "${enable_fast_install+set}" = set; then :
  7229. enableval=$enable_fast_install; p=${PACKAGE-default}
  7230. case $enableval in
  7231. yes) enable_fast_install=yes ;;
  7232. no) enable_fast_install=no ;;
  7233. *)
  7234. enable_fast_install=no
  7235. # Look at the argument we got. We use all the common list separators.
  7236. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7237. for pkg in $enableval; do
  7238. IFS="$lt_save_ifs"
  7239. if test "X$pkg" = "X$p"; then
  7240. enable_fast_install=yes
  7241. fi
  7242. done
  7243. IFS="$lt_save_ifs"
  7244. ;;
  7245. esac
  7246. else
  7247. enable_fast_install=yes
  7248. fi
  7249. # This can be used to rebuild libtool when needed
  7250. LIBTOOL_DEPS="$ltmain"
  7251. # Always use our own libtool.
  7252. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7253. test -z "$LN_S" && LN_S="ln -s"
  7254. if test -n "${ZSH_VERSION+set}" ; then
  7255. setopt NO_GLOB_SUBST
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7258. $as_echo_n "checking for objdir... " >&6; }
  7259. if ${lt_cv_objdir+:} false; then :
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. rm -f .libs 2>/dev/null
  7263. mkdir .libs 2>/dev/null
  7264. if test -d .libs; then
  7265. lt_cv_objdir=.libs
  7266. else
  7267. # MS-DOS does not allow filenames that begin with a dot.
  7268. lt_cv_objdir=_libs
  7269. fi
  7270. rmdir .libs 2>/dev/null
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7273. $as_echo "$lt_cv_objdir" >&6; }
  7274. objdir=$lt_cv_objdir
  7275. cat >>confdefs.h <<_ACEOF
  7276. #define LT_OBJDIR "$lt_cv_objdir/"
  7277. _ACEOF
  7278. case $host_os in
  7279. aix3*)
  7280. # AIX sometimes has problems with the GCC collect2 program. For some
  7281. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7282. # vanish in a puff of smoke.
  7283. if test "X${COLLECT_NAMES+set}" != Xset; then
  7284. COLLECT_NAMES=
  7285. export COLLECT_NAMES
  7286. fi
  7287. ;;
  7288. esac
  7289. # Global variables:
  7290. ofile=libtool
  7291. can_build_shared=yes
  7292. # All known linkers require a `.a' archive for static linking (except MSVC,
  7293. # which needs '.lib').
  7294. libext=a
  7295. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7296. old_CC="$CC"
  7297. old_CFLAGS="$CFLAGS"
  7298. # Set sane defaults for various variables
  7299. test -z "$CC" && CC=cc
  7300. test -z "$LTCC" && LTCC=$CC
  7301. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7302. test -z "$LD" && LD=ld
  7303. test -z "$ac_objext" && ac_objext=o
  7304. for cc_temp in $compiler""; do
  7305. case $cc_temp in
  7306. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7307. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7308. \-*) ;;
  7309. *) break;;
  7310. esac
  7311. done
  7312. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7313. # Only perform the check for file, if the check method requires it
  7314. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7315. case $deplibs_check_method in
  7316. file_magic*)
  7317. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7319. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7320. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7321. $as_echo_n "(cached) " >&6
  7322. else
  7323. case $MAGIC_CMD in
  7324. [\\/*] | ?:[\\/]*)
  7325. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7326. ;;
  7327. *)
  7328. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7329. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7330. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7331. for ac_dir in $ac_dummy; do
  7332. IFS="$lt_save_ifs"
  7333. test -z "$ac_dir" && ac_dir=.
  7334. if test -f $ac_dir/${ac_tool_prefix}file; then
  7335. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7336. if test -n "$file_magic_test_file"; then
  7337. case $deplibs_check_method in
  7338. "file_magic "*)
  7339. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7340. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7341. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7342. $EGREP "$file_magic_regex" > /dev/null; then
  7343. :
  7344. else
  7345. cat <<_LT_EOF 1>&2
  7346. *** Warning: the command libtool uses to detect shared libraries,
  7347. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7348. *** The result is that libtool may fail to recognize shared libraries
  7349. *** as such. This will affect the creation of libtool libraries that
  7350. *** depend on shared libraries, but programs linked with such libtool
  7351. *** libraries will work regardless of this problem. Nevertheless, you
  7352. *** may want to report the problem to your system manager and/or to
  7353. *** bug-libtool@gnu.org
  7354. _LT_EOF
  7355. fi ;;
  7356. esac
  7357. fi
  7358. break
  7359. fi
  7360. done
  7361. IFS="$lt_save_ifs"
  7362. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7363. ;;
  7364. esac
  7365. fi
  7366. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7367. if test -n "$MAGIC_CMD"; then
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7369. $as_echo "$MAGIC_CMD" >&6; }
  7370. else
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7372. $as_echo "no" >&6; }
  7373. fi
  7374. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7375. if test -n "$ac_tool_prefix"; then
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7377. $as_echo_n "checking for file... " >&6; }
  7378. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. case $MAGIC_CMD in
  7382. [\\/*] | ?:[\\/]*)
  7383. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7384. ;;
  7385. *)
  7386. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7387. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7388. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7389. for ac_dir in $ac_dummy; do
  7390. IFS="$lt_save_ifs"
  7391. test -z "$ac_dir" && ac_dir=.
  7392. if test -f $ac_dir/file; then
  7393. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7394. if test -n "$file_magic_test_file"; then
  7395. case $deplibs_check_method in
  7396. "file_magic "*)
  7397. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7398. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7399. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7400. $EGREP "$file_magic_regex" > /dev/null; then
  7401. :
  7402. else
  7403. cat <<_LT_EOF 1>&2
  7404. *** Warning: the command libtool uses to detect shared libraries,
  7405. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7406. *** The result is that libtool may fail to recognize shared libraries
  7407. *** as such. This will affect the creation of libtool libraries that
  7408. *** depend on shared libraries, but programs linked with such libtool
  7409. *** libraries will work regardless of this problem. Nevertheless, you
  7410. *** may want to report the problem to your system manager and/or to
  7411. *** bug-libtool@gnu.org
  7412. _LT_EOF
  7413. fi ;;
  7414. esac
  7415. fi
  7416. break
  7417. fi
  7418. done
  7419. IFS="$lt_save_ifs"
  7420. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7421. ;;
  7422. esac
  7423. fi
  7424. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7425. if test -n "$MAGIC_CMD"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7427. $as_echo "$MAGIC_CMD" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. else
  7433. MAGIC_CMD=:
  7434. fi
  7435. fi
  7436. fi
  7437. ;;
  7438. esac
  7439. # Use C for the default configuration in the libtool script
  7440. lt_save_CC="$CC"
  7441. ac_ext=c
  7442. ac_cpp='$CPP $CPPFLAGS'
  7443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7446. # Source file extension for C test sources.
  7447. ac_ext=c
  7448. # Object file extension for compiled C test sources.
  7449. objext=o
  7450. objext=$objext
  7451. # Code to be used in simple compile tests
  7452. lt_simple_compile_test_code="int some_variable = 0;"
  7453. # Code to be used in simple link tests
  7454. lt_simple_link_test_code='int main(){return(0);}'
  7455. # If no C compiler was specified, use CC.
  7456. LTCC=${LTCC-"$CC"}
  7457. # If no C compiler flags were specified, use CFLAGS.
  7458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7459. # Allow CC to be a program name with arguments.
  7460. compiler=$CC
  7461. # Save the default compiler, since it gets overwritten when the other
  7462. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7463. compiler_DEFAULT=$CC
  7464. # save warnings/boilerplate of simple test code
  7465. ac_outfile=conftest.$ac_objext
  7466. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7467. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7468. _lt_compiler_boilerplate=`cat conftest.err`
  7469. $RM conftest*
  7470. ac_outfile=conftest.$ac_objext
  7471. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7472. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7473. _lt_linker_boilerplate=`cat conftest.err`
  7474. $RM -r conftest*
  7475. if test -n "$compiler"; then
  7476. lt_prog_compiler_no_builtin_flag=
  7477. if test "$GCC" = yes; then
  7478. case $cc_basename in
  7479. nvcc*)
  7480. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7481. *)
  7482. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7483. esac
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7485. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7486. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7487. $as_echo_n "(cached) " >&6
  7488. else
  7489. lt_cv_prog_compiler_rtti_exceptions=no
  7490. ac_outfile=conftest.$ac_objext
  7491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7492. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7493. # Insert the option either (1) after the last *FLAGS variable, or
  7494. # (2) before a word containing "conftest.", or (3) at the end.
  7495. # Note that $ac_compile itself does not contain backslashes and begins
  7496. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7497. # The option is referenced via a variable to avoid confusing sed.
  7498. lt_compile=`echo "$ac_compile" | $SED \
  7499. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7500. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7501. -e 's:$: $lt_compiler_flag:'`
  7502. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7503. (eval "$lt_compile" 2>conftest.err)
  7504. ac_status=$?
  7505. cat conftest.err >&5
  7506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. if (exit $ac_status) && test -s "$ac_outfile"; then
  7508. # The compiler can only warn and ignore the option if not recognized
  7509. # So say no if there are warnings other than the usual output.
  7510. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7511. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7512. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7513. lt_cv_prog_compiler_rtti_exceptions=yes
  7514. fi
  7515. fi
  7516. $RM conftest*
  7517. fi
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7519. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7520. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7521. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7522. else
  7523. :
  7524. fi
  7525. fi
  7526. lt_prog_compiler_wl=
  7527. lt_prog_compiler_pic=
  7528. lt_prog_compiler_static=
  7529. if test "$GCC" = yes; then
  7530. lt_prog_compiler_wl='-Wl,'
  7531. lt_prog_compiler_static='-static'
  7532. case $host_os in
  7533. aix*)
  7534. # All AIX code is PIC.
  7535. if test "$host_cpu" = ia64; then
  7536. # AIX 5 now supports IA64 processor
  7537. lt_prog_compiler_static='-Bstatic'
  7538. fi
  7539. ;;
  7540. amigaos*)
  7541. case $host_cpu in
  7542. powerpc)
  7543. # see comment about AmigaOS4 .so support
  7544. lt_prog_compiler_pic='-fPIC'
  7545. ;;
  7546. m68k)
  7547. # FIXME: we need at least 68020 code to build shared libraries, but
  7548. # adding the `-m68020' flag to GCC prevents building anything better,
  7549. # like `-m68040'.
  7550. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7551. ;;
  7552. esac
  7553. ;;
  7554. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7555. # PIC is the default for these OSes.
  7556. ;;
  7557. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7558. # This hack is so that the source file can tell whether it is being
  7559. # built for inclusion in a dll (and should export symbols for example).
  7560. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7561. # (--disable-auto-import) libraries
  7562. lt_prog_compiler_pic='-DDLL_EXPORT'
  7563. ;;
  7564. darwin* | rhapsody*)
  7565. # PIC is the default on this platform
  7566. # Common symbols not allowed in MH_DYLIB files
  7567. lt_prog_compiler_pic='-fno-common'
  7568. ;;
  7569. haiku*)
  7570. # PIC is the default for Haiku.
  7571. # The "-static" flag exists, but is broken.
  7572. lt_prog_compiler_static=
  7573. ;;
  7574. hpux*)
  7575. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7576. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7577. # sets the default TLS model and affects inlining.
  7578. case $host_cpu in
  7579. hppa*64*)
  7580. # +Z the default
  7581. ;;
  7582. *)
  7583. lt_prog_compiler_pic='-fPIC'
  7584. ;;
  7585. esac
  7586. ;;
  7587. interix[3-9]*)
  7588. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7589. # Instead, we relocate shared libraries at runtime.
  7590. ;;
  7591. msdosdjgpp*)
  7592. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7593. # on systems that don't support them.
  7594. lt_prog_compiler_can_build_shared=no
  7595. enable_shared=no
  7596. ;;
  7597. *nto* | *qnx*)
  7598. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7599. # it will coredump.
  7600. lt_prog_compiler_pic='-fPIC -shared'
  7601. ;;
  7602. sysv4*MP*)
  7603. if test -d /usr/nec; then
  7604. lt_prog_compiler_pic=-Kconform_pic
  7605. fi
  7606. ;;
  7607. *)
  7608. lt_prog_compiler_pic='-fPIC'
  7609. ;;
  7610. esac
  7611. case $cc_basename in
  7612. nvcc*) # Cuda Compiler Driver 2.2
  7613. lt_prog_compiler_wl='-Xlinker '
  7614. if test -n "$lt_prog_compiler_pic"; then
  7615. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7616. fi
  7617. ;;
  7618. esac
  7619. else
  7620. # PORTME Check for flag to pass linker flags through the system compiler.
  7621. case $host_os in
  7622. aix*)
  7623. lt_prog_compiler_wl='-Wl,'
  7624. if test "$host_cpu" = ia64; then
  7625. # AIX 5 now supports IA64 processor
  7626. lt_prog_compiler_static='-Bstatic'
  7627. else
  7628. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7629. fi
  7630. ;;
  7631. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7632. # This hack is so that the source file can tell whether it is being
  7633. # built for inclusion in a dll (and should export symbols for example).
  7634. lt_prog_compiler_pic='-DDLL_EXPORT'
  7635. ;;
  7636. hpux9* | hpux10* | hpux11*)
  7637. lt_prog_compiler_wl='-Wl,'
  7638. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7639. # not for PA HP-UX.
  7640. case $host_cpu in
  7641. hppa*64*|ia64*)
  7642. # +Z the default
  7643. ;;
  7644. *)
  7645. lt_prog_compiler_pic='+Z'
  7646. ;;
  7647. esac
  7648. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7649. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7650. ;;
  7651. irix5* | irix6* | nonstopux*)
  7652. lt_prog_compiler_wl='-Wl,'
  7653. # PIC (with -KPIC) is the default.
  7654. lt_prog_compiler_static='-non_shared'
  7655. ;;
  7656. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7657. case $cc_basename in
  7658. # old Intel for x86_64 which still supported -KPIC.
  7659. ecc*)
  7660. lt_prog_compiler_wl='-Wl,'
  7661. lt_prog_compiler_pic='-KPIC'
  7662. lt_prog_compiler_static='-static'
  7663. ;;
  7664. # icc used to be incompatible with GCC.
  7665. # ICC 10 doesn't accept -KPIC any more.
  7666. icc* | ifort*)
  7667. lt_prog_compiler_wl='-Wl,'
  7668. lt_prog_compiler_pic='-fPIC'
  7669. lt_prog_compiler_static='-static'
  7670. ;;
  7671. # Lahey Fortran 8.1.
  7672. lf95*)
  7673. lt_prog_compiler_wl='-Wl,'
  7674. lt_prog_compiler_pic='--shared'
  7675. lt_prog_compiler_static='--static'
  7676. ;;
  7677. nagfor*)
  7678. # NAG Fortran compiler
  7679. lt_prog_compiler_wl='-Wl,-Wl,,'
  7680. lt_prog_compiler_pic='-PIC'
  7681. lt_prog_compiler_static='-Bstatic'
  7682. ;;
  7683. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7684. # Portland Group compilers (*not* the Pentium gcc compiler,
  7685. # which looks to be a dead project)
  7686. lt_prog_compiler_wl='-Wl,'
  7687. lt_prog_compiler_pic='-fpic'
  7688. lt_prog_compiler_static='-Bstatic'
  7689. ;;
  7690. ccc*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. # All Alpha code is PIC.
  7693. lt_prog_compiler_static='-non_shared'
  7694. ;;
  7695. xl* | bgxl* | bgf* | mpixl*)
  7696. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7697. lt_prog_compiler_wl='-Wl,'
  7698. lt_prog_compiler_pic='-qpic'
  7699. lt_prog_compiler_static='-qstaticlink'
  7700. ;;
  7701. *)
  7702. case `$CC -V 2>&1 | sed 5q` in
  7703. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7704. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7705. lt_prog_compiler_pic='-KPIC'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. lt_prog_compiler_wl=''
  7708. ;;
  7709. *Sun\ F* | *Sun*Fortran*)
  7710. lt_prog_compiler_pic='-KPIC'
  7711. lt_prog_compiler_static='-Bstatic'
  7712. lt_prog_compiler_wl='-Qoption ld '
  7713. ;;
  7714. *Sun\ C*)
  7715. # Sun C 5.9
  7716. lt_prog_compiler_pic='-KPIC'
  7717. lt_prog_compiler_static='-Bstatic'
  7718. lt_prog_compiler_wl='-Wl,'
  7719. ;;
  7720. *Intel*\ [CF]*Compiler*)
  7721. lt_prog_compiler_wl='-Wl,'
  7722. lt_prog_compiler_pic='-fPIC'
  7723. lt_prog_compiler_static='-static'
  7724. ;;
  7725. *Portland\ Group*)
  7726. lt_prog_compiler_wl='-Wl,'
  7727. lt_prog_compiler_pic='-fpic'
  7728. lt_prog_compiler_static='-Bstatic'
  7729. ;;
  7730. esac
  7731. ;;
  7732. esac
  7733. ;;
  7734. newsos6)
  7735. lt_prog_compiler_pic='-KPIC'
  7736. lt_prog_compiler_static='-Bstatic'
  7737. ;;
  7738. *nto* | *qnx*)
  7739. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7740. # it will coredump.
  7741. lt_prog_compiler_pic='-fPIC -shared'
  7742. ;;
  7743. osf3* | osf4* | osf5*)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. # All OSF/1 code is PIC.
  7746. lt_prog_compiler_static='-non_shared'
  7747. ;;
  7748. rdos*)
  7749. lt_prog_compiler_static='-non_shared'
  7750. ;;
  7751. solaris*)
  7752. lt_prog_compiler_pic='-KPIC'
  7753. lt_prog_compiler_static='-Bstatic'
  7754. case $cc_basename in
  7755. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7756. lt_prog_compiler_wl='-Qoption ld ';;
  7757. *)
  7758. lt_prog_compiler_wl='-Wl,';;
  7759. esac
  7760. ;;
  7761. sunos4*)
  7762. lt_prog_compiler_wl='-Qoption ld '
  7763. lt_prog_compiler_pic='-PIC'
  7764. lt_prog_compiler_static='-Bstatic'
  7765. ;;
  7766. sysv4 | sysv4.2uw2* | sysv4.3*)
  7767. lt_prog_compiler_wl='-Wl,'
  7768. lt_prog_compiler_pic='-KPIC'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. ;;
  7771. sysv4*MP*)
  7772. if test -d /usr/nec ;then
  7773. lt_prog_compiler_pic='-Kconform_pic'
  7774. lt_prog_compiler_static='-Bstatic'
  7775. fi
  7776. ;;
  7777. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7778. lt_prog_compiler_wl='-Wl,'
  7779. lt_prog_compiler_pic='-KPIC'
  7780. lt_prog_compiler_static='-Bstatic'
  7781. ;;
  7782. unicos*)
  7783. lt_prog_compiler_wl='-Wl,'
  7784. lt_prog_compiler_can_build_shared=no
  7785. ;;
  7786. uts4*)
  7787. lt_prog_compiler_pic='-pic'
  7788. lt_prog_compiler_static='-Bstatic'
  7789. ;;
  7790. *)
  7791. lt_prog_compiler_can_build_shared=no
  7792. ;;
  7793. esac
  7794. fi
  7795. case $host_os in
  7796. # For platforms which do not support PIC, -DPIC is meaningless:
  7797. *djgpp*)
  7798. lt_prog_compiler_pic=
  7799. ;;
  7800. *)
  7801. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7802. ;;
  7803. esac
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7805. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7806. if ${lt_cv_prog_compiler_pic+:} false; then :
  7807. $as_echo_n "(cached) " >&6
  7808. else
  7809. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7810. fi
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7812. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7813. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7814. #
  7815. # Check to make sure the PIC flag actually works.
  7816. #
  7817. if test -n "$lt_prog_compiler_pic"; then
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7819. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7820. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7821. $as_echo_n "(cached) " >&6
  7822. else
  7823. lt_cv_prog_compiler_pic_works=no
  7824. ac_outfile=conftest.$ac_objext
  7825. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7826. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7827. # Insert the option either (1) after the last *FLAGS variable, or
  7828. # (2) before a word containing "conftest.", or (3) at the end.
  7829. # Note that $ac_compile itself does not contain backslashes and begins
  7830. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7831. # The option is referenced via a variable to avoid confusing sed.
  7832. lt_compile=`echo "$ac_compile" | $SED \
  7833. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7834. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7835. -e 's:$: $lt_compiler_flag:'`
  7836. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7837. (eval "$lt_compile" 2>conftest.err)
  7838. ac_status=$?
  7839. cat conftest.err >&5
  7840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7841. if (exit $ac_status) && test -s "$ac_outfile"; then
  7842. # The compiler can only warn and ignore the option if not recognized
  7843. # So say no if there are warnings other than the usual output.
  7844. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7845. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7846. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7847. lt_cv_prog_compiler_pic_works=yes
  7848. fi
  7849. fi
  7850. $RM conftest*
  7851. fi
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7853. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7854. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7855. case $lt_prog_compiler_pic in
  7856. "" | " "*) ;;
  7857. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7858. esac
  7859. else
  7860. lt_prog_compiler_pic=
  7861. lt_prog_compiler_can_build_shared=no
  7862. fi
  7863. fi
  7864. #
  7865. # Check to make sure the static flag actually works.
  7866. #
  7867. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7869. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7870. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7871. $as_echo_n "(cached) " >&6
  7872. else
  7873. lt_cv_prog_compiler_static_works=no
  7874. save_LDFLAGS="$LDFLAGS"
  7875. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7876. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7877. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7878. # The linker can only warn and ignore the option if not recognized
  7879. # So say no if there are warnings
  7880. if test -s conftest.err; then
  7881. # Append any errors to the config.log.
  7882. cat conftest.err 1>&5
  7883. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7884. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7885. if diff conftest.exp conftest.er2 >/dev/null; then
  7886. lt_cv_prog_compiler_static_works=yes
  7887. fi
  7888. else
  7889. lt_cv_prog_compiler_static_works=yes
  7890. fi
  7891. fi
  7892. $RM -r conftest*
  7893. LDFLAGS="$save_LDFLAGS"
  7894. fi
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7896. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7897. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7898. :
  7899. else
  7900. lt_prog_compiler_static=
  7901. fi
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7903. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7904. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7905. $as_echo_n "(cached) " >&6
  7906. else
  7907. lt_cv_prog_compiler_c_o=no
  7908. $RM -r conftest 2>/dev/null
  7909. mkdir conftest
  7910. cd conftest
  7911. mkdir out
  7912. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7913. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7914. # Insert the option either (1) after the last *FLAGS variable, or
  7915. # (2) before a word containing "conftest.", or (3) at the end.
  7916. # Note that $ac_compile itself does not contain backslashes and begins
  7917. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7918. lt_compile=`echo "$ac_compile" | $SED \
  7919. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7920. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7921. -e 's:$: $lt_compiler_flag:'`
  7922. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7923. (eval "$lt_compile" 2>out/conftest.err)
  7924. ac_status=$?
  7925. cat out/conftest.err >&5
  7926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7928. then
  7929. # The compiler can only warn and ignore the option if not recognized
  7930. # So say no if there are warnings
  7931. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7932. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7933. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7934. lt_cv_prog_compiler_c_o=yes
  7935. fi
  7936. fi
  7937. chmod u+w . 2>&5
  7938. $RM conftest*
  7939. # SGI C++ compiler will create directory out/ii_files/ for
  7940. # template instantiation
  7941. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7942. $RM out/* && rmdir out
  7943. cd ..
  7944. $RM -r conftest
  7945. $RM conftest*
  7946. fi
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7948. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7950. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7951. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7952. $as_echo_n "(cached) " >&6
  7953. else
  7954. lt_cv_prog_compiler_c_o=no
  7955. $RM -r conftest 2>/dev/null
  7956. mkdir conftest
  7957. cd conftest
  7958. mkdir out
  7959. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7960. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7961. # Insert the option either (1) after the last *FLAGS variable, or
  7962. # (2) before a word containing "conftest.", or (3) at the end.
  7963. # Note that $ac_compile itself does not contain backslashes and begins
  7964. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7965. lt_compile=`echo "$ac_compile" | $SED \
  7966. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7967. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7968. -e 's:$: $lt_compiler_flag:'`
  7969. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7970. (eval "$lt_compile" 2>out/conftest.err)
  7971. ac_status=$?
  7972. cat out/conftest.err >&5
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7975. then
  7976. # The compiler can only warn and ignore the option if not recognized
  7977. # So say no if there are warnings
  7978. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7979. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7980. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7981. lt_cv_prog_compiler_c_o=yes
  7982. fi
  7983. fi
  7984. chmod u+w . 2>&5
  7985. $RM conftest*
  7986. # SGI C++ compiler will create directory out/ii_files/ for
  7987. # template instantiation
  7988. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7989. $RM out/* && rmdir out
  7990. cd ..
  7991. $RM -r conftest
  7992. $RM conftest*
  7993. fi
  7994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7995. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7996. hard_links="nottested"
  7997. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7998. # do not overwrite the value of need_locks provided by the user
  7999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8000. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8001. hard_links=yes
  8002. $RM conftest*
  8003. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8004. touch conftest.a
  8005. ln conftest.a conftest.b 2>&5 || hard_links=no
  8006. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8008. $as_echo "$hard_links" >&6; }
  8009. if test "$hard_links" = no; then
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8011. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8012. need_locks=warn
  8013. fi
  8014. else
  8015. need_locks=no
  8016. fi
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8018. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8019. runpath_var=
  8020. allow_undefined_flag=
  8021. always_export_symbols=no
  8022. archive_cmds=
  8023. archive_expsym_cmds=
  8024. compiler_needs_object=no
  8025. enable_shared_with_static_runtimes=no
  8026. export_dynamic_flag_spec=
  8027. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8028. hardcode_automatic=no
  8029. hardcode_direct=no
  8030. hardcode_direct_absolute=no
  8031. hardcode_libdir_flag_spec=
  8032. hardcode_libdir_separator=
  8033. hardcode_minus_L=no
  8034. hardcode_shlibpath_var=unsupported
  8035. inherit_rpath=no
  8036. link_all_deplibs=unknown
  8037. module_cmds=
  8038. module_expsym_cmds=
  8039. old_archive_from_new_cmds=
  8040. old_archive_from_expsyms_cmds=
  8041. thread_safe_flag_spec=
  8042. whole_archive_flag_spec=
  8043. # include_expsyms should be a list of space-separated symbols to be *always*
  8044. # included in the symbol list
  8045. include_expsyms=
  8046. # exclude_expsyms can be an extended regexp of symbols to exclude
  8047. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8048. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8049. # as well as any symbol that contains `d'.
  8050. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8051. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8052. # platforms (ab)use it in PIC code, but their linkers get confused if
  8053. # the symbol is explicitly referenced. Since portable code cannot
  8054. # rely on this symbol name, it's probably fine to never include it in
  8055. # preloaded symbol tables.
  8056. # Exclude shared library initialization/finalization symbols.
  8057. extract_expsyms_cmds=
  8058. case $host_os in
  8059. cygwin* | mingw* | pw32* | cegcc*)
  8060. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8061. # When not using gcc, we currently assume that we are using
  8062. # Microsoft Visual C++.
  8063. if test "$GCC" != yes; then
  8064. with_gnu_ld=no
  8065. fi
  8066. ;;
  8067. interix*)
  8068. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8069. with_gnu_ld=yes
  8070. ;;
  8071. openbsd*)
  8072. with_gnu_ld=no
  8073. ;;
  8074. esac
  8075. ld_shlibs=yes
  8076. # On some targets, GNU ld is compatible enough with the native linker
  8077. # that we're better off using the native interface for both.
  8078. lt_use_gnu_ld_interface=no
  8079. if test "$with_gnu_ld" = yes; then
  8080. case $host_os in
  8081. aix*)
  8082. # The AIX port of GNU ld has always aspired to compatibility
  8083. # with the native linker. However, as the warning in the GNU ld
  8084. # block says, versions before 2.19.5* couldn't really create working
  8085. # shared libraries, regardless of the interface used.
  8086. case `$LD -v 2>&1` in
  8087. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8088. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8089. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8090. *)
  8091. lt_use_gnu_ld_interface=yes
  8092. ;;
  8093. esac
  8094. ;;
  8095. *)
  8096. lt_use_gnu_ld_interface=yes
  8097. ;;
  8098. esac
  8099. fi
  8100. if test "$lt_use_gnu_ld_interface" = yes; then
  8101. # If archive_cmds runs LD, not CC, wlarc should be empty
  8102. wlarc='${wl}'
  8103. # Set some defaults for GNU ld with shared library support. These
  8104. # are reset later if shared libraries are not supported. Putting them
  8105. # here allows them to be overridden if necessary.
  8106. runpath_var=LD_RUN_PATH
  8107. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8108. export_dynamic_flag_spec='${wl}--export-dynamic'
  8109. # ancient GNU ld didn't support --whole-archive et. al.
  8110. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8111. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8112. else
  8113. whole_archive_flag_spec=
  8114. fi
  8115. supports_anon_versioning=no
  8116. case `$LD -v 2>&1` in
  8117. *GNU\ gold*) supports_anon_versioning=yes ;;
  8118. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8119. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8120. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8121. *\ 2.11.*) ;; # other 2.11 versions
  8122. *) supports_anon_versioning=yes ;;
  8123. esac
  8124. # See if GNU ld supports shared libraries.
  8125. case $host_os in
  8126. aix[3-9]*)
  8127. # On AIX/PPC, the GNU linker is very broken
  8128. if test "$host_cpu" != ia64; then
  8129. ld_shlibs=no
  8130. cat <<_LT_EOF 1>&2
  8131. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8132. *** to be unable to reliably create shared libraries on AIX.
  8133. *** Therefore, libtool is disabling shared libraries support. If you
  8134. *** really care for shared libraries, you may want to install binutils
  8135. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8136. *** You will then need to restart the configuration process.
  8137. _LT_EOF
  8138. fi
  8139. ;;
  8140. amigaos*)
  8141. case $host_cpu in
  8142. powerpc)
  8143. # see comment about AmigaOS4 .so support
  8144. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8145. archive_expsym_cmds=''
  8146. ;;
  8147. m68k)
  8148. 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)'
  8149. hardcode_libdir_flag_spec='-L$libdir'
  8150. hardcode_minus_L=yes
  8151. ;;
  8152. esac
  8153. ;;
  8154. beos*)
  8155. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8156. allow_undefined_flag=unsupported
  8157. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8158. # support --undefined. This deserves some investigation. FIXME
  8159. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8160. else
  8161. ld_shlibs=no
  8162. fi
  8163. ;;
  8164. cygwin* | mingw* | pw32* | cegcc*)
  8165. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8166. # as there is no search path for DLLs.
  8167. hardcode_libdir_flag_spec='-L$libdir'
  8168. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8169. allow_undefined_flag=unsupported
  8170. always_export_symbols=no
  8171. enable_shared_with_static_runtimes=yes
  8172. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8173. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8174. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8175. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8176. # If the export-symbols file already is a .def file (1st line
  8177. # is EXPORTS), use it as is; otherwise, prepend...
  8178. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8179. cp $export_symbols $output_objdir/$soname.def;
  8180. else
  8181. echo EXPORTS > $output_objdir/$soname.def;
  8182. cat $export_symbols >> $output_objdir/$soname.def;
  8183. fi~
  8184. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8185. else
  8186. ld_shlibs=no
  8187. fi
  8188. ;;
  8189. haiku*)
  8190. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8191. link_all_deplibs=yes
  8192. ;;
  8193. interix[3-9]*)
  8194. hardcode_direct=no
  8195. hardcode_shlibpath_var=no
  8196. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8197. export_dynamic_flag_spec='${wl}-E'
  8198. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8199. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8200. # default) and relocated if they conflict, which is a slow very memory
  8201. # consuming and fragmenting process. To avoid this, we pick a random,
  8202. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8203. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8204. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8205. 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'
  8206. ;;
  8207. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8208. tmp_diet=no
  8209. if test "$host_os" = linux-dietlibc; then
  8210. case $cc_basename in
  8211. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8212. esac
  8213. fi
  8214. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8215. && test "$tmp_diet" = no
  8216. then
  8217. tmp_addflag=' $pic_flag'
  8218. tmp_sharedflag='-shared'
  8219. case $cc_basename,$host_cpu in
  8220. pgcc*) # Portland Group C compiler
  8221. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8222. tmp_addflag=' $pic_flag'
  8223. ;;
  8224. pgf77* | pgf90* | pgf95* | pgfortran*)
  8225. # Portland Group f77 and f90 compilers
  8226. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8227. tmp_addflag=' $pic_flag -Mnomain' ;;
  8228. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8229. tmp_addflag=' -i_dynamic' ;;
  8230. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8231. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8232. ifc* | ifort*) # Intel Fortran compiler
  8233. tmp_addflag=' -nofor_main' ;;
  8234. lf95*) # Lahey Fortran 8.1
  8235. whole_archive_flag_spec=
  8236. tmp_sharedflag='--shared' ;;
  8237. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8238. tmp_sharedflag='-qmkshrobj'
  8239. tmp_addflag= ;;
  8240. nvcc*) # Cuda Compiler Driver 2.2
  8241. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8242. compiler_needs_object=yes
  8243. ;;
  8244. esac
  8245. case `$CC -V 2>&1 | sed 5q` in
  8246. *Sun\ C*) # Sun C 5.9
  8247. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8248. compiler_needs_object=yes
  8249. tmp_sharedflag='-G' ;;
  8250. *Sun\ F*) # Sun Fortran 8.3
  8251. tmp_sharedflag='-G' ;;
  8252. esac
  8253. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8254. if test "x$supports_anon_versioning" = xyes; then
  8255. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8256. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8257. echo "local: *; };" >> $output_objdir/$libname.ver~
  8258. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8259. fi
  8260. case $cc_basename in
  8261. xlf* | bgf* | bgxlf* | mpixlf*)
  8262. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8263. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8264. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8265. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8266. if test "x$supports_anon_versioning" = xyes; then
  8267. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8268. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8269. echo "local: *; };" >> $output_objdir/$libname.ver~
  8270. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8271. fi
  8272. ;;
  8273. esac
  8274. else
  8275. ld_shlibs=no
  8276. fi
  8277. ;;
  8278. netbsd*)
  8279. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8280. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8281. wlarc=
  8282. else
  8283. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8284. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8285. fi
  8286. ;;
  8287. solaris*)
  8288. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8289. ld_shlibs=no
  8290. cat <<_LT_EOF 1>&2
  8291. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8292. *** create shared libraries on Solaris systems. Therefore, libtool
  8293. *** is disabling shared libraries support. We urge you to upgrade GNU
  8294. *** binutils to release 2.9.1 or newer. Another option is to modify
  8295. *** your PATH or compiler configuration so that the native linker is
  8296. *** used, and then restart.
  8297. _LT_EOF
  8298. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8299. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8300. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8301. else
  8302. ld_shlibs=no
  8303. fi
  8304. ;;
  8305. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8306. case `$LD -v 2>&1` in
  8307. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8308. ld_shlibs=no
  8309. cat <<_LT_EOF 1>&2
  8310. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8311. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8312. *** is disabling shared libraries support. We urge you to upgrade GNU
  8313. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8314. *** your PATH or compiler configuration so that the native linker is
  8315. *** used, and then restart.
  8316. _LT_EOF
  8317. ;;
  8318. *)
  8319. # For security reasons, it is highly recommended that you always
  8320. # use absolute paths for naming shared libraries, and exclude the
  8321. # DT_RUNPATH tag from executables and libraries. But doing so
  8322. # requires that you compile everything twice, which is a pain.
  8323. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8324. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8326. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8327. else
  8328. ld_shlibs=no
  8329. fi
  8330. ;;
  8331. esac
  8332. ;;
  8333. sunos4*)
  8334. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8335. wlarc=
  8336. hardcode_direct=yes
  8337. hardcode_shlibpath_var=no
  8338. ;;
  8339. *)
  8340. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8341. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8343. else
  8344. ld_shlibs=no
  8345. fi
  8346. ;;
  8347. esac
  8348. if test "$ld_shlibs" = no; then
  8349. runpath_var=
  8350. hardcode_libdir_flag_spec=
  8351. export_dynamic_flag_spec=
  8352. whole_archive_flag_spec=
  8353. fi
  8354. else
  8355. # PORTME fill in a description of your system's linker (not GNU ld)
  8356. case $host_os in
  8357. aix3*)
  8358. allow_undefined_flag=unsupported
  8359. always_export_symbols=yes
  8360. 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'
  8361. # Note: this linker hardcodes the directories in LIBPATH if there
  8362. # are no directories specified by -L.
  8363. hardcode_minus_L=yes
  8364. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8365. # Neither direct hardcoding nor static linking is supported with a
  8366. # broken collect2.
  8367. hardcode_direct=unsupported
  8368. fi
  8369. ;;
  8370. aix[4-9]*)
  8371. if test "$host_cpu" = ia64; then
  8372. # On IA64, the linker does run time linking by default, so we don't
  8373. # have to do anything special.
  8374. aix_use_runtimelinking=no
  8375. exp_sym_flag='-Bexport'
  8376. no_entry_flag=""
  8377. else
  8378. # If we're using GNU nm, then we don't want the "-C" option.
  8379. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8380. # Also, AIX nm treats weak defined symbols like other global
  8381. # defined symbols, whereas GNU nm marks them as "W".
  8382. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8383. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8384. else
  8385. 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'
  8386. fi
  8387. aix_use_runtimelinking=no
  8388. # Test if we are trying to use run time linking or normal
  8389. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8390. # need to do runtime linking.
  8391. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8392. for ld_flag in $LDFLAGS; do
  8393. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8394. aix_use_runtimelinking=yes
  8395. break
  8396. fi
  8397. done
  8398. ;;
  8399. esac
  8400. exp_sym_flag='-bexport'
  8401. no_entry_flag='-bnoentry'
  8402. fi
  8403. # When large executables or shared objects are built, AIX ld can
  8404. # have problems creating the table of contents. If linking a library
  8405. # or program results in "error TOC overflow" add -mminimal-toc to
  8406. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8407. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8408. archive_cmds=''
  8409. hardcode_direct=yes
  8410. hardcode_direct_absolute=yes
  8411. hardcode_libdir_separator=':'
  8412. link_all_deplibs=yes
  8413. file_list_spec='${wl}-f,'
  8414. if test "$GCC" = yes; then
  8415. case $host_os in aix4.[012]|aix4.[012].*)
  8416. # We only want to do this on AIX 4.2 and lower, the check
  8417. # below for broken collect2 doesn't work under 4.3+
  8418. collect2name=`${CC} -print-prog-name=collect2`
  8419. if test -f "$collect2name" &&
  8420. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8421. then
  8422. # We have reworked collect2
  8423. :
  8424. else
  8425. # We have old collect2
  8426. hardcode_direct=unsupported
  8427. # It fails to find uninstalled libraries when the uninstalled
  8428. # path is not listed in the libpath. Setting hardcode_minus_L
  8429. # to unsupported forces relinking
  8430. hardcode_minus_L=yes
  8431. hardcode_libdir_flag_spec='-L$libdir'
  8432. hardcode_libdir_separator=
  8433. fi
  8434. ;;
  8435. esac
  8436. shared_flag='-shared'
  8437. if test "$aix_use_runtimelinking" = yes; then
  8438. shared_flag="$shared_flag "'${wl}-G'
  8439. fi
  8440. else
  8441. # not using gcc
  8442. if test "$host_cpu" = ia64; then
  8443. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8444. # chokes on -Wl,-G. The following line is correct:
  8445. shared_flag='-G'
  8446. else
  8447. if test "$aix_use_runtimelinking" = yes; then
  8448. shared_flag='${wl}-G'
  8449. else
  8450. shared_flag='${wl}-bM:SRE'
  8451. fi
  8452. fi
  8453. fi
  8454. export_dynamic_flag_spec='${wl}-bexpall'
  8455. # It seems that -bexpall does not export symbols beginning with
  8456. # underscore (_), so it is better to generate a list of symbols to export.
  8457. always_export_symbols=yes
  8458. if test "$aix_use_runtimelinking" = yes; then
  8459. # Warning - without using the other runtime loading flags (-brtl),
  8460. # -berok will link without error, but may produce a broken library.
  8461. allow_undefined_flag='-berok'
  8462. # Determine the default libpath from the value encoded in an
  8463. # empty executable.
  8464. if test "${lt_cv_aix_libpath+set}" = set; then
  8465. aix_libpath=$lt_cv_aix_libpath
  8466. else
  8467. if ${lt_cv_aix_libpath_+:} false; then :
  8468. $as_echo_n "(cached) " >&6
  8469. else
  8470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8471. /* end confdefs.h. */
  8472. int
  8473. main ()
  8474. {
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. if ac_fn_c_try_link "$LINENO"; then :
  8480. lt_aix_libpath_sed='
  8481. /Import File Strings/,/^$/ {
  8482. /^0/ {
  8483. s/^0 *\([^ ]*\) *$/\1/
  8484. p
  8485. }
  8486. }'
  8487. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8488. # Check for a 64-bit object if we didn't find anything.
  8489. if test -z "$lt_cv_aix_libpath_"; then
  8490. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8491. fi
  8492. fi
  8493. rm -f core conftest.err conftest.$ac_objext \
  8494. conftest$ac_exeext conftest.$ac_ext
  8495. if test -z "$lt_cv_aix_libpath_"; then
  8496. lt_cv_aix_libpath_="/usr/lib:/lib"
  8497. fi
  8498. fi
  8499. aix_libpath=$lt_cv_aix_libpath_
  8500. fi
  8501. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8502. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8503. else
  8504. if test "$host_cpu" = ia64; then
  8505. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8506. allow_undefined_flag="-z nodefs"
  8507. 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"
  8508. else
  8509. # Determine the default libpath from the value encoded in an
  8510. # empty executable.
  8511. if test "${lt_cv_aix_libpath+set}" = set; then
  8512. aix_libpath=$lt_cv_aix_libpath
  8513. else
  8514. if ${lt_cv_aix_libpath_+:} false; then :
  8515. $as_echo_n "(cached) " >&6
  8516. else
  8517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8518. /* end confdefs.h. */
  8519. int
  8520. main ()
  8521. {
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. if ac_fn_c_try_link "$LINENO"; then :
  8527. lt_aix_libpath_sed='
  8528. /Import File Strings/,/^$/ {
  8529. /^0/ {
  8530. s/^0 *\([^ ]*\) *$/\1/
  8531. p
  8532. }
  8533. }'
  8534. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8535. # Check for a 64-bit object if we didn't find anything.
  8536. if test -z "$lt_cv_aix_libpath_"; then
  8537. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8538. fi
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext \
  8541. conftest$ac_exeext conftest.$ac_ext
  8542. if test -z "$lt_cv_aix_libpath_"; then
  8543. lt_cv_aix_libpath_="/usr/lib:/lib"
  8544. fi
  8545. fi
  8546. aix_libpath=$lt_cv_aix_libpath_
  8547. fi
  8548. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8549. # Warning - without using the other run time loading flags,
  8550. # -berok will link without error, but may produce a broken library.
  8551. no_undefined_flag=' ${wl}-bernotok'
  8552. allow_undefined_flag=' ${wl}-berok'
  8553. if test "$with_gnu_ld" = yes; then
  8554. # We only use this code for GNU lds that support --whole-archive.
  8555. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8556. else
  8557. # Exported symbols can be pulled into shared objects from archives
  8558. whole_archive_flag_spec='$convenience'
  8559. fi
  8560. archive_cmds_need_lc=yes
  8561. # This is similar to how AIX traditionally builds its shared libraries.
  8562. 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'
  8563. fi
  8564. fi
  8565. ;;
  8566. amigaos*)
  8567. case $host_cpu in
  8568. powerpc)
  8569. # see comment about AmigaOS4 .so support
  8570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8571. archive_expsym_cmds=''
  8572. ;;
  8573. m68k)
  8574. 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)'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_minus_L=yes
  8577. ;;
  8578. esac
  8579. ;;
  8580. bsdi[45]*)
  8581. export_dynamic_flag_spec=-rdynamic
  8582. ;;
  8583. cygwin* | mingw* | pw32* | cegcc*)
  8584. # When not using gcc, we currently assume that we are using
  8585. # Microsoft Visual C++.
  8586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8587. # no search path for DLLs.
  8588. case $cc_basename in
  8589. cl*)
  8590. # Native MSVC
  8591. hardcode_libdir_flag_spec=' '
  8592. allow_undefined_flag=unsupported
  8593. always_export_symbols=yes
  8594. file_list_spec='@'
  8595. # Tell ltmain to make .lib files, not .a files.
  8596. libext=lib
  8597. # Tell ltmain to make .dll files, not .so files.
  8598. shrext_cmds=".dll"
  8599. # FIXME: Setting linknames here is a bad hack.
  8600. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8601. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8602. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8603. else
  8604. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8605. fi~
  8606. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8607. linknames='
  8608. # The linker will not automatically build a static lib if we build a DLL.
  8609. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8610. enable_shared_with_static_runtimes=yes
  8611. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8612. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8613. # Don't use ranlib
  8614. old_postinstall_cmds='chmod 644 $oldlib'
  8615. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8616. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8617. case $lt_outputfile in
  8618. *.exe|*.EXE) ;;
  8619. *)
  8620. lt_outputfile="$lt_outputfile.exe"
  8621. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8622. ;;
  8623. esac~
  8624. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8625. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8626. $RM "$lt_outputfile.manifest";
  8627. fi'
  8628. ;;
  8629. *)
  8630. # Assume MSVC wrapper
  8631. hardcode_libdir_flag_spec=' '
  8632. allow_undefined_flag=unsupported
  8633. # Tell ltmain to make .lib files, not .a files.
  8634. libext=lib
  8635. # Tell ltmain to make .dll files, not .so files.
  8636. shrext_cmds=".dll"
  8637. # FIXME: Setting linknames here is a bad hack.
  8638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8639. # The linker will automatically build a .lib file if we build a DLL.
  8640. old_archive_from_new_cmds='true'
  8641. # FIXME: Should let the user specify the lib program.
  8642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8643. enable_shared_with_static_runtimes=yes
  8644. ;;
  8645. esac
  8646. ;;
  8647. darwin* | rhapsody*)
  8648. archive_cmds_need_lc=no
  8649. hardcode_direct=no
  8650. hardcode_automatic=yes
  8651. hardcode_shlibpath_var=unsupported
  8652. if test "$lt_cv_ld_force_load" = "yes"; then
  8653. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8654. else
  8655. whole_archive_flag_spec=''
  8656. fi
  8657. link_all_deplibs=yes
  8658. allow_undefined_flag="$_lt_dar_allow_undefined"
  8659. case $cc_basename in
  8660. ifort*) _lt_dar_can_shared=yes ;;
  8661. *) _lt_dar_can_shared=$GCC ;;
  8662. esac
  8663. if test "$_lt_dar_can_shared" = "yes"; then
  8664. output_verbose_link_cmd=func_echo_all
  8665. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8666. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8667. 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}"
  8668. 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}"
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. dgux*)
  8674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_shlibpath_var=no
  8677. ;;
  8678. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8679. # support. Future versions do this automatically, but an explicit c++rt0.o
  8680. # does not break anything, and helps significantly (at the cost of a little
  8681. # extra space).
  8682. freebsd2.2*)
  8683. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8684. hardcode_libdir_flag_spec='-R$libdir'
  8685. hardcode_direct=yes
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8689. freebsd2.*)
  8690. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8691. hardcode_direct=yes
  8692. hardcode_minus_L=yes
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8696. freebsd* | dragonfly*)
  8697. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8698. hardcode_libdir_flag_spec='-R$libdir'
  8699. hardcode_direct=yes
  8700. hardcode_shlibpath_var=no
  8701. ;;
  8702. hpux9*)
  8703. if test "$GCC" = yes; then
  8704. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8705. else
  8706. 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'
  8707. fi
  8708. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8709. hardcode_libdir_separator=:
  8710. hardcode_direct=yes
  8711. # hardcode_minus_L: Not really in the search PATH,
  8712. # but as the default location of the library.
  8713. hardcode_minus_L=yes
  8714. export_dynamic_flag_spec='${wl}-E'
  8715. ;;
  8716. hpux10*)
  8717. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8718. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8719. else
  8720. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8721. fi
  8722. if test "$with_gnu_ld" = no; then
  8723. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8724. hardcode_libdir_separator=:
  8725. hardcode_direct=yes
  8726. hardcode_direct_absolute=yes
  8727. export_dynamic_flag_spec='${wl}-E'
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. fi
  8732. ;;
  8733. hpux11*)
  8734. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8735. case $host_cpu in
  8736. hppa*64*)
  8737. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. ;;
  8739. ia64*)
  8740. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8741. ;;
  8742. *)
  8743. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8744. ;;
  8745. esac
  8746. else
  8747. case $host_cpu in
  8748. hppa*64*)
  8749. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. ;;
  8751. ia64*)
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8753. ;;
  8754. *)
  8755. # Older versions of the 11.00 compiler do not understand -b yet
  8756. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8758. $as_echo_n "checking if $CC understands -b... " >&6; }
  8759. if ${lt_cv_prog_compiler__b+:} false; then :
  8760. $as_echo_n "(cached) " >&6
  8761. else
  8762. lt_cv_prog_compiler__b=no
  8763. save_LDFLAGS="$LDFLAGS"
  8764. LDFLAGS="$LDFLAGS -b"
  8765. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8766. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8767. # The linker can only warn and ignore the option if not recognized
  8768. # So say no if there are warnings
  8769. if test -s conftest.err; then
  8770. # Append any errors to the config.log.
  8771. cat conftest.err 1>&5
  8772. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8774. if diff conftest.exp conftest.er2 >/dev/null; then
  8775. lt_cv_prog_compiler__b=yes
  8776. fi
  8777. else
  8778. lt_cv_prog_compiler__b=yes
  8779. fi
  8780. fi
  8781. $RM -r conftest*
  8782. LDFLAGS="$save_LDFLAGS"
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8785. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8786. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8787. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8788. else
  8789. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8790. fi
  8791. ;;
  8792. esac
  8793. fi
  8794. if test "$with_gnu_ld" = no; then
  8795. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8796. hardcode_libdir_separator=:
  8797. case $host_cpu in
  8798. hppa*64*|ia64*)
  8799. hardcode_direct=no
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *)
  8803. hardcode_direct=yes
  8804. hardcode_direct_absolute=yes
  8805. export_dynamic_flag_spec='${wl}-E'
  8806. # hardcode_minus_L: Not really in the search PATH,
  8807. # but as the default location of the library.
  8808. hardcode_minus_L=yes
  8809. ;;
  8810. esac
  8811. fi
  8812. ;;
  8813. irix5* | irix6* | nonstopux*)
  8814. if test "$GCC" = yes; then
  8815. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8816. # Try to use the -exported_symbol ld option, if it does not
  8817. # work, assume that -exports_file does not work either and
  8818. # implicitly export all symbols.
  8819. # This should be the same for all languages, so no per-tag cache variable.
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8821. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8822. if ${lt_cv_irix_exported_symbol+:} false; then :
  8823. $as_echo_n "(cached) " >&6
  8824. else
  8825. save_LDFLAGS="$LDFLAGS"
  8826. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8828. /* end confdefs.h. */
  8829. int foo (void) { return 0; }
  8830. _ACEOF
  8831. if ac_fn_c_try_link "$LINENO"; then :
  8832. lt_cv_irix_exported_symbol=yes
  8833. else
  8834. lt_cv_irix_exported_symbol=no
  8835. fi
  8836. rm -f core conftest.err conftest.$ac_objext \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. LDFLAGS="$save_LDFLAGS"
  8839. fi
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8841. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8842. if test "$lt_cv_irix_exported_symbol" = yes; then
  8843. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8844. fi
  8845. else
  8846. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8847. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8848. fi
  8849. archive_cmds_need_lc='no'
  8850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8851. hardcode_libdir_separator=:
  8852. inherit_rpath=yes
  8853. link_all_deplibs=yes
  8854. ;;
  8855. netbsd*)
  8856. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8857. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8858. else
  8859. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8860. fi
  8861. hardcode_libdir_flag_spec='-R$libdir'
  8862. hardcode_direct=yes
  8863. hardcode_shlibpath_var=no
  8864. ;;
  8865. newsos6)
  8866. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8867. hardcode_direct=yes
  8868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8869. hardcode_libdir_separator=:
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. *nto* | *qnx*)
  8873. ;;
  8874. openbsd*)
  8875. if test -f /usr/libexec/ld.so; then
  8876. hardcode_direct=yes
  8877. hardcode_shlibpath_var=no
  8878. hardcode_direct_absolute=yes
  8879. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8880. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8881. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8882. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8883. export_dynamic_flag_spec='${wl}-E'
  8884. else
  8885. case $host_os in
  8886. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8887. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_libdir_flag_spec='-R$libdir'
  8889. ;;
  8890. *)
  8891. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8892. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8893. ;;
  8894. esac
  8895. fi
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. os2*)
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. hardcode_minus_L=yes
  8903. allow_undefined_flag=unsupported
  8904. 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'
  8905. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8906. ;;
  8907. osf3*)
  8908. if test "$GCC" = yes; then
  8909. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8910. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8911. else
  8912. allow_undefined_flag=' -expect_unresolved \*'
  8913. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8914. fi
  8915. archive_cmds_need_lc='no'
  8916. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8917. hardcode_libdir_separator=:
  8918. ;;
  8919. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8920. if test "$GCC" = yes; then
  8921. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8922. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8923. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8924. else
  8925. allow_undefined_flag=' -expect_unresolved \*'
  8926. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8927. 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~
  8928. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8929. # Both c and cxx compiler support -rpath directly
  8930. hardcode_libdir_flag_spec='-rpath $libdir'
  8931. fi
  8932. archive_cmds_need_lc='no'
  8933. hardcode_libdir_separator=:
  8934. ;;
  8935. solaris*)
  8936. no_undefined_flag=' -z defs'
  8937. if test "$GCC" = yes; then
  8938. wlarc='${wl}'
  8939. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8941. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8942. else
  8943. case `$CC -V 2>&1` in
  8944. *"Compilers 5.0"*)
  8945. wlarc=''
  8946. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8947. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8948. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8949. ;;
  8950. *)
  8951. wlarc='${wl}'
  8952. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8954. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8955. ;;
  8956. esac
  8957. fi
  8958. hardcode_libdir_flag_spec='-R$libdir'
  8959. hardcode_shlibpath_var=no
  8960. case $host_os in
  8961. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8962. *)
  8963. # The compiler driver will combine and reorder linker options,
  8964. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8965. # but is careful enough not to reorder.
  8966. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8967. if test "$GCC" = yes; then
  8968. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8969. else
  8970. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8971. fi
  8972. ;;
  8973. esac
  8974. link_all_deplibs=yes
  8975. ;;
  8976. sunos4*)
  8977. if test "x$host_vendor" = xsequent; then
  8978. # Use $CC to link under sequent, because it throws in some extra .o
  8979. # files that make .init and .fini sections work.
  8980. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8981. else
  8982. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8983. fi
  8984. hardcode_libdir_flag_spec='-L$libdir'
  8985. hardcode_direct=yes
  8986. hardcode_minus_L=yes
  8987. hardcode_shlibpath_var=no
  8988. ;;
  8989. sysv4)
  8990. case $host_vendor in
  8991. sni)
  8992. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8993. hardcode_direct=yes # is this really true???
  8994. ;;
  8995. siemens)
  8996. ## LD is ld it makes a PLAMLIB
  8997. ## CC just makes a GrossModule.
  8998. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8999. reload_cmds='$CC -r -o $output$reload_objs'
  9000. hardcode_direct=no
  9001. ;;
  9002. motorola)
  9003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9005. ;;
  9006. esac
  9007. runpath_var='LD_RUN_PATH'
  9008. hardcode_shlibpath_var=no
  9009. ;;
  9010. sysv4.3*)
  9011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9012. hardcode_shlibpath_var=no
  9013. export_dynamic_flag_spec='-Bexport'
  9014. ;;
  9015. sysv4*MP*)
  9016. if test -d /usr/nec; then
  9017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9018. hardcode_shlibpath_var=no
  9019. runpath_var=LD_RUN_PATH
  9020. hardcode_runpath_var=yes
  9021. ld_shlibs=yes
  9022. fi
  9023. ;;
  9024. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9025. no_undefined_flag='${wl}-z,text'
  9026. archive_cmds_need_lc=no
  9027. hardcode_shlibpath_var=no
  9028. runpath_var='LD_RUN_PATH'
  9029. if test "$GCC" = yes; then
  9030. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9031. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9032. else
  9033. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9034. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. fi
  9036. ;;
  9037. sysv5* | sco3.2v5* | sco5v6*)
  9038. # Note: We can NOT use -z defs as we might desire, because we do not
  9039. # link with -lc, and that would cause any symbols used from libc to
  9040. # always be unresolved, which means just about no library would
  9041. # ever link correctly. If we're not using GNU ld we use -z text
  9042. # though, which does catch some bad symbols but isn't as heavy-handed
  9043. # as -z defs.
  9044. no_undefined_flag='${wl}-z,text'
  9045. allow_undefined_flag='${wl}-z,nodefs'
  9046. archive_cmds_need_lc=no
  9047. hardcode_shlibpath_var=no
  9048. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9049. hardcode_libdir_separator=':'
  9050. link_all_deplibs=yes
  9051. export_dynamic_flag_spec='${wl}-Bexport'
  9052. runpath_var='LD_RUN_PATH'
  9053. if test "$GCC" = yes; then
  9054. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9055. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. else
  9057. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9058. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9059. fi
  9060. ;;
  9061. uts4*)
  9062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. hardcode_libdir_flag_spec='-L$libdir'
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. *)
  9067. ld_shlibs=no
  9068. ;;
  9069. esac
  9070. if test x$host_vendor = xsni; then
  9071. case $host in
  9072. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9073. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9074. ;;
  9075. esac
  9076. fi
  9077. fi
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9079. $as_echo "$ld_shlibs" >&6; }
  9080. test "$ld_shlibs" = no && can_build_shared=no
  9081. with_gnu_ld=$with_gnu_ld
  9082. #
  9083. # Do we need to explicitly link libc?
  9084. #
  9085. case "x$archive_cmds_need_lc" in
  9086. x|xyes)
  9087. # Assume -lc should be added
  9088. archive_cmds_need_lc=yes
  9089. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9090. case $archive_cmds in
  9091. *'~'*)
  9092. # FIXME: we may have to deal with multi-command sequences.
  9093. ;;
  9094. '$CC '*)
  9095. # Test whether the compiler implicitly links with -lc since on some
  9096. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9097. # to ld, don't add -lc before -lgcc.
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9099. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9100. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9101. $as_echo_n "(cached) " >&6
  9102. else
  9103. $RM conftest*
  9104. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9106. (eval $ac_compile) 2>&5
  9107. ac_status=$?
  9108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9109. test $ac_status = 0; } 2>conftest.err; then
  9110. soname=conftest
  9111. lib=conftest
  9112. libobjs=conftest.$ac_objext
  9113. deplibs=
  9114. wl=$lt_prog_compiler_wl
  9115. pic_flag=$lt_prog_compiler_pic
  9116. compiler_flags=-v
  9117. linker_flags=-v
  9118. verstring=
  9119. output_objdir=.
  9120. libname=conftest
  9121. lt_save_allow_undefined_flag=$allow_undefined_flag
  9122. allow_undefined_flag=
  9123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9124. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9125. ac_status=$?
  9126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9127. test $ac_status = 0; }
  9128. then
  9129. lt_cv_archive_cmds_need_lc=no
  9130. else
  9131. lt_cv_archive_cmds_need_lc=yes
  9132. fi
  9133. allow_undefined_flag=$lt_save_allow_undefined_flag
  9134. else
  9135. cat conftest.err 1>&5
  9136. fi
  9137. $RM conftest*
  9138. fi
  9139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9140. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9141. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9142. ;;
  9143. esac
  9144. fi
  9145. ;;
  9146. esac
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9148. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9149. if test "$GCC" = yes; then
  9150. case $host_os in
  9151. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9152. *) lt_awk_arg="/^libraries:/" ;;
  9153. esac
  9154. case $host_os in
  9155. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9156. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9157. esac
  9158. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9159. case $lt_search_path_spec in
  9160. *\;*)
  9161. # if the path contains ";" then we assume it to be the separator
  9162. # otherwise default to the standard path separator (i.e. ":") - it is
  9163. # assumed that no part of a normal pathname contains ";" but that should
  9164. # okay in the real world where ";" in dirpaths is itself problematic.
  9165. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9166. ;;
  9167. *)
  9168. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9169. ;;
  9170. esac
  9171. # Ok, now we have the path, separated by spaces, we can step through it
  9172. # and add multilib dir if necessary.
  9173. lt_tmp_lt_search_path_spec=
  9174. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9175. for lt_sys_path in $lt_search_path_spec; do
  9176. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9177. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9178. else
  9179. test -d "$lt_sys_path" && \
  9180. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9181. fi
  9182. done
  9183. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9184. BEGIN {RS=" "; FS="/|\n";} {
  9185. lt_foo="";
  9186. lt_count=0;
  9187. for (lt_i = NF; lt_i > 0; lt_i--) {
  9188. if ($lt_i != "" && $lt_i != ".") {
  9189. if ($lt_i == "..") {
  9190. lt_count++;
  9191. } else {
  9192. if (lt_count == 0) {
  9193. lt_foo="/" $lt_i lt_foo;
  9194. } else {
  9195. lt_count--;
  9196. }
  9197. }
  9198. }
  9199. }
  9200. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9201. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9202. }'`
  9203. # AWK program above erroneously prepends '/' to C:/dos/paths
  9204. # for these hosts.
  9205. case $host_os in
  9206. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9207. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9208. esac
  9209. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9210. else
  9211. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9212. fi
  9213. library_names_spec=
  9214. libname_spec='lib$name'
  9215. soname_spec=
  9216. shrext_cmds=".so"
  9217. postinstall_cmds=
  9218. postuninstall_cmds=
  9219. finish_cmds=
  9220. finish_eval=
  9221. shlibpath_var=
  9222. shlibpath_overrides_runpath=unknown
  9223. version_type=none
  9224. dynamic_linker="$host_os ld.so"
  9225. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9226. need_lib_prefix=unknown
  9227. hardcode_into_libs=no
  9228. # when you set need_version to no, make sure it does not cause -set_version
  9229. # flags to be left without arguments
  9230. need_version=unknown
  9231. case $host_os in
  9232. aix3*)
  9233. version_type=linux # correct to gnu/linux during the next big refactor
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9235. shlibpath_var=LIBPATH
  9236. # AIX 3 has no versioning support, so we append a major version to the name.
  9237. soname_spec='${libname}${release}${shared_ext}$major'
  9238. ;;
  9239. aix[4-9]*)
  9240. version_type=linux # correct to gnu/linux during the next big refactor
  9241. need_lib_prefix=no
  9242. need_version=no
  9243. hardcode_into_libs=yes
  9244. if test "$host_cpu" = ia64; then
  9245. # AIX 5 supports IA64
  9246. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. else
  9249. # With GCC up to 2.95.x, collect2 would create an import file
  9250. # for dependence libraries. The import file would start with
  9251. # the line `#! .'. This would cause the generated library to
  9252. # depend on `.', always an invalid library. This was fixed in
  9253. # development snapshots of GCC prior to 3.0.
  9254. case $host_os in
  9255. aix4 | aix4.[01] | aix4.[01].*)
  9256. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9257. echo ' yes '
  9258. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9259. :
  9260. else
  9261. can_build_shared=no
  9262. fi
  9263. ;;
  9264. esac
  9265. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9266. # soname into executable. Probably we can add versioning support to
  9267. # collect2, so additional links can be useful in future.
  9268. if test "$aix_use_runtimelinking" = yes; then
  9269. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9270. # instead of lib<name>.a to let people know that these are not
  9271. # typical AIX shared libraries.
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9273. else
  9274. # We preserve .a as extension for shared libraries through AIX4.2
  9275. # and later when we are not doing run time linking.
  9276. library_names_spec='${libname}${release}.a $libname.a'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. fi
  9279. shlibpath_var=LIBPATH
  9280. fi
  9281. ;;
  9282. amigaos*)
  9283. case $host_cpu in
  9284. powerpc)
  9285. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9286. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. ;;
  9289. m68k)
  9290. library_names_spec='$libname.ixlibrary $libname.a'
  9291. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9292. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9293. ;;
  9294. esac
  9295. ;;
  9296. beos*)
  9297. library_names_spec='${libname}${shared_ext}'
  9298. dynamic_linker="$host_os ld.so"
  9299. shlibpath_var=LIBRARY_PATH
  9300. ;;
  9301. bsdi[45]*)
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. need_version=no
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9305. soname_spec='${libname}${release}${shared_ext}$major'
  9306. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9309. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9310. # the default ld.so.conf also contains /usr/contrib/lib and
  9311. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9312. # libtool to hard-code these into programs
  9313. ;;
  9314. cygwin* | mingw* | pw32* | cegcc*)
  9315. version_type=windows
  9316. shrext_cmds=".dll"
  9317. need_version=no
  9318. need_lib_prefix=no
  9319. case $GCC,$cc_basename in
  9320. yes,*)
  9321. # gcc
  9322. library_names_spec='$libname.dll.a'
  9323. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9324. postinstall_cmds='base_file=`basename \${file}`~
  9325. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9326. dldir=$destdir/`dirname \$dlpath`~
  9327. test -d \$dldir || mkdir -p \$dldir~
  9328. $install_prog $dir/$dlname \$dldir/$dlname~
  9329. chmod a+x \$dldir/$dlname~
  9330. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9331. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9332. fi'
  9333. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9334. dlpath=$dir/\$dldll~
  9335. $RM \$dlpath'
  9336. shlibpath_overrides_runpath=yes
  9337. case $host_os in
  9338. cygwin*)
  9339. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9340. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9341. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9342. ;;
  9343. mingw* | cegcc*)
  9344. # MinGW DLLs use traditional 'lib' prefix
  9345. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9346. ;;
  9347. pw32*)
  9348. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9349. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9350. ;;
  9351. esac
  9352. dynamic_linker='Win32 ld.exe'
  9353. ;;
  9354. *,cl*)
  9355. # Native MSVC
  9356. libname_spec='$name'
  9357. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9358. library_names_spec='${libname}.dll.lib'
  9359. case $build_os in
  9360. mingw*)
  9361. sys_lib_search_path_spec=
  9362. lt_save_ifs=$IFS
  9363. IFS=';'
  9364. for lt_path in $LIB
  9365. do
  9366. IFS=$lt_save_ifs
  9367. # Let DOS variable expansion print the short 8.3 style file name.
  9368. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9369. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9370. done
  9371. IFS=$lt_save_ifs
  9372. # Convert to MSYS style.
  9373. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9374. ;;
  9375. cygwin*)
  9376. # Convert to unix form, then to dos form, then back to unix form
  9377. # but this time dos style (no spaces!) so that the unix form looks
  9378. # like /cygdrive/c/PROGRA~1:/cygdr...
  9379. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9380. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9381. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9382. ;;
  9383. *)
  9384. sys_lib_search_path_spec="$LIB"
  9385. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9386. # It is most probably a Windows format PATH.
  9387. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9388. else
  9389. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9390. fi
  9391. # FIXME: find the short name or the path components, as spaces are
  9392. # common. (e.g. "Program Files" -> "PROGRA~1")
  9393. ;;
  9394. esac
  9395. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9396. postinstall_cmds='base_file=`basename \${file}`~
  9397. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9398. dldir=$destdir/`dirname \$dlpath`~
  9399. test -d \$dldir || mkdir -p \$dldir~
  9400. $install_prog $dir/$dlname \$dldir/$dlname'
  9401. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9402. dlpath=$dir/\$dldll~
  9403. $RM \$dlpath'
  9404. shlibpath_overrides_runpath=yes
  9405. dynamic_linker='Win32 link.exe'
  9406. ;;
  9407. *)
  9408. # Assume MSVC wrapper
  9409. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9410. dynamic_linker='Win32 ld.exe'
  9411. ;;
  9412. esac
  9413. # FIXME: first we should search . and the directory the executable is in
  9414. shlibpath_var=PATH
  9415. ;;
  9416. darwin* | rhapsody*)
  9417. dynamic_linker="$host_os dyld"
  9418. version_type=darwin
  9419. need_lib_prefix=no
  9420. need_version=no
  9421. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9422. soname_spec='${libname}${release}${major}$shared_ext'
  9423. shlibpath_overrides_runpath=yes
  9424. shlibpath_var=DYLD_LIBRARY_PATH
  9425. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9426. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9427. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9428. ;;
  9429. dgux*)
  9430. version_type=linux # correct to gnu/linux during the next big refactor
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. ;;
  9437. freebsd* | dragonfly*)
  9438. # DragonFly does not have aout. When/if they implement a new
  9439. # versioning mechanism, adjust this.
  9440. if test -x /usr/bin/objformat; then
  9441. objformat=`/usr/bin/objformat`
  9442. else
  9443. case $host_os in
  9444. freebsd[23].*) objformat=aout ;;
  9445. *) objformat=elf ;;
  9446. esac
  9447. fi
  9448. version_type=freebsd-$objformat
  9449. case $version_type in
  9450. freebsd-elf*)
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9452. need_version=no
  9453. need_lib_prefix=no
  9454. ;;
  9455. freebsd-*)
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9457. need_version=yes
  9458. ;;
  9459. esac
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. case $host_os in
  9462. freebsd2.*)
  9463. shlibpath_overrides_runpath=yes
  9464. ;;
  9465. freebsd3.[01]* | freebsdelf3.[01]*)
  9466. shlibpath_overrides_runpath=yes
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9470. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9471. shlibpath_overrides_runpath=no
  9472. hardcode_into_libs=yes
  9473. ;;
  9474. *) # from 4.6 on, and DragonFly
  9475. shlibpath_overrides_runpath=yes
  9476. hardcode_into_libs=yes
  9477. ;;
  9478. esac
  9479. ;;
  9480. gnu*)
  9481. version_type=linux # correct to gnu/linux during the next big refactor
  9482. need_lib_prefix=no
  9483. need_version=no
  9484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9485. soname_spec='${libname}${release}${shared_ext}$major'
  9486. shlibpath_var=LD_LIBRARY_PATH
  9487. shlibpath_overrides_runpath=no
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. haiku*)
  9491. version_type=linux # correct to gnu/linux during the next big refactor
  9492. need_lib_prefix=no
  9493. need_version=no
  9494. dynamic_linker="$host_os runtime_loader"
  9495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9496. soname_spec='${libname}${release}${shared_ext}$major'
  9497. shlibpath_var=LIBRARY_PATH
  9498. shlibpath_overrides_runpath=yes
  9499. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9500. hardcode_into_libs=yes
  9501. ;;
  9502. hpux9* | hpux10* | hpux11*)
  9503. # Give a soname corresponding to the major version so that dld.sl refuses to
  9504. # link against other versions.
  9505. version_type=sunos
  9506. need_lib_prefix=no
  9507. need_version=no
  9508. case $host_cpu in
  9509. ia64*)
  9510. shrext_cmds='.so'
  9511. hardcode_into_libs=yes
  9512. dynamic_linker="$host_os dld.so"
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9516. soname_spec='${libname}${release}${shared_ext}$major'
  9517. if test "X$HPUX_IA64_MODE" = X32; then
  9518. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9519. else
  9520. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9521. fi
  9522. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9523. ;;
  9524. hppa*64*)
  9525. shrext_cmds='.sl'
  9526. hardcode_into_libs=yes
  9527. dynamic_linker="$host_os dld.sl"
  9528. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9529. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9531. soname_spec='${libname}${release}${shared_ext}$major'
  9532. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9533. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9534. ;;
  9535. *)
  9536. shrext_cmds='.sl'
  9537. dynamic_linker="$host_os dld.sl"
  9538. shlibpath_var=SHLIB_PATH
  9539. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9541. soname_spec='${libname}${release}${shared_ext}$major'
  9542. ;;
  9543. esac
  9544. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9545. postinstall_cmds='chmod 555 $lib'
  9546. # or fails outright, so override atomically:
  9547. install_override_mode=555
  9548. ;;
  9549. interix[3-9]*)
  9550. version_type=linux # correct to gnu/linux during the next big refactor
  9551. need_lib_prefix=no
  9552. need_version=no
  9553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9554. soname_spec='${libname}${release}${shared_ext}$major'
  9555. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9556. shlibpath_var=LD_LIBRARY_PATH
  9557. shlibpath_overrides_runpath=no
  9558. hardcode_into_libs=yes
  9559. ;;
  9560. irix5* | irix6* | nonstopux*)
  9561. case $host_os in
  9562. nonstopux*) version_type=nonstopux ;;
  9563. *)
  9564. if test "$lt_cv_prog_gnu_ld" = yes; then
  9565. version_type=linux # correct to gnu/linux during the next big refactor
  9566. else
  9567. version_type=irix
  9568. fi ;;
  9569. esac
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9574. case $host_os in
  9575. irix5* | nonstopux*)
  9576. libsuff= shlibsuff=
  9577. ;;
  9578. *)
  9579. case $LD in # libtool.m4 will add one of these switches to LD
  9580. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9581. libsuff= shlibsuff= libmagic=32-bit;;
  9582. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9583. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9584. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9585. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9586. *) libsuff= shlibsuff= libmagic=never-match;;
  9587. esac
  9588. ;;
  9589. esac
  9590. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9591. shlibpath_overrides_runpath=no
  9592. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9593. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9594. hardcode_into_libs=yes
  9595. ;;
  9596. # No shared lib support for Linux oldld, aout, or coff.
  9597. linux*oldld* | linux*aout* | linux*coff*)
  9598. dynamic_linker=no
  9599. ;;
  9600. # This must be glibc/ELF.
  9601. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9602. version_type=linux # correct to gnu/linux during the next big refactor
  9603. need_lib_prefix=no
  9604. need_version=no
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9608. shlibpath_var=LD_LIBRARY_PATH
  9609. shlibpath_overrides_runpath=no
  9610. # Some binutils ld are patched to set DT_RUNPATH
  9611. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. lt_cv_shlibpath_overrides_runpath=no
  9615. save_LDFLAGS=$LDFLAGS
  9616. save_libdir=$libdir
  9617. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9618. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9620. /* end confdefs.h. */
  9621. int
  9622. main ()
  9623. {
  9624. ;
  9625. return 0;
  9626. }
  9627. _ACEOF
  9628. if ac_fn_c_try_link "$LINENO"; then :
  9629. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9630. lt_cv_shlibpath_overrides_runpath=yes
  9631. fi
  9632. fi
  9633. rm -f core conftest.err conftest.$ac_objext \
  9634. conftest$ac_exeext conftest.$ac_ext
  9635. LDFLAGS=$save_LDFLAGS
  9636. libdir=$save_libdir
  9637. fi
  9638. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9639. # This implies no fast_install, which is unacceptable.
  9640. # Some rework will be needed to allow for fast_install
  9641. # before this can be enabled.
  9642. hardcode_into_libs=yes
  9643. # Append ld.so.conf contents to the search path
  9644. if test -f /etc/ld.so.conf; then
  9645. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9646. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9647. fi
  9648. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9649. # powerpc, because MkLinux only supported shared libraries with the
  9650. # GNU dynamic linker. Since this was broken with cross compilers,
  9651. # most powerpc-linux boxes support dynamic linking these days and
  9652. # people can always --disable-shared, the test was removed, and we
  9653. # assume the GNU/Linux dynamic linker is in use.
  9654. dynamic_linker='GNU/Linux ld.so'
  9655. ;;
  9656. netbsd*)
  9657. version_type=sunos
  9658. need_lib_prefix=no
  9659. need_version=no
  9660. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9662. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9663. dynamic_linker='NetBSD (a.out) ld.so'
  9664. else
  9665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9666. soname_spec='${libname}${release}${shared_ext}$major'
  9667. dynamic_linker='NetBSD ld.elf_so'
  9668. fi
  9669. shlibpath_var=LD_LIBRARY_PATH
  9670. shlibpath_overrides_runpath=yes
  9671. hardcode_into_libs=yes
  9672. ;;
  9673. newsos6)
  9674. version_type=linux # correct to gnu/linux during the next big refactor
  9675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9676. shlibpath_var=LD_LIBRARY_PATH
  9677. shlibpath_overrides_runpath=yes
  9678. ;;
  9679. *nto* | *qnx*)
  9680. version_type=qnx
  9681. need_lib_prefix=no
  9682. need_version=no
  9683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9684. soname_spec='${libname}${release}${shared_ext}$major'
  9685. shlibpath_var=LD_LIBRARY_PATH
  9686. shlibpath_overrides_runpath=no
  9687. hardcode_into_libs=yes
  9688. dynamic_linker='ldqnx.so'
  9689. ;;
  9690. openbsd*)
  9691. version_type=sunos
  9692. sys_lib_dlsearch_path_spec="/usr/lib"
  9693. need_lib_prefix=no
  9694. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9695. case $host_os in
  9696. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9697. *) need_version=no ;;
  9698. esac
  9699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9700. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9701. shlibpath_var=LD_LIBRARY_PATH
  9702. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9703. case $host_os in
  9704. openbsd2.[89] | openbsd2.[89].*)
  9705. shlibpath_overrides_runpath=no
  9706. ;;
  9707. *)
  9708. shlibpath_overrides_runpath=yes
  9709. ;;
  9710. esac
  9711. else
  9712. shlibpath_overrides_runpath=yes
  9713. fi
  9714. ;;
  9715. os2*)
  9716. libname_spec='$name'
  9717. shrext_cmds=".dll"
  9718. need_lib_prefix=no
  9719. library_names_spec='$libname${shared_ext} $libname.a'
  9720. dynamic_linker='OS/2 ld.exe'
  9721. shlibpath_var=LIBPATH
  9722. ;;
  9723. osf3* | osf4* | osf5*)
  9724. version_type=osf
  9725. need_lib_prefix=no
  9726. need_version=no
  9727. soname_spec='${libname}${release}${shared_ext}$major'
  9728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9729. shlibpath_var=LD_LIBRARY_PATH
  9730. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9731. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9732. ;;
  9733. rdos*)
  9734. dynamic_linker=no
  9735. ;;
  9736. solaris*)
  9737. version_type=linux # correct to gnu/linux during the next big refactor
  9738. need_lib_prefix=no
  9739. need_version=no
  9740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9741. soname_spec='${libname}${release}${shared_ext}$major'
  9742. shlibpath_var=LD_LIBRARY_PATH
  9743. shlibpath_overrides_runpath=yes
  9744. hardcode_into_libs=yes
  9745. # ldd complains unless libraries are executable
  9746. postinstall_cmds='chmod +x $lib'
  9747. ;;
  9748. sunos4*)
  9749. version_type=sunos
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9751. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9752. shlibpath_var=LD_LIBRARY_PATH
  9753. shlibpath_overrides_runpath=yes
  9754. if test "$with_gnu_ld" = yes; then
  9755. need_lib_prefix=no
  9756. fi
  9757. need_version=yes
  9758. ;;
  9759. sysv4 | sysv4.3*)
  9760. version_type=linux # correct to gnu/linux during the next big refactor
  9761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9762. soname_spec='${libname}${release}${shared_ext}$major'
  9763. shlibpath_var=LD_LIBRARY_PATH
  9764. case $host_vendor in
  9765. sni)
  9766. shlibpath_overrides_runpath=no
  9767. need_lib_prefix=no
  9768. runpath_var=LD_RUN_PATH
  9769. ;;
  9770. siemens)
  9771. need_lib_prefix=no
  9772. ;;
  9773. motorola)
  9774. need_lib_prefix=no
  9775. need_version=no
  9776. shlibpath_overrides_runpath=no
  9777. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9778. ;;
  9779. esac
  9780. ;;
  9781. sysv4*MP*)
  9782. if test -d /usr/nec ;then
  9783. version_type=linux # correct to gnu/linux during the next big refactor
  9784. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9785. soname_spec='$libname${shared_ext}.$major'
  9786. shlibpath_var=LD_LIBRARY_PATH
  9787. fi
  9788. ;;
  9789. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9790. version_type=freebsd-elf
  9791. need_lib_prefix=no
  9792. need_version=no
  9793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9794. soname_spec='${libname}${release}${shared_ext}$major'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. shlibpath_overrides_runpath=yes
  9797. hardcode_into_libs=yes
  9798. if test "$with_gnu_ld" = yes; then
  9799. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9800. else
  9801. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9802. case $host_os in
  9803. sco3.2v5*)
  9804. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9805. ;;
  9806. esac
  9807. fi
  9808. sys_lib_dlsearch_path_spec='/usr/lib'
  9809. ;;
  9810. tpf*)
  9811. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9812. version_type=linux # correct to gnu/linux during the next big refactor
  9813. need_lib_prefix=no
  9814. need_version=no
  9815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. shlibpath_overrides_runpath=no
  9818. hardcode_into_libs=yes
  9819. ;;
  9820. uts4*)
  9821. version_type=linux # correct to gnu/linux during the next big refactor
  9822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9823. soname_spec='${libname}${release}${shared_ext}$major'
  9824. shlibpath_var=LD_LIBRARY_PATH
  9825. ;;
  9826. *)
  9827. dynamic_linker=no
  9828. ;;
  9829. esac
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9831. $as_echo "$dynamic_linker" >&6; }
  9832. test "$dynamic_linker" = no && can_build_shared=no
  9833. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9834. if test "$GCC" = yes; then
  9835. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9836. fi
  9837. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9838. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9839. fi
  9840. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9841. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9842. fi
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9844. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9845. hardcode_action=
  9846. if test -n "$hardcode_libdir_flag_spec" ||
  9847. test -n "$runpath_var" ||
  9848. test "X$hardcode_automatic" = "Xyes" ; then
  9849. # We can hardcode non-existent directories.
  9850. if test "$hardcode_direct" != no &&
  9851. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9852. # have to relink, otherwise we might link with an installed library
  9853. # when we should be linking with a yet-to-be-installed one
  9854. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9855. test "$hardcode_minus_L" != no; then
  9856. # Linking always hardcodes the temporary library directory.
  9857. hardcode_action=relink
  9858. else
  9859. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9860. hardcode_action=immediate
  9861. fi
  9862. else
  9863. # We cannot hardcode anything, or else we can only hardcode existing
  9864. # directories.
  9865. hardcode_action=unsupported
  9866. fi
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9868. $as_echo "$hardcode_action" >&6; }
  9869. if test "$hardcode_action" = relink ||
  9870. test "$inherit_rpath" = yes; then
  9871. # Fast installation is not supported
  9872. enable_fast_install=no
  9873. elif test "$shlibpath_overrides_runpath" = yes ||
  9874. test "$enable_shared" = no; then
  9875. # Fast installation is not necessary
  9876. enable_fast_install=needless
  9877. fi
  9878. if test "x$enable_dlopen" != xyes; then
  9879. enable_dlopen=unknown
  9880. enable_dlopen_self=unknown
  9881. enable_dlopen_self_static=unknown
  9882. else
  9883. lt_cv_dlopen=no
  9884. lt_cv_dlopen_libs=
  9885. case $host_os in
  9886. beos*)
  9887. lt_cv_dlopen="load_add_on"
  9888. lt_cv_dlopen_libs=
  9889. lt_cv_dlopen_self=yes
  9890. ;;
  9891. mingw* | pw32* | cegcc*)
  9892. lt_cv_dlopen="LoadLibrary"
  9893. lt_cv_dlopen_libs=
  9894. ;;
  9895. cygwin*)
  9896. lt_cv_dlopen="dlopen"
  9897. lt_cv_dlopen_libs=
  9898. ;;
  9899. darwin*)
  9900. # if libdl is installed we need to link against it
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9902. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9903. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9904. $as_echo_n "(cached) " >&6
  9905. else
  9906. ac_check_lib_save_LIBS=$LIBS
  9907. LIBS="-ldl $LIBS"
  9908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9909. /* end confdefs.h. */
  9910. /* Override any GCC internal prototype to avoid an error.
  9911. Use char because int might match the return type of a GCC
  9912. builtin and then its argument prototype would still apply. */
  9913. #ifdef __cplusplus
  9914. extern "C"
  9915. #endif
  9916. char dlopen ();
  9917. int
  9918. main ()
  9919. {
  9920. return dlopen ();
  9921. ;
  9922. return 0;
  9923. }
  9924. _ACEOF
  9925. if ac_fn_c_try_link "$LINENO"; then :
  9926. ac_cv_lib_dl_dlopen=yes
  9927. else
  9928. ac_cv_lib_dl_dlopen=no
  9929. fi
  9930. rm -f core conftest.err conftest.$ac_objext \
  9931. conftest$ac_exeext conftest.$ac_ext
  9932. LIBS=$ac_check_lib_save_LIBS
  9933. fi
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9935. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9936. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9937. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9938. else
  9939. lt_cv_dlopen="dyld"
  9940. lt_cv_dlopen_libs=
  9941. lt_cv_dlopen_self=yes
  9942. fi
  9943. ;;
  9944. *)
  9945. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9946. if test "x$ac_cv_func_shl_load" = xyes; then :
  9947. lt_cv_dlopen="shl_load"
  9948. else
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9950. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9951. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9952. $as_echo_n "(cached) " >&6
  9953. else
  9954. ac_check_lib_save_LIBS=$LIBS
  9955. LIBS="-ldld $LIBS"
  9956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9957. /* end confdefs.h. */
  9958. /* Override any GCC internal prototype to avoid an error.
  9959. Use char because int might match the return type of a GCC
  9960. builtin and then its argument prototype would still apply. */
  9961. #ifdef __cplusplus
  9962. extern "C"
  9963. #endif
  9964. char shl_load ();
  9965. int
  9966. main ()
  9967. {
  9968. return shl_load ();
  9969. ;
  9970. return 0;
  9971. }
  9972. _ACEOF
  9973. if ac_fn_c_try_link "$LINENO"; then :
  9974. ac_cv_lib_dld_shl_load=yes
  9975. else
  9976. ac_cv_lib_dld_shl_load=no
  9977. fi
  9978. rm -f core conftest.err conftest.$ac_objext \
  9979. conftest$ac_exeext conftest.$ac_ext
  9980. LIBS=$ac_check_lib_save_LIBS
  9981. fi
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9983. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9984. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9985. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9986. else
  9987. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9988. if test "x$ac_cv_func_dlopen" = xyes; then :
  9989. lt_cv_dlopen="dlopen"
  9990. else
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9992. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9993. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9994. $as_echo_n "(cached) " >&6
  9995. else
  9996. ac_check_lib_save_LIBS=$LIBS
  9997. LIBS="-ldl $LIBS"
  9998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9999. /* end confdefs.h. */
  10000. /* Override any GCC internal prototype to avoid an error.
  10001. Use char because int might match the return type of a GCC
  10002. builtin and then its argument prototype would still apply. */
  10003. #ifdef __cplusplus
  10004. extern "C"
  10005. #endif
  10006. char dlopen ();
  10007. int
  10008. main ()
  10009. {
  10010. return dlopen ();
  10011. ;
  10012. return 0;
  10013. }
  10014. _ACEOF
  10015. if ac_fn_c_try_link "$LINENO"; then :
  10016. ac_cv_lib_dl_dlopen=yes
  10017. else
  10018. ac_cv_lib_dl_dlopen=no
  10019. fi
  10020. rm -f core conftest.err conftest.$ac_objext \
  10021. conftest$ac_exeext conftest.$ac_ext
  10022. LIBS=$ac_check_lib_save_LIBS
  10023. fi
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10025. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10026. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10027. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10028. else
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10030. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10031. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10032. $as_echo_n "(cached) " >&6
  10033. else
  10034. ac_check_lib_save_LIBS=$LIBS
  10035. LIBS="-lsvld $LIBS"
  10036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. /* end confdefs.h. */
  10038. /* Override any GCC internal prototype to avoid an error.
  10039. Use char because int might match the return type of a GCC
  10040. builtin and then its argument prototype would still apply. */
  10041. #ifdef __cplusplus
  10042. extern "C"
  10043. #endif
  10044. char dlopen ();
  10045. int
  10046. main ()
  10047. {
  10048. return dlopen ();
  10049. ;
  10050. return 0;
  10051. }
  10052. _ACEOF
  10053. if ac_fn_c_try_link "$LINENO"; then :
  10054. ac_cv_lib_svld_dlopen=yes
  10055. else
  10056. ac_cv_lib_svld_dlopen=no
  10057. fi
  10058. rm -f core conftest.err conftest.$ac_objext \
  10059. conftest$ac_exeext conftest.$ac_ext
  10060. LIBS=$ac_check_lib_save_LIBS
  10061. fi
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10063. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10064. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10065. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10066. else
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10068. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10069. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10070. $as_echo_n "(cached) " >&6
  10071. else
  10072. ac_check_lib_save_LIBS=$LIBS
  10073. LIBS="-ldld $LIBS"
  10074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10075. /* end confdefs.h. */
  10076. /* Override any GCC internal prototype to avoid an error.
  10077. Use char because int might match the return type of a GCC
  10078. builtin and then its argument prototype would still apply. */
  10079. #ifdef __cplusplus
  10080. extern "C"
  10081. #endif
  10082. char dld_link ();
  10083. int
  10084. main ()
  10085. {
  10086. return dld_link ();
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. if ac_fn_c_try_link "$LINENO"; then :
  10092. ac_cv_lib_dld_dld_link=yes
  10093. else
  10094. ac_cv_lib_dld_dld_link=no
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext \
  10097. conftest$ac_exeext conftest.$ac_ext
  10098. LIBS=$ac_check_lib_save_LIBS
  10099. fi
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10101. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10102. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10103. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10104. fi
  10105. fi
  10106. fi
  10107. fi
  10108. fi
  10109. fi
  10110. ;;
  10111. esac
  10112. if test "x$lt_cv_dlopen" != xno; then
  10113. enable_dlopen=yes
  10114. else
  10115. enable_dlopen=no
  10116. fi
  10117. case $lt_cv_dlopen in
  10118. dlopen)
  10119. save_CPPFLAGS="$CPPFLAGS"
  10120. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10121. save_LDFLAGS="$LDFLAGS"
  10122. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10123. save_LIBS="$LIBS"
  10124. LIBS="$lt_cv_dlopen_libs $LIBS"
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10126. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10127. if ${lt_cv_dlopen_self+:} false; then :
  10128. $as_echo_n "(cached) " >&6
  10129. else
  10130. if test "$cross_compiling" = yes; then :
  10131. lt_cv_dlopen_self=cross
  10132. else
  10133. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10134. lt_status=$lt_dlunknown
  10135. cat > conftest.$ac_ext <<_LT_EOF
  10136. #line $LINENO "configure"
  10137. #include "confdefs.h"
  10138. #if HAVE_DLFCN_H
  10139. #include <dlfcn.h>
  10140. #endif
  10141. #include <stdio.h>
  10142. #ifdef RTLD_GLOBAL
  10143. # define LT_DLGLOBAL RTLD_GLOBAL
  10144. #else
  10145. # ifdef DL_GLOBAL
  10146. # define LT_DLGLOBAL DL_GLOBAL
  10147. # else
  10148. # define LT_DLGLOBAL 0
  10149. # endif
  10150. #endif
  10151. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10152. find out it does not work in some platform. */
  10153. #ifndef LT_DLLAZY_OR_NOW
  10154. # ifdef RTLD_LAZY
  10155. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10156. # else
  10157. # ifdef DL_LAZY
  10158. # define LT_DLLAZY_OR_NOW DL_LAZY
  10159. # else
  10160. # ifdef RTLD_NOW
  10161. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10162. # else
  10163. # ifdef DL_NOW
  10164. # define LT_DLLAZY_OR_NOW DL_NOW
  10165. # else
  10166. # define LT_DLLAZY_OR_NOW 0
  10167. # endif
  10168. # endif
  10169. # endif
  10170. # endif
  10171. #endif
  10172. /* When -fvisbility=hidden is used, assume the code has been annotated
  10173. correspondingly for the symbols needed. */
  10174. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10175. int fnord () __attribute__((visibility("default")));
  10176. #endif
  10177. int fnord () { return 42; }
  10178. int main ()
  10179. {
  10180. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10181. int status = $lt_dlunknown;
  10182. if (self)
  10183. {
  10184. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10185. else
  10186. {
  10187. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10188. else puts (dlerror ());
  10189. }
  10190. /* dlclose (self); */
  10191. }
  10192. else
  10193. puts (dlerror ());
  10194. return status;
  10195. }
  10196. _LT_EOF
  10197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10198. (eval $ac_link) 2>&5
  10199. ac_status=$?
  10200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10201. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10202. (./conftest; exit; ) >&5 2>/dev/null
  10203. lt_status=$?
  10204. case x$lt_status in
  10205. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10206. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10207. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10208. esac
  10209. else :
  10210. # compilation failed
  10211. lt_cv_dlopen_self=no
  10212. fi
  10213. fi
  10214. rm -fr conftest*
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10217. $as_echo "$lt_cv_dlopen_self" >&6; }
  10218. if test "x$lt_cv_dlopen_self" = xyes; then
  10219. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10221. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10222. if ${lt_cv_dlopen_self_static+:} false; then :
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. if test "$cross_compiling" = yes; then :
  10226. lt_cv_dlopen_self_static=cross
  10227. else
  10228. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10229. lt_status=$lt_dlunknown
  10230. cat > conftest.$ac_ext <<_LT_EOF
  10231. #line $LINENO "configure"
  10232. #include "confdefs.h"
  10233. #if HAVE_DLFCN_H
  10234. #include <dlfcn.h>
  10235. #endif
  10236. #include <stdio.h>
  10237. #ifdef RTLD_GLOBAL
  10238. # define LT_DLGLOBAL RTLD_GLOBAL
  10239. #else
  10240. # ifdef DL_GLOBAL
  10241. # define LT_DLGLOBAL DL_GLOBAL
  10242. # else
  10243. # define LT_DLGLOBAL 0
  10244. # endif
  10245. #endif
  10246. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10247. find out it does not work in some platform. */
  10248. #ifndef LT_DLLAZY_OR_NOW
  10249. # ifdef RTLD_LAZY
  10250. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10251. # else
  10252. # ifdef DL_LAZY
  10253. # define LT_DLLAZY_OR_NOW DL_LAZY
  10254. # else
  10255. # ifdef RTLD_NOW
  10256. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10257. # else
  10258. # ifdef DL_NOW
  10259. # define LT_DLLAZY_OR_NOW DL_NOW
  10260. # else
  10261. # define LT_DLLAZY_OR_NOW 0
  10262. # endif
  10263. # endif
  10264. # endif
  10265. # endif
  10266. #endif
  10267. /* When -fvisbility=hidden is used, assume the code has been annotated
  10268. correspondingly for the symbols needed. */
  10269. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10270. int fnord () __attribute__((visibility("default")));
  10271. #endif
  10272. int fnord () { return 42; }
  10273. int main ()
  10274. {
  10275. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10276. int status = $lt_dlunknown;
  10277. if (self)
  10278. {
  10279. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10280. else
  10281. {
  10282. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10283. else puts (dlerror ());
  10284. }
  10285. /* dlclose (self); */
  10286. }
  10287. else
  10288. puts (dlerror ());
  10289. return status;
  10290. }
  10291. _LT_EOF
  10292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10293. (eval $ac_link) 2>&5
  10294. ac_status=$?
  10295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10296. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10297. (./conftest; exit; ) >&5 2>/dev/null
  10298. lt_status=$?
  10299. case x$lt_status in
  10300. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10301. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10302. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10303. esac
  10304. else :
  10305. # compilation failed
  10306. lt_cv_dlopen_self_static=no
  10307. fi
  10308. fi
  10309. rm -fr conftest*
  10310. fi
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10312. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10313. fi
  10314. CPPFLAGS="$save_CPPFLAGS"
  10315. LDFLAGS="$save_LDFLAGS"
  10316. LIBS="$save_LIBS"
  10317. ;;
  10318. esac
  10319. case $lt_cv_dlopen_self in
  10320. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10321. *) enable_dlopen_self=unknown ;;
  10322. esac
  10323. case $lt_cv_dlopen_self_static in
  10324. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10325. *) enable_dlopen_self_static=unknown ;;
  10326. esac
  10327. fi
  10328. striplib=
  10329. old_striplib=
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10331. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10332. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10333. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10334. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10336. $as_echo "yes" >&6; }
  10337. else
  10338. # FIXME - insert some real tests, host_os isn't really good enough
  10339. case $host_os in
  10340. darwin*)
  10341. if test -n "$STRIP" ; then
  10342. striplib="$STRIP -x"
  10343. old_striplib="$STRIP -S"
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10345. $as_echo "yes" >&6; }
  10346. else
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10348. $as_echo "no" >&6; }
  10349. fi
  10350. ;;
  10351. *)
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10353. $as_echo "no" >&6; }
  10354. ;;
  10355. esac
  10356. fi
  10357. # Report which library types will actually be built
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10359. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10361. $as_echo "$can_build_shared" >&6; }
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10363. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10364. test "$can_build_shared" = "no" && enable_shared=no
  10365. # On AIX, shared libraries and static libraries use the same namespace, and
  10366. # are all built from PIC.
  10367. case $host_os in
  10368. aix3*)
  10369. test "$enable_shared" = yes && enable_static=no
  10370. if test -n "$RANLIB"; then
  10371. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10372. postinstall_cmds='$RANLIB $lib'
  10373. fi
  10374. ;;
  10375. aix[4-9]*)
  10376. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10377. test "$enable_shared" = yes && enable_static=no
  10378. fi
  10379. ;;
  10380. esac
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10382. $as_echo "$enable_shared" >&6; }
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10384. $as_echo_n "checking whether to build static libraries... " >&6; }
  10385. # Make sure either enable_shared or enable_static is yes.
  10386. test "$enable_shared" = yes || enable_static=yes
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10388. $as_echo "$enable_static" >&6; }
  10389. fi
  10390. ac_ext=c
  10391. ac_cpp='$CPP $CPPFLAGS'
  10392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10395. CC="$lt_save_CC"
  10396. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10397. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10398. (test "X$CXX" != "Xg++"))) ; then
  10399. ac_ext=cpp
  10400. ac_cpp='$CXXCPP $CPPFLAGS'
  10401. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10402. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10403. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10405. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10406. if test -z "$CXXCPP"; then
  10407. if ${ac_cv_prog_CXXCPP+:} false; then :
  10408. $as_echo_n "(cached) " >&6
  10409. else
  10410. # Double quotes because CXXCPP needs to be expanded
  10411. for CXXCPP in "$CXX -E" "/lib/cpp"
  10412. do
  10413. ac_preproc_ok=false
  10414. for ac_cxx_preproc_warn_flag in '' yes
  10415. do
  10416. # Use a header file that comes with gcc, so configuring glibc
  10417. # with a fresh cross-compiler works.
  10418. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10419. # <limits.h> exists even on freestanding compilers.
  10420. # On the NeXT, cc -E runs the code through the compiler's parser,
  10421. # not just through cpp. "Syntax error" is here to catch this case.
  10422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10423. /* end confdefs.h. */
  10424. #ifdef __STDC__
  10425. # include <limits.h>
  10426. #else
  10427. # include <assert.h>
  10428. #endif
  10429. Syntax error
  10430. _ACEOF
  10431. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10432. else
  10433. # Broken: fails on valid input.
  10434. continue
  10435. fi
  10436. rm -f conftest.err conftest.i conftest.$ac_ext
  10437. # OK, works on sane cases. Now check whether nonexistent headers
  10438. # can be detected and how.
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. #include <ac_nonexistent.h>
  10442. _ACEOF
  10443. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10444. # Broken: success on invalid input.
  10445. continue
  10446. else
  10447. # Passes both tests.
  10448. ac_preproc_ok=:
  10449. break
  10450. fi
  10451. rm -f conftest.err conftest.i conftest.$ac_ext
  10452. done
  10453. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10454. rm -f conftest.i conftest.err conftest.$ac_ext
  10455. if $ac_preproc_ok; then :
  10456. break
  10457. fi
  10458. done
  10459. ac_cv_prog_CXXCPP=$CXXCPP
  10460. fi
  10461. CXXCPP=$ac_cv_prog_CXXCPP
  10462. else
  10463. ac_cv_prog_CXXCPP=$CXXCPP
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10466. $as_echo "$CXXCPP" >&6; }
  10467. ac_preproc_ok=false
  10468. for ac_cxx_preproc_warn_flag in '' yes
  10469. do
  10470. # Use a header file that comes with gcc, so configuring glibc
  10471. # with a fresh cross-compiler works.
  10472. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10473. # <limits.h> exists even on freestanding compilers.
  10474. # On the NeXT, cc -E runs the code through the compiler's parser,
  10475. # not just through cpp. "Syntax error" is here to catch this case.
  10476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10477. /* end confdefs.h. */
  10478. #ifdef __STDC__
  10479. # include <limits.h>
  10480. #else
  10481. # include <assert.h>
  10482. #endif
  10483. Syntax error
  10484. _ACEOF
  10485. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10486. else
  10487. # Broken: fails on valid input.
  10488. continue
  10489. fi
  10490. rm -f conftest.err conftest.i conftest.$ac_ext
  10491. # OK, works on sane cases. Now check whether nonexistent headers
  10492. # can be detected and how.
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. #include <ac_nonexistent.h>
  10496. _ACEOF
  10497. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10498. # Broken: success on invalid input.
  10499. continue
  10500. else
  10501. # Passes both tests.
  10502. ac_preproc_ok=:
  10503. break
  10504. fi
  10505. rm -f conftest.err conftest.i conftest.$ac_ext
  10506. done
  10507. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10508. rm -f conftest.i conftest.err conftest.$ac_ext
  10509. if $ac_preproc_ok; then :
  10510. else
  10511. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10512. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10513. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10514. See \`config.log' for more details" "$LINENO" 5; }
  10515. fi
  10516. ac_ext=c
  10517. ac_cpp='$CPP $CPPFLAGS'
  10518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10521. else
  10522. _lt_caught_CXX_error=yes
  10523. fi
  10524. ac_ext=cpp
  10525. ac_cpp='$CXXCPP $CPPFLAGS'
  10526. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10527. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10528. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10529. archive_cmds_need_lc_CXX=no
  10530. allow_undefined_flag_CXX=
  10531. always_export_symbols_CXX=no
  10532. archive_expsym_cmds_CXX=
  10533. compiler_needs_object_CXX=no
  10534. export_dynamic_flag_spec_CXX=
  10535. hardcode_direct_CXX=no
  10536. hardcode_direct_absolute_CXX=no
  10537. hardcode_libdir_flag_spec_CXX=
  10538. hardcode_libdir_separator_CXX=
  10539. hardcode_minus_L_CXX=no
  10540. hardcode_shlibpath_var_CXX=unsupported
  10541. hardcode_automatic_CXX=no
  10542. inherit_rpath_CXX=no
  10543. module_cmds_CXX=
  10544. module_expsym_cmds_CXX=
  10545. link_all_deplibs_CXX=unknown
  10546. old_archive_cmds_CXX=$old_archive_cmds
  10547. reload_flag_CXX=$reload_flag
  10548. reload_cmds_CXX=$reload_cmds
  10549. no_undefined_flag_CXX=
  10550. whole_archive_flag_spec_CXX=
  10551. enable_shared_with_static_runtimes_CXX=no
  10552. # Source file extension for C++ test sources.
  10553. ac_ext=cpp
  10554. # Object file extension for compiled C++ test sources.
  10555. objext=o
  10556. objext_CXX=$objext
  10557. # No sense in running all these tests if we already determined that
  10558. # the CXX compiler isn't working. Some variables (like enable_shared)
  10559. # are currently assumed to apply to all compilers on this platform,
  10560. # and will be corrupted by setting them based on a non-working compiler.
  10561. if test "$_lt_caught_CXX_error" != yes; then
  10562. # Code to be used in simple compile tests
  10563. lt_simple_compile_test_code="int some_variable = 0;"
  10564. # Code to be used in simple link tests
  10565. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10566. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10567. # If no C compiler was specified, use CC.
  10568. LTCC=${LTCC-"$CC"}
  10569. # If no C compiler flags were specified, use CFLAGS.
  10570. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10571. # Allow CC to be a program name with arguments.
  10572. compiler=$CC
  10573. # save warnings/boilerplate of simple test code
  10574. ac_outfile=conftest.$ac_objext
  10575. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10576. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10577. _lt_compiler_boilerplate=`cat conftest.err`
  10578. $RM conftest*
  10579. ac_outfile=conftest.$ac_objext
  10580. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10581. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10582. _lt_linker_boilerplate=`cat conftest.err`
  10583. $RM -r conftest*
  10584. # Allow CC to be a program name with arguments.
  10585. lt_save_CC=$CC
  10586. lt_save_CFLAGS=$CFLAGS
  10587. lt_save_LD=$LD
  10588. lt_save_GCC=$GCC
  10589. GCC=$GXX
  10590. lt_save_with_gnu_ld=$with_gnu_ld
  10591. lt_save_path_LD=$lt_cv_path_LD
  10592. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10593. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10594. else
  10595. $as_unset lt_cv_prog_gnu_ld
  10596. fi
  10597. if test -n "${lt_cv_path_LDCXX+set}"; then
  10598. lt_cv_path_LD=$lt_cv_path_LDCXX
  10599. else
  10600. $as_unset lt_cv_path_LD
  10601. fi
  10602. test -z "${LDCXX+set}" || LD=$LDCXX
  10603. CC=${CXX-"c++"}
  10604. CFLAGS=$CXXFLAGS
  10605. compiler=$CC
  10606. compiler_CXX=$CC
  10607. for cc_temp in $compiler""; do
  10608. case $cc_temp in
  10609. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10610. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10611. \-*) ;;
  10612. *) break;;
  10613. esac
  10614. done
  10615. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10616. if test -n "$compiler"; then
  10617. # We don't want -fno-exception when compiling C++ code, so set the
  10618. # no_builtin_flag separately
  10619. if test "$GXX" = yes; then
  10620. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10621. else
  10622. lt_prog_compiler_no_builtin_flag_CXX=
  10623. fi
  10624. if test "$GXX" = yes; then
  10625. # Set up default GNU C++ configuration
  10626. # Check whether --with-gnu-ld was given.
  10627. if test "${with_gnu_ld+set}" = set; then :
  10628. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10629. else
  10630. with_gnu_ld=no
  10631. fi
  10632. ac_prog=ld
  10633. if test "$GCC" = yes; then
  10634. # Check if gcc -print-prog-name=ld gives a path.
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10636. $as_echo_n "checking for ld used by $CC... " >&6; }
  10637. case $host in
  10638. *-*-mingw*)
  10639. # gcc leaves a trailing carriage return which upsets mingw
  10640. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10641. *)
  10642. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10643. esac
  10644. case $ac_prog in
  10645. # Accept absolute paths.
  10646. [\\/]* | ?:[\\/]*)
  10647. re_direlt='/[^/][^/]*/\.\./'
  10648. # Canonicalize the pathname of ld
  10649. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10650. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10651. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10652. done
  10653. test -z "$LD" && LD="$ac_prog"
  10654. ;;
  10655. "")
  10656. # If it fails, then pretend we aren't using GCC.
  10657. ac_prog=ld
  10658. ;;
  10659. *)
  10660. # If it is relative, then search for the first ld in PATH.
  10661. with_gnu_ld=unknown
  10662. ;;
  10663. esac
  10664. elif test "$with_gnu_ld" = yes; then
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10666. $as_echo_n "checking for GNU ld... " >&6; }
  10667. else
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10669. $as_echo_n "checking for non-GNU ld... " >&6; }
  10670. fi
  10671. if ${lt_cv_path_LD+:} false; then :
  10672. $as_echo_n "(cached) " >&6
  10673. else
  10674. if test -z "$LD"; then
  10675. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10676. for ac_dir in $PATH; do
  10677. IFS="$lt_save_ifs"
  10678. test -z "$ac_dir" && ac_dir=.
  10679. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10680. lt_cv_path_LD="$ac_dir/$ac_prog"
  10681. # Check to see if the program is GNU ld. I'd rather use --version,
  10682. # but apparently some variants of GNU ld only accept -v.
  10683. # Break only if it was the GNU/non-GNU ld that we prefer.
  10684. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10685. *GNU* | *'with BFD'*)
  10686. test "$with_gnu_ld" != no && break
  10687. ;;
  10688. *)
  10689. test "$with_gnu_ld" != yes && break
  10690. ;;
  10691. esac
  10692. fi
  10693. done
  10694. IFS="$lt_save_ifs"
  10695. else
  10696. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10697. fi
  10698. fi
  10699. LD="$lt_cv_path_LD"
  10700. if test -n "$LD"; then
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10702. $as_echo "$LD" >&6; }
  10703. else
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10705. $as_echo "no" >&6; }
  10706. fi
  10707. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10709. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10710. if ${lt_cv_prog_gnu_ld+:} false; then :
  10711. $as_echo_n "(cached) " >&6
  10712. else
  10713. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10714. case `$LD -v 2>&1 </dev/null` in
  10715. *GNU* | *'with BFD'*)
  10716. lt_cv_prog_gnu_ld=yes
  10717. ;;
  10718. *)
  10719. lt_cv_prog_gnu_ld=no
  10720. ;;
  10721. esac
  10722. fi
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10724. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10725. with_gnu_ld=$lt_cv_prog_gnu_ld
  10726. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10727. # archiving commands below assume that GNU ld is being used.
  10728. if test "$with_gnu_ld" = yes; then
  10729. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10730. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10731. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10732. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10733. # If archive_cmds runs LD, not CC, wlarc should be empty
  10734. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10735. # investigate it a little bit more. (MM)
  10736. wlarc='${wl}'
  10737. # ancient GNU ld didn't support --whole-archive et. al.
  10738. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10739. $GREP 'no-whole-archive' > /dev/null; then
  10740. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10741. else
  10742. whole_archive_flag_spec_CXX=
  10743. fi
  10744. else
  10745. with_gnu_ld=no
  10746. wlarc=
  10747. # A generic and very simple default shared library creation
  10748. # command for GNU C++ for the case where it uses the native
  10749. # linker, instead of GNU ld. If possible, this setting should
  10750. # overridden to take advantage of the native linker features on
  10751. # the platform it is being used on.
  10752. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10753. fi
  10754. # Commands to make compiler produce verbose output that lists
  10755. # what "hidden" libraries, object files and flags are used when
  10756. # linking a shared library.
  10757. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10758. else
  10759. GXX=no
  10760. with_gnu_ld=no
  10761. wlarc=
  10762. fi
  10763. # PORTME: fill in a description of your system's C++ link characteristics
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10765. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10766. ld_shlibs_CXX=yes
  10767. case $host_os in
  10768. aix3*)
  10769. # FIXME: insert proper C++ library support
  10770. ld_shlibs_CXX=no
  10771. ;;
  10772. aix[4-9]*)
  10773. if test "$host_cpu" = ia64; then
  10774. # On IA64, the linker does run time linking by default, so we don't
  10775. # have to do anything special.
  10776. aix_use_runtimelinking=no
  10777. exp_sym_flag='-Bexport'
  10778. no_entry_flag=""
  10779. else
  10780. aix_use_runtimelinking=no
  10781. # Test if we are trying to use run time linking or normal
  10782. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10783. # need to do runtime linking.
  10784. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10785. for ld_flag in $LDFLAGS; do
  10786. case $ld_flag in
  10787. *-brtl*)
  10788. aix_use_runtimelinking=yes
  10789. break
  10790. ;;
  10791. esac
  10792. done
  10793. ;;
  10794. esac
  10795. exp_sym_flag='-bexport'
  10796. no_entry_flag='-bnoentry'
  10797. fi
  10798. # When large executables or shared objects are built, AIX ld can
  10799. # have problems creating the table of contents. If linking a library
  10800. # or program results in "error TOC overflow" add -mminimal-toc to
  10801. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10802. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10803. archive_cmds_CXX=''
  10804. hardcode_direct_CXX=yes
  10805. hardcode_direct_absolute_CXX=yes
  10806. hardcode_libdir_separator_CXX=':'
  10807. link_all_deplibs_CXX=yes
  10808. file_list_spec_CXX='${wl}-f,'
  10809. if test "$GXX" = yes; then
  10810. case $host_os in aix4.[012]|aix4.[012].*)
  10811. # We only want to do this on AIX 4.2 and lower, the check
  10812. # below for broken collect2 doesn't work under 4.3+
  10813. collect2name=`${CC} -print-prog-name=collect2`
  10814. if test -f "$collect2name" &&
  10815. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10816. then
  10817. # We have reworked collect2
  10818. :
  10819. else
  10820. # We have old collect2
  10821. hardcode_direct_CXX=unsupported
  10822. # It fails to find uninstalled libraries when the uninstalled
  10823. # path is not listed in the libpath. Setting hardcode_minus_L
  10824. # to unsupported forces relinking
  10825. hardcode_minus_L_CXX=yes
  10826. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10827. hardcode_libdir_separator_CXX=
  10828. fi
  10829. esac
  10830. shared_flag='-shared'
  10831. if test "$aix_use_runtimelinking" = yes; then
  10832. shared_flag="$shared_flag "'${wl}-G'
  10833. fi
  10834. else
  10835. # not using gcc
  10836. if test "$host_cpu" = ia64; then
  10837. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10838. # chokes on -Wl,-G. The following line is correct:
  10839. shared_flag='-G'
  10840. else
  10841. if test "$aix_use_runtimelinking" = yes; then
  10842. shared_flag='${wl}-G'
  10843. else
  10844. shared_flag='${wl}-bM:SRE'
  10845. fi
  10846. fi
  10847. fi
  10848. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10849. # It seems that -bexpall does not export symbols beginning with
  10850. # underscore (_), so it is better to generate a list of symbols to
  10851. # export.
  10852. always_export_symbols_CXX=yes
  10853. if test "$aix_use_runtimelinking" = yes; then
  10854. # Warning - without using the other runtime loading flags (-brtl),
  10855. # -berok will link without error, but may produce a broken library.
  10856. allow_undefined_flag_CXX='-berok'
  10857. # Determine the default libpath from the value encoded in an empty
  10858. # executable.
  10859. if test "${lt_cv_aix_libpath+set}" = set; then
  10860. aix_libpath=$lt_cv_aix_libpath
  10861. else
  10862. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10863. $as_echo_n "(cached) " >&6
  10864. else
  10865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10866. /* end confdefs.h. */
  10867. int
  10868. main ()
  10869. {
  10870. ;
  10871. return 0;
  10872. }
  10873. _ACEOF
  10874. if ac_fn_cxx_try_link "$LINENO"; then :
  10875. lt_aix_libpath_sed='
  10876. /Import File Strings/,/^$/ {
  10877. /^0/ {
  10878. s/^0 *\([^ ]*\) *$/\1/
  10879. p
  10880. }
  10881. }'
  10882. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10883. # Check for a 64-bit object if we didn't find anything.
  10884. if test -z "$lt_cv_aix_libpath__CXX"; then
  10885. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10886. fi
  10887. fi
  10888. rm -f core conftest.err conftest.$ac_objext \
  10889. conftest$ac_exeext conftest.$ac_ext
  10890. if test -z "$lt_cv_aix_libpath__CXX"; then
  10891. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10892. fi
  10893. fi
  10894. aix_libpath=$lt_cv_aix_libpath__CXX
  10895. fi
  10896. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10897. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10898. else
  10899. if test "$host_cpu" = ia64; then
  10900. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10901. allow_undefined_flag_CXX="-z nodefs"
  10902. 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"
  10903. else
  10904. # Determine the default libpath from the value encoded in an
  10905. # empty executable.
  10906. if test "${lt_cv_aix_libpath+set}" = set; then
  10907. aix_libpath=$lt_cv_aix_libpath
  10908. else
  10909. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10910. $as_echo_n "(cached) " >&6
  10911. else
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. int
  10915. main ()
  10916. {
  10917. ;
  10918. return 0;
  10919. }
  10920. _ACEOF
  10921. if ac_fn_cxx_try_link "$LINENO"; then :
  10922. lt_aix_libpath_sed='
  10923. /Import File Strings/,/^$/ {
  10924. /^0/ {
  10925. s/^0 *\([^ ]*\) *$/\1/
  10926. p
  10927. }
  10928. }'
  10929. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10930. # Check for a 64-bit object if we didn't find anything.
  10931. if test -z "$lt_cv_aix_libpath__CXX"; then
  10932. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10933. fi
  10934. fi
  10935. rm -f core conftest.err conftest.$ac_objext \
  10936. conftest$ac_exeext conftest.$ac_ext
  10937. if test -z "$lt_cv_aix_libpath__CXX"; then
  10938. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10939. fi
  10940. fi
  10941. aix_libpath=$lt_cv_aix_libpath__CXX
  10942. fi
  10943. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10944. # Warning - without using the other run time loading flags,
  10945. # -berok will link without error, but may produce a broken library.
  10946. no_undefined_flag_CXX=' ${wl}-bernotok'
  10947. allow_undefined_flag_CXX=' ${wl}-berok'
  10948. if test "$with_gnu_ld" = yes; then
  10949. # We only use this code for GNU lds that support --whole-archive.
  10950. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10951. else
  10952. # Exported symbols can be pulled into shared objects from archives
  10953. whole_archive_flag_spec_CXX='$convenience'
  10954. fi
  10955. archive_cmds_need_lc_CXX=yes
  10956. # This is similar to how AIX traditionally builds its shared
  10957. # libraries.
  10958. 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'
  10959. fi
  10960. fi
  10961. ;;
  10962. beos*)
  10963. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10964. allow_undefined_flag_CXX=unsupported
  10965. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10966. # support --undefined. This deserves some investigation. FIXME
  10967. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10968. else
  10969. ld_shlibs_CXX=no
  10970. fi
  10971. ;;
  10972. chorus*)
  10973. case $cc_basename in
  10974. *)
  10975. # FIXME: insert proper C++ library support
  10976. ld_shlibs_CXX=no
  10977. ;;
  10978. esac
  10979. ;;
  10980. cygwin* | mingw* | pw32* | cegcc*)
  10981. case $GXX,$cc_basename in
  10982. ,cl* | no,cl*)
  10983. # Native MSVC
  10984. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10985. # no search path for DLLs.
  10986. hardcode_libdir_flag_spec_CXX=' '
  10987. allow_undefined_flag_CXX=unsupported
  10988. always_export_symbols_CXX=yes
  10989. file_list_spec_CXX='@'
  10990. # Tell ltmain to make .lib files, not .a files.
  10991. libext=lib
  10992. # Tell ltmain to make .dll files, not .so files.
  10993. shrext_cmds=".dll"
  10994. # FIXME: Setting linknames here is a bad hack.
  10995. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10996. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10997. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10998. else
  10999. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11000. fi~
  11001. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11002. linknames='
  11003. # The linker will not automatically build a static lib if we build a DLL.
  11004. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11005. enable_shared_with_static_runtimes_CXX=yes
  11006. # Don't use ranlib
  11007. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11008. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11009. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11010. case $lt_outputfile in
  11011. *.exe|*.EXE) ;;
  11012. *)
  11013. lt_outputfile="$lt_outputfile.exe"
  11014. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11015. ;;
  11016. esac~
  11017. func_to_tool_file "$lt_outputfile"~
  11018. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11019. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11020. $RM "$lt_outputfile.manifest";
  11021. fi'
  11022. ;;
  11023. *)
  11024. # g++
  11025. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11026. # as there is no search path for DLLs.
  11027. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11028. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11029. allow_undefined_flag_CXX=unsupported
  11030. always_export_symbols_CXX=no
  11031. enable_shared_with_static_runtimes_CXX=yes
  11032. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11033. 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'
  11034. # If the export-symbols file already is a .def file (1st line
  11035. # is EXPORTS), use it as is; otherwise, prepend...
  11036. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11037. cp $export_symbols $output_objdir/$soname.def;
  11038. else
  11039. echo EXPORTS > $output_objdir/$soname.def;
  11040. cat $export_symbols >> $output_objdir/$soname.def;
  11041. fi~
  11042. $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'
  11043. else
  11044. ld_shlibs_CXX=no
  11045. fi
  11046. ;;
  11047. esac
  11048. ;;
  11049. darwin* | rhapsody*)
  11050. archive_cmds_need_lc_CXX=no
  11051. hardcode_direct_CXX=no
  11052. hardcode_automatic_CXX=yes
  11053. hardcode_shlibpath_var_CXX=unsupported
  11054. if test "$lt_cv_ld_force_load" = "yes"; then
  11055. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11056. else
  11057. whole_archive_flag_spec_CXX=''
  11058. fi
  11059. link_all_deplibs_CXX=yes
  11060. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11061. case $cc_basename in
  11062. ifort*) _lt_dar_can_shared=yes ;;
  11063. *) _lt_dar_can_shared=$GCC ;;
  11064. esac
  11065. if test "$_lt_dar_can_shared" = "yes"; then
  11066. output_verbose_link_cmd=func_echo_all
  11067. 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}"
  11068. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11069. 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}"
  11070. 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}"
  11071. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11072. 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}"
  11073. 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}"
  11074. fi
  11075. else
  11076. ld_shlibs_CXX=no
  11077. fi
  11078. ;;
  11079. dgux*)
  11080. case $cc_basename in
  11081. ec++*)
  11082. # FIXME: insert proper C++ library support
  11083. ld_shlibs_CXX=no
  11084. ;;
  11085. ghcx*)
  11086. # Green Hills C++ Compiler
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. *)
  11091. # FIXME: insert proper C++ library support
  11092. ld_shlibs_CXX=no
  11093. ;;
  11094. esac
  11095. ;;
  11096. freebsd2.*)
  11097. # C++ shared libraries reported to be fairly broken before
  11098. # switch to ELF
  11099. ld_shlibs_CXX=no
  11100. ;;
  11101. freebsd-elf*)
  11102. archive_cmds_need_lc_CXX=no
  11103. ;;
  11104. freebsd* | dragonfly*)
  11105. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11106. # conventions
  11107. ld_shlibs_CXX=yes
  11108. ;;
  11109. gnu*)
  11110. ;;
  11111. haiku*)
  11112. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11113. link_all_deplibs_CXX=yes
  11114. ;;
  11115. hpux9*)
  11116. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11117. hardcode_libdir_separator_CXX=:
  11118. export_dynamic_flag_spec_CXX='${wl}-E'
  11119. hardcode_direct_CXX=yes
  11120. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11121. # but as the default
  11122. # location of the library.
  11123. case $cc_basename in
  11124. CC*)
  11125. # FIXME: insert proper C++ library support
  11126. ld_shlibs_CXX=no
  11127. ;;
  11128. aCC*)
  11129. 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'
  11130. # Commands to make compiler produce verbose output that lists
  11131. # what "hidden" libraries, object files and flags are used when
  11132. # linking a shared library.
  11133. #
  11134. # There doesn't appear to be a way to prevent this compiler from
  11135. # explicitly linking system object files so we need to strip them
  11136. # from the output so that they don't get included in the library
  11137. # dependencies.
  11138. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11139. ;;
  11140. *)
  11141. if test "$GXX" = yes; then
  11142. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11143. else
  11144. # FIXME: insert proper C++ library support
  11145. ld_shlibs_CXX=no
  11146. fi
  11147. ;;
  11148. esac
  11149. ;;
  11150. hpux10*|hpux11*)
  11151. if test $with_gnu_ld = no; then
  11152. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11153. hardcode_libdir_separator_CXX=:
  11154. case $host_cpu in
  11155. hppa*64*|ia64*)
  11156. ;;
  11157. *)
  11158. export_dynamic_flag_spec_CXX='${wl}-E'
  11159. ;;
  11160. esac
  11161. fi
  11162. case $host_cpu in
  11163. hppa*64*|ia64*)
  11164. hardcode_direct_CXX=no
  11165. hardcode_shlibpath_var_CXX=no
  11166. ;;
  11167. *)
  11168. hardcode_direct_CXX=yes
  11169. hardcode_direct_absolute_CXX=yes
  11170. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11171. # but as the default
  11172. # location of the library.
  11173. ;;
  11174. esac
  11175. case $cc_basename in
  11176. CC*)
  11177. # FIXME: insert proper C++ library support
  11178. ld_shlibs_CXX=no
  11179. ;;
  11180. aCC*)
  11181. case $host_cpu in
  11182. hppa*64*)
  11183. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11184. ;;
  11185. ia64*)
  11186. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11187. ;;
  11188. *)
  11189. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11190. ;;
  11191. esac
  11192. # Commands to make compiler produce verbose output that lists
  11193. # what "hidden" libraries, object files and flags are used when
  11194. # linking a shared library.
  11195. #
  11196. # There doesn't appear to be a way to prevent this compiler from
  11197. # explicitly linking system object files so we need to strip them
  11198. # from the output so that they don't get included in the library
  11199. # dependencies.
  11200. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11201. ;;
  11202. *)
  11203. if test "$GXX" = yes; then
  11204. if test $with_gnu_ld = no; then
  11205. case $host_cpu in
  11206. hppa*64*)
  11207. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11208. ;;
  11209. ia64*)
  11210. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11211. ;;
  11212. *)
  11213. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11214. ;;
  11215. esac
  11216. fi
  11217. else
  11218. # FIXME: insert proper C++ library support
  11219. ld_shlibs_CXX=no
  11220. fi
  11221. ;;
  11222. esac
  11223. ;;
  11224. interix[3-9]*)
  11225. hardcode_direct_CXX=no
  11226. hardcode_shlibpath_var_CXX=no
  11227. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11228. export_dynamic_flag_spec_CXX='${wl}-E'
  11229. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11230. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11231. # default) and relocated if they conflict, which is a slow very memory
  11232. # consuming and fragmenting process. To avoid this, we pick a random,
  11233. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11234. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11235. 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'
  11236. 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'
  11237. ;;
  11238. irix5* | irix6*)
  11239. case $cc_basename in
  11240. CC*)
  11241. # SGI C++
  11242. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11243. # Archives containing C++ object files must be created using
  11244. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11245. # necessary to make sure instantiated templates are included
  11246. # in the archive.
  11247. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11248. ;;
  11249. *)
  11250. if test "$GXX" = yes; then
  11251. if test "$with_gnu_ld" = no; then
  11252. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11253. else
  11254. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11255. fi
  11256. fi
  11257. link_all_deplibs_CXX=yes
  11258. ;;
  11259. esac
  11260. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11261. hardcode_libdir_separator_CXX=:
  11262. inherit_rpath_CXX=yes
  11263. ;;
  11264. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11265. case $cc_basename in
  11266. KCC*)
  11267. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11268. # KCC will only create a shared library if the output file
  11269. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11270. # to its proper name (with version) after linking.
  11271. 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'
  11272. 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'
  11273. # Commands to make compiler produce verbose output that lists
  11274. # what "hidden" libraries, object files and flags are used when
  11275. # linking a shared library.
  11276. #
  11277. # There doesn't appear to be a way to prevent this compiler from
  11278. # explicitly linking system object files so we need to strip them
  11279. # from the output so that they don't get included in the library
  11280. # dependencies.
  11281. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11282. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11283. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11284. # Archives containing C++ object files must be created using
  11285. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11286. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11287. ;;
  11288. icpc* | ecpc* )
  11289. # Intel C++
  11290. with_gnu_ld=yes
  11291. # version 8.0 and above of icpc choke on multiply defined symbols
  11292. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11293. # earlier do not add the objects themselves.
  11294. case `$CC -V 2>&1` in
  11295. *"Version 7."*)
  11296. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11297. 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'
  11298. ;;
  11299. *) # Version 8.0 or newer
  11300. tmp_idyn=
  11301. case $host_cpu in
  11302. ia64*) tmp_idyn=' -i_dynamic';;
  11303. esac
  11304. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11305. 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'
  11306. ;;
  11307. esac
  11308. archive_cmds_need_lc_CXX=no
  11309. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11310. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11311. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11312. ;;
  11313. pgCC* | pgcpp*)
  11314. # Portland Group C++ compiler
  11315. case `$CC -V` in
  11316. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11317. prelink_cmds_CXX='tpldir=Template.dir~
  11318. rm -rf $tpldir~
  11319. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11320. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11321. old_archive_cmds_CXX='tpldir=Template.dir~
  11322. rm -rf $tpldir~
  11323. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11324. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11325. $RANLIB $oldlib'
  11326. archive_cmds_CXX='tpldir=Template.dir~
  11327. rm -rf $tpldir~
  11328. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11329. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11330. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11331. rm -rf $tpldir~
  11332. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11333. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11334. ;;
  11335. *) # Version 6 and above use weak symbols
  11336. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11337. 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'
  11338. ;;
  11339. esac
  11340. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11341. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11342. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11343. ;;
  11344. cxx*)
  11345. # Compaq C++
  11346. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11347. 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'
  11348. runpath_var=LD_RUN_PATH
  11349. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11350. hardcode_libdir_separator_CXX=:
  11351. # Commands to make compiler produce verbose output that lists
  11352. # what "hidden" libraries, object files and flags are used when
  11353. # linking a shared library.
  11354. #
  11355. # There doesn't appear to be a way to prevent this compiler from
  11356. # explicitly linking system object files so we need to strip them
  11357. # from the output so that they don't get included in the library
  11358. # dependencies.
  11359. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11360. ;;
  11361. xl* | mpixl* | bgxl*)
  11362. # IBM XL 8.0 on PPC, with GNU ld
  11363. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11364. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11365. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11366. if test "x$supports_anon_versioning" = xyes; then
  11367. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11368. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11369. echo "local: *; };" >> $output_objdir/$libname.ver~
  11370. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11371. fi
  11372. ;;
  11373. *)
  11374. case `$CC -V 2>&1 | sed 5q` in
  11375. *Sun\ C*)
  11376. # Sun C++ 5.9
  11377. no_undefined_flag_CXX=' -zdefs'
  11378. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11379. 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'
  11380. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11381. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11382. compiler_needs_object_CXX=yes
  11383. # Not sure whether something based on
  11384. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11385. # would be better.
  11386. output_verbose_link_cmd='func_echo_all'
  11387. # Archives containing C++ object files must be created using
  11388. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11389. # necessary to make sure instantiated templates are included
  11390. # in the archive.
  11391. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11392. ;;
  11393. esac
  11394. ;;
  11395. esac
  11396. ;;
  11397. lynxos*)
  11398. # FIXME: insert proper C++ library support
  11399. ld_shlibs_CXX=no
  11400. ;;
  11401. m88k*)
  11402. # FIXME: insert proper C++ library support
  11403. ld_shlibs_CXX=no
  11404. ;;
  11405. mvs*)
  11406. case $cc_basename in
  11407. cxx*)
  11408. # FIXME: insert proper C++ library support
  11409. ld_shlibs_CXX=no
  11410. ;;
  11411. *)
  11412. # FIXME: insert proper C++ library support
  11413. ld_shlibs_CXX=no
  11414. ;;
  11415. esac
  11416. ;;
  11417. netbsd*)
  11418. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11419. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11420. wlarc=
  11421. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11422. hardcode_direct_CXX=yes
  11423. hardcode_shlibpath_var_CXX=no
  11424. fi
  11425. # Workaround some broken pre-1.5 toolchains
  11426. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11427. ;;
  11428. *nto* | *qnx*)
  11429. ld_shlibs_CXX=yes
  11430. ;;
  11431. openbsd2*)
  11432. # C++ shared libraries are fairly broken
  11433. ld_shlibs_CXX=no
  11434. ;;
  11435. openbsd*)
  11436. if test -f /usr/libexec/ld.so; then
  11437. hardcode_direct_CXX=yes
  11438. hardcode_shlibpath_var_CXX=no
  11439. hardcode_direct_absolute_CXX=yes
  11440. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11441. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11442. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11443. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11444. export_dynamic_flag_spec_CXX='${wl}-E'
  11445. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11446. fi
  11447. output_verbose_link_cmd=func_echo_all
  11448. else
  11449. ld_shlibs_CXX=no
  11450. fi
  11451. ;;
  11452. osf3* | osf4* | osf5*)
  11453. case $cc_basename in
  11454. KCC*)
  11455. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11456. # KCC will only create a shared library if the output file
  11457. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11458. # to its proper name (with version) after linking.
  11459. 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'
  11460. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11461. hardcode_libdir_separator_CXX=:
  11462. # Archives containing C++ object files must be created using
  11463. # the KAI C++ compiler.
  11464. case $host in
  11465. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11466. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11467. esac
  11468. ;;
  11469. RCC*)
  11470. # Rational C++ 2.4.1
  11471. # FIXME: insert proper C++ library support
  11472. ld_shlibs_CXX=no
  11473. ;;
  11474. cxx*)
  11475. case $host in
  11476. osf3*)
  11477. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11478. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11479. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11480. ;;
  11481. *)
  11482. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11483. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11484. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11485. echo "-hidden">> $lib.exp~
  11486. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11487. $RM $lib.exp'
  11488. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11489. ;;
  11490. esac
  11491. hardcode_libdir_separator_CXX=:
  11492. # Commands to make compiler produce verbose output that lists
  11493. # what "hidden" libraries, object files and flags are used when
  11494. # linking a shared library.
  11495. #
  11496. # There doesn't appear to be a way to prevent this compiler from
  11497. # explicitly linking system object files so we need to strip them
  11498. # from the output so that they don't get included in the library
  11499. # dependencies.
  11500. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11501. ;;
  11502. *)
  11503. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11504. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11505. case $host in
  11506. osf3*)
  11507. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11508. ;;
  11509. *)
  11510. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11511. ;;
  11512. esac
  11513. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11514. hardcode_libdir_separator_CXX=:
  11515. # Commands to make compiler produce verbose output that lists
  11516. # what "hidden" libraries, object files and flags are used when
  11517. # linking a shared library.
  11518. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11519. else
  11520. # FIXME: insert proper C++ library support
  11521. ld_shlibs_CXX=no
  11522. fi
  11523. ;;
  11524. esac
  11525. ;;
  11526. psos*)
  11527. # FIXME: insert proper C++ library support
  11528. ld_shlibs_CXX=no
  11529. ;;
  11530. sunos4*)
  11531. case $cc_basename in
  11532. CC*)
  11533. # Sun C++ 4.x
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. ;;
  11537. lcc*)
  11538. # Lucid
  11539. # FIXME: insert proper C++ library support
  11540. ld_shlibs_CXX=no
  11541. ;;
  11542. *)
  11543. # FIXME: insert proper C++ library support
  11544. ld_shlibs_CXX=no
  11545. ;;
  11546. esac
  11547. ;;
  11548. solaris*)
  11549. case $cc_basename in
  11550. CC* | sunCC*)
  11551. # Sun C++ 4.2, 5.x and Centerline C++
  11552. archive_cmds_need_lc_CXX=yes
  11553. no_undefined_flag_CXX=' -zdefs'
  11554. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11555. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11556. $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'
  11557. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11558. hardcode_shlibpath_var_CXX=no
  11559. case $host_os in
  11560. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11561. *)
  11562. # The compiler driver will combine and reorder linker options,
  11563. # but understands `-z linker_flag'.
  11564. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11565. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11566. ;;
  11567. esac
  11568. link_all_deplibs_CXX=yes
  11569. output_verbose_link_cmd='func_echo_all'
  11570. # Archives containing C++ object files must be created using
  11571. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11572. # necessary to make sure instantiated templates are included
  11573. # in the archive.
  11574. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11575. ;;
  11576. gcx*)
  11577. # Green Hills C++ Compiler
  11578. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11579. # The C++ compiler must be used to create the archive.
  11580. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11581. ;;
  11582. *)
  11583. # GNU C++ compiler with Solaris linker
  11584. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11585. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11586. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11587. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11588. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11589. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11590. # Commands to make compiler produce verbose output that lists
  11591. # what "hidden" libraries, object files and flags are used when
  11592. # linking a shared library.
  11593. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11594. else
  11595. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11596. # platform.
  11597. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11598. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11599. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11600. # Commands to make compiler produce verbose output that lists
  11601. # what "hidden" libraries, object files and flags are used when
  11602. # linking a shared library.
  11603. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11604. fi
  11605. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11606. case $host_os in
  11607. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11608. *)
  11609. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11610. ;;
  11611. esac
  11612. fi
  11613. ;;
  11614. esac
  11615. ;;
  11616. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11617. no_undefined_flag_CXX='${wl}-z,text'
  11618. archive_cmds_need_lc_CXX=no
  11619. hardcode_shlibpath_var_CXX=no
  11620. runpath_var='LD_RUN_PATH'
  11621. case $cc_basename in
  11622. CC*)
  11623. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11624. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11625. ;;
  11626. *)
  11627. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11628. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11629. ;;
  11630. esac
  11631. ;;
  11632. sysv5* | sco3.2v5* | sco5v6*)
  11633. # Note: We can NOT use -z defs as we might desire, because we do not
  11634. # link with -lc, and that would cause any symbols used from libc to
  11635. # always be unresolved, which means just about no library would
  11636. # ever link correctly. If we're not using GNU ld we use -z text
  11637. # though, which does catch some bad symbols but isn't as heavy-handed
  11638. # as -z defs.
  11639. no_undefined_flag_CXX='${wl}-z,text'
  11640. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11641. archive_cmds_need_lc_CXX=no
  11642. hardcode_shlibpath_var_CXX=no
  11643. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11644. hardcode_libdir_separator_CXX=':'
  11645. link_all_deplibs_CXX=yes
  11646. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11647. runpath_var='LD_RUN_PATH'
  11648. case $cc_basename in
  11649. CC*)
  11650. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11651. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11652. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11653. '"$old_archive_cmds_CXX"
  11654. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11655. '"$reload_cmds_CXX"
  11656. ;;
  11657. *)
  11658. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11659. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11660. ;;
  11661. esac
  11662. ;;
  11663. tandem*)
  11664. case $cc_basename in
  11665. NCC*)
  11666. # NonStop-UX NCC 3.20
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. ;;
  11670. *)
  11671. # FIXME: insert proper C++ library support
  11672. ld_shlibs_CXX=no
  11673. ;;
  11674. esac
  11675. ;;
  11676. vxworks*)
  11677. # FIXME: insert proper C++ library support
  11678. ld_shlibs_CXX=no
  11679. ;;
  11680. *)
  11681. # FIXME: insert proper C++ library support
  11682. ld_shlibs_CXX=no
  11683. ;;
  11684. esac
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11686. $as_echo "$ld_shlibs_CXX" >&6; }
  11687. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11688. GCC_CXX="$GXX"
  11689. LD_CXX="$LD"
  11690. ## CAVEAT EMPTOR:
  11691. ## There is no encapsulation within the following macros, do not change
  11692. ## the running order or otherwise move them around unless you know exactly
  11693. ## what you are doing...
  11694. # Dependencies to place before and after the object being linked:
  11695. predep_objects_CXX=
  11696. postdep_objects_CXX=
  11697. predeps_CXX=
  11698. postdeps_CXX=
  11699. compiler_lib_search_path_CXX=
  11700. cat > conftest.$ac_ext <<_LT_EOF
  11701. class Foo
  11702. {
  11703. public:
  11704. Foo (void) { a = 0; }
  11705. private:
  11706. int a;
  11707. };
  11708. _LT_EOF
  11709. _lt_libdeps_save_CFLAGS=$CFLAGS
  11710. case "$CC $CFLAGS " in #(
  11711. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11712. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11713. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11714. esac
  11715. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11716. (eval $ac_compile) 2>&5
  11717. ac_status=$?
  11718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11719. test $ac_status = 0; }; then
  11720. # Parse the compiler output and extract the necessary
  11721. # objects, libraries and library flags.
  11722. # Sentinel used to keep track of whether or not we are before
  11723. # the conftest object file.
  11724. pre_test_object_deps_done=no
  11725. for p in `eval "$output_verbose_link_cmd"`; do
  11726. case ${prev}${p} in
  11727. -L* | -R* | -l*)
  11728. # Some compilers place space between "-{L,R}" and the path.
  11729. # Remove the space.
  11730. if test $p = "-L" ||
  11731. test $p = "-R"; then
  11732. prev=$p
  11733. continue
  11734. fi
  11735. # Expand the sysroot to ease extracting the directories later.
  11736. if test -z "$prev"; then
  11737. case $p in
  11738. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11739. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11740. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11741. esac
  11742. fi
  11743. case $p in
  11744. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11745. esac
  11746. if test "$pre_test_object_deps_done" = no; then
  11747. case ${prev} in
  11748. -L | -R)
  11749. # Internal compiler library paths should come after those
  11750. # provided the user. The postdeps already come after the
  11751. # user supplied libs so there is no need to process them.
  11752. if test -z "$compiler_lib_search_path_CXX"; then
  11753. compiler_lib_search_path_CXX="${prev}${p}"
  11754. else
  11755. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11756. fi
  11757. ;;
  11758. # The "-l" case would never come before the object being
  11759. # linked, so don't bother handling this case.
  11760. esac
  11761. else
  11762. if test -z "$postdeps_CXX"; then
  11763. postdeps_CXX="${prev}${p}"
  11764. else
  11765. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11766. fi
  11767. fi
  11768. prev=
  11769. ;;
  11770. *.lto.$objext) ;; # Ignore GCC LTO objects
  11771. *.$objext)
  11772. # This assumes that the test object file only shows up
  11773. # once in the compiler output.
  11774. if test "$p" = "conftest.$objext"; then
  11775. pre_test_object_deps_done=yes
  11776. continue
  11777. fi
  11778. if test "$pre_test_object_deps_done" = no; then
  11779. if test -z "$predep_objects_CXX"; then
  11780. predep_objects_CXX="$p"
  11781. else
  11782. predep_objects_CXX="$predep_objects_CXX $p"
  11783. fi
  11784. else
  11785. if test -z "$postdep_objects_CXX"; then
  11786. postdep_objects_CXX="$p"
  11787. else
  11788. postdep_objects_CXX="$postdep_objects_CXX $p"
  11789. fi
  11790. fi
  11791. ;;
  11792. *) ;; # Ignore the rest.
  11793. esac
  11794. done
  11795. # Clean up.
  11796. rm -f a.out a.exe
  11797. else
  11798. echo "libtool.m4: error: problem compiling CXX test program"
  11799. fi
  11800. $RM -f confest.$objext
  11801. CFLAGS=$_lt_libdeps_save_CFLAGS
  11802. # PORTME: override above test on systems where it is broken
  11803. case $host_os in
  11804. interix[3-9]*)
  11805. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11806. # hack all around it, let's just trust "g++" to DTRT.
  11807. predep_objects_CXX=
  11808. postdep_objects_CXX=
  11809. postdeps_CXX=
  11810. ;;
  11811. linux*)
  11812. case `$CC -V 2>&1 | sed 5q` in
  11813. *Sun\ C*)
  11814. # Sun C++ 5.9
  11815. # The more standards-conforming stlport4 library is
  11816. # incompatible with the Cstd library. Avoid specifying
  11817. # it if it's in CXXFLAGS. Ignore libCrun as
  11818. # -library=stlport4 depends on it.
  11819. case " $CXX $CXXFLAGS " in
  11820. *" -library=stlport4 "*)
  11821. solaris_use_stlport4=yes
  11822. ;;
  11823. esac
  11824. if test "$solaris_use_stlport4" != yes; then
  11825. postdeps_CXX='-library=Cstd -library=Crun'
  11826. fi
  11827. ;;
  11828. esac
  11829. ;;
  11830. solaris*)
  11831. case $cc_basename in
  11832. CC* | sunCC*)
  11833. # The more standards-conforming stlport4 library is
  11834. # incompatible with the Cstd library. Avoid specifying
  11835. # it if it's in CXXFLAGS. Ignore libCrun as
  11836. # -library=stlport4 depends on it.
  11837. case " $CXX $CXXFLAGS " in
  11838. *" -library=stlport4 "*)
  11839. solaris_use_stlport4=yes
  11840. ;;
  11841. esac
  11842. # Adding this requires a known-good setup of shared libraries for
  11843. # Sun compiler versions before 5.6, else PIC objects from an old
  11844. # archive will be linked into the output, leading to subtle bugs.
  11845. if test "$solaris_use_stlport4" != yes; then
  11846. postdeps_CXX='-library=Cstd -library=Crun'
  11847. fi
  11848. ;;
  11849. esac
  11850. ;;
  11851. esac
  11852. case " $postdeps_CXX " in
  11853. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11854. esac
  11855. compiler_lib_search_dirs_CXX=
  11856. if test -n "${compiler_lib_search_path_CXX}"; then
  11857. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11858. fi
  11859. lt_prog_compiler_wl_CXX=
  11860. lt_prog_compiler_pic_CXX=
  11861. lt_prog_compiler_static_CXX=
  11862. # C++ specific cases for pic, static, wl, etc.
  11863. if test "$GXX" = yes; then
  11864. lt_prog_compiler_wl_CXX='-Wl,'
  11865. lt_prog_compiler_static_CXX='-static'
  11866. case $host_os in
  11867. aix*)
  11868. # All AIX code is PIC.
  11869. if test "$host_cpu" = ia64; then
  11870. # AIX 5 now supports IA64 processor
  11871. lt_prog_compiler_static_CXX='-Bstatic'
  11872. fi
  11873. ;;
  11874. amigaos*)
  11875. case $host_cpu in
  11876. powerpc)
  11877. # see comment about AmigaOS4 .so support
  11878. lt_prog_compiler_pic_CXX='-fPIC'
  11879. ;;
  11880. m68k)
  11881. # FIXME: we need at least 68020 code to build shared libraries, but
  11882. # adding the `-m68020' flag to GCC prevents building anything better,
  11883. # like `-m68040'.
  11884. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11885. ;;
  11886. esac
  11887. ;;
  11888. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11889. # PIC is the default for these OSes.
  11890. ;;
  11891. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11892. # This hack is so that the source file can tell whether it is being
  11893. # built for inclusion in a dll (and should export symbols for example).
  11894. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11895. # (--disable-auto-import) libraries
  11896. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11897. ;;
  11898. darwin* | rhapsody*)
  11899. # PIC is the default on this platform
  11900. # Common symbols not allowed in MH_DYLIB files
  11901. lt_prog_compiler_pic_CXX='-fno-common'
  11902. ;;
  11903. *djgpp*)
  11904. # DJGPP does not support shared libraries at all
  11905. lt_prog_compiler_pic_CXX=
  11906. ;;
  11907. haiku*)
  11908. # PIC is the default for Haiku.
  11909. # The "-static" flag exists, but is broken.
  11910. lt_prog_compiler_static_CXX=
  11911. ;;
  11912. interix[3-9]*)
  11913. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11914. # Instead, we relocate shared libraries at runtime.
  11915. ;;
  11916. sysv4*MP*)
  11917. if test -d /usr/nec; then
  11918. lt_prog_compiler_pic_CXX=-Kconform_pic
  11919. fi
  11920. ;;
  11921. hpux*)
  11922. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11923. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11924. # sets the default TLS model and affects inlining.
  11925. case $host_cpu in
  11926. hppa*64*)
  11927. ;;
  11928. *)
  11929. lt_prog_compiler_pic_CXX='-fPIC'
  11930. ;;
  11931. esac
  11932. ;;
  11933. *qnx* | *nto*)
  11934. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11935. # it will coredump.
  11936. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11937. ;;
  11938. *)
  11939. lt_prog_compiler_pic_CXX='-fPIC'
  11940. ;;
  11941. esac
  11942. else
  11943. case $host_os in
  11944. aix[4-9]*)
  11945. # All AIX code is PIC.
  11946. if test "$host_cpu" = ia64; then
  11947. # AIX 5 now supports IA64 processor
  11948. lt_prog_compiler_static_CXX='-Bstatic'
  11949. else
  11950. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11951. fi
  11952. ;;
  11953. chorus*)
  11954. case $cc_basename in
  11955. cxch68*)
  11956. # Green Hills C++ Compiler
  11957. # _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"
  11958. ;;
  11959. esac
  11960. ;;
  11961. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11962. # This hack is so that the source file can tell whether it is being
  11963. # built for inclusion in a dll (and should export symbols for example).
  11964. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11965. ;;
  11966. dgux*)
  11967. case $cc_basename in
  11968. ec++*)
  11969. lt_prog_compiler_pic_CXX='-KPIC'
  11970. ;;
  11971. ghcx*)
  11972. # Green Hills C++ Compiler
  11973. lt_prog_compiler_pic_CXX='-pic'
  11974. ;;
  11975. *)
  11976. ;;
  11977. esac
  11978. ;;
  11979. freebsd* | dragonfly*)
  11980. # FreeBSD uses GNU C++
  11981. ;;
  11982. hpux9* | hpux10* | hpux11*)
  11983. case $cc_basename in
  11984. CC*)
  11985. lt_prog_compiler_wl_CXX='-Wl,'
  11986. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11987. if test "$host_cpu" != ia64; then
  11988. lt_prog_compiler_pic_CXX='+Z'
  11989. fi
  11990. ;;
  11991. aCC*)
  11992. lt_prog_compiler_wl_CXX='-Wl,'
  11993. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11994. case $host_cpu in
  11995. hppa*64*|ia64*)
  11996. # +Z the default
  11997. ;;
  11998. *)
  11999. lt_prog_compiler_pic_CXX='+Z'
  12000. ;;
  12001. esac
  12002. ;;
  12003. *)
  12004. ;;
  12005. esac
  12006. ;;
  12007. interix*)
  12008. # This is c89, which is MS Visual C++ (no shared libs)
  12009. # Anyone wants to do a port?
  12010. ;;
  12011. irix5* | irix6* | nonstopux*)
  12012. case $cc_basename in
  12013. CC*)
  12014. lt_prog_compiler_wl_CXX='-Wl,'
  12015. lt_prog_compiler_static_CXX='-non_shared'
  12016. # CC pic flag -KPIC is the default.
  12017. ;;
  12018. *)
  12019. ;;
  12020. esac
  12021. ;;
  12022. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12023. case $cc_basename in
  12024. KCC*)
  12025. # KAI C++ Compiler
  12026. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12027. lt_prog_compiler_pic_CXX='-fPIC'
  12028. ;;
  12029. ecpc* )
  12030. # old Intel C++ for x86_64 which still supported -KPIC.
  12031. lt_prog_compiler_wl_CXX='-Wl,'
  12032. lt_prog_compiler_pic_CXX='-KPIC'
  12033. lt_prog_compiler_static_CXX='-static'
  12034. ;;
  12035. icpc* )
  12036. # Intel C++, used to be incompatible with GCC.
  12037. # ICC 10 doesn't accept -KPIC any more.
  12038. lt_prog_compiler_wl_CXX='-Wl,'
  12039. lt_prog_compiler_pic_CXX='-fPIC'
  12040. lt_prog_compiler_static_CXX='-static'
  12041. ;;
  12042. pgCC* | pgcpp*)
  12043. # Portland Group C++ compiler
  12044. lt_prog_compiler_wl_CXX='-Wl,'
  12045. lt_prog_compiler_pic_CXX='-fpic'
  12046. lt_prog_compiler_static_CXX='-Bstatic'
  12047. ;;
  12048. cxx*)
  12049. # Compaq C++
  12050. # Make sure the PIC flag is empty. It appears that all Alpha
  12051. # Linux and Compaq Tru64 Unix objects are PIC.
  12052. lt_prog_compiler_pic_CXX=
  12053. lt_prog_compiler_static_CXX='-non_shared'
  12054. ;;
  12055. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12056. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12057. lt_prog_compiler_wl_CXX='-Wl,'
  12058. lt_prog_compiler_pic_CXX='-qpic'
  12059. lt_prog_compiler_static_CXX='-qstaticlink'
  12060. ;;
  12061. *)
  12062. case `$CC -V 2>&1 | sed 5q` in
  12063. *Sun\ C*)
  12064. # Sun C++ 5.9
  12065. lt_prog_compiler_pic_CXX='-KPIC'
  12066. lt_prog_compiler_static_CXX='-Bstatic'
  12067. lt_prog_compiler_wl_CXX='-Qoption ld '
  12068. ;;
  12069. esac
  12070. ;;
  12071. esac
  12072. ;;
  12073. lynxos*)
  12074. ;;
  12075. m88k*)
  12076. ;;
  12077. mvs*)
  12078. case $cc_basename in
  12079. cxx*)
  12080. lt_prog_compiler_pic_CXX='-W c,exportall'
  12081. ;;
  12082. *)
  12083. ;;
  12084. esac
  12085. ;;
  12086. netbsd*)
  12087. ;;
  12088. *qnx* | *nto*)
  12089. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12090. # it will coredump.
  12091. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12092. ;;
  12093. osf3* | osf4* | osf5*)
  12094. case $cc_basename in
  12095. KCC*)
  12096. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12097. ;;
  12098. RCC*)
  12099. # Rational C++ 2.4.1
  12100. lt_prog_compiler_pic_CXX='-pic'
  12101. ;;
  12102. cxx*)
  12103. # Digital/Compaq C++
  12104. lt_prog_compiler_wl_CXX='-Wl,'
  12105. # Make sure the PIC flag is empty. It appears that all Alpha
  12106. # Linux and Compaq Tru64 Unix objects are PIC.
  12107. lt_prog_compiler_pic_CXX=
  12108. lt_prog_compiler_static_CXX='-non_shared'
  12109. ;;
  12110. *)
  12111. ;;
  12112. esac
  12113. ;;
  12114. psos*)
  12115. ;;
  12116. solaris*)
  12117. case $cc_basename in
  12118. CC* | sunCC*)
  12119. # Sun C++ 4.2, 5.x and Centerline C++
  12120. lt_prog_compiler_pic_CXX='-KPIC'
  12121. lt_prog_compiler_static_CXX='-Bstatic'
  12122. lt_prog_compiler_wl_CXX='-Qoption ld '
  12123. ;;
  12124. gcx*)
  12125. # Green Hills C++ Compiler
  12126. lt_prog_compiler_pic_CXX='-PIC'
  12127. ;;
  12128. *)
  12129. ;;
  12130. esac
  12131. ;;
  12132. sunos4*)
  12133. case $cc_basename in
  12134. CC*)
  12135. # Sun C++ 4.x
  12136. lt_prog_compiler_pic_CXX='-pic'
  12137. lt_prog_compiler_static_CXX='-Bstatic'
  12138. ;;
  12139. lcc*)
  12140. # Lucid
  12141. lt_prog_compiler_pic_CXX='-pic'
  12142. ;;
  12143. *)
  12144. ;;
  12145. esac
  12146. ;;
  12147. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12148. case $cc_basename in
  12149. CC*)
  12150. lt_prog_compiler_wl_CXX='-Wl,'
  12151. lt_prog_compiler_pic_CXX='-KPIC'
  12152. lt_prog_compiler_static_CXX='-Bstatic'
  12153. ;;
  12154. esac
  12155. ;;
  12156. tandem*)
  12157. case $cc_basename in
  12158. NCC*)
  12159. # NonStop-UX NCC 3.20
  12160. lt_prog_compiler_pic_CXX='-KPIC'
  12161. ;;
  12162. *)
  12163. ;;
  12164. esac
  12165. ;;
  12166. vxworks*)
  12167. ;;
  12168. *)
  12169. lt_prog_compiler_can_build_shared_CXX=no
  12170. ;;
  12171. esac
  12172. fi
  12173. case $host_os in
  12174. # For platforms which do not support PIC, -DPIC is meaningless:
  12175. *djgpp*)
  12176. lt_prog_compiler_pic_CXX=
  12177. ;;
  12178. *)
  12179. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12180. ;;
  12181. esac
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12183. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12184. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12185. $as_echo_n "(cached) " >&6
  12186. else
  12187. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12188. fi
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12190. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12191. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12192. #
  12193. # Check to make sure the PIC flag actually works.
  12194. #
  12195. if test -n "$lt_prog_compiler_pic_CXX"; then
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12197. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12198. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12199. $as_echo_n "(cached) " >&6
  12200. else
  12201. lt_cv_prog_compiler_pic_works_CXX=no
  12202. ac_outfile=conftest.$ac_objext
  12203. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12204. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12205. # Insert the option either (1) after the last *FLAGS variable, or
  12206. # (2) before a word containing "conftest.", or (3) at the end.
  12207. # Note that $ac_compile itself does not contain backslashes and begins
  12208. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12209. # The option is referenced via a variable to avoid confusing sed.
  12210. lt_compile=`echo "$ac_compile" | $SED \
  12211. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12212. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12213. -e 's:$: $lt_compiler_flag:'`
  12214. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12215. (eval "$lt_compile" 2>conftest.err)
  12216. ac_status=$?
  12217. cat conftest.err >&5
  12218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12219. if (exit $ac_status) && test -s "$ac_outfile"; then
  12220. # The compiler can only warn and ignore the option if not recognized
  12221. # So say no if there are warnings other than the usual output.
  12222. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12223. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12224. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12225. lt_cv_prog_compiler_pic_works_CXX=yes
  12226. fi
  12227. fi
  12228. $RM conftest*
  12229. fi
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12231. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12232. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12233. case $lt_prog_compiler_pic_CXX in
  12234. "" | " "*) ;;
  12235. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12236. esac
  12237. else
  12238. lt_prog_compiler_pic_CXX=
  12239. lt_prog_compiler_can_build_shared_CXX=no
  12240. fi
  12241. fi
  12242. #
  12243. # Check to make sure the static flag actually works.
  12244. #
  12245. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12247. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12248. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12249. $as_echo_n "(cached) " >&6
  12250. else
  12251. lt_cv_prog_compiler_static_works_CXX=no
  12252. save_LDFLAGS="$LDFLAGS"
  12253. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12254. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12255. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12256. # The linker can only warn and ignore the option if not recognized
  12257. # So say no if there are warnings
  12258. if test -s conftest.err; then
  12259. # Append any errors to the config.log.
  12260. cat conftest.err 1>&5
  12261. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12262. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12263. if diff conftest.exp conftest.er2 >/dev/null; then
  12264. lt_cv_prog_compiler_static_works_CXX=yes
  12265. fi
  12266. else
  12267. lt_cv_prog_compiler_static_works_CXX=yes
  12268. fi
  12269. fi
  12270. $RM -r conftest*
  12271. LDFLAGS="$save_LDFLAGS"
  12272. fi
  12273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12274. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12275. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12276. :
  12277. else
  12278. lt_prog_compiler_static_CXX=
  12279. fi
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12281. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12282. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. lt_cv_prog_compiler_c_o_CXX=no
  12286. $RM -r conftest 2>/dev/null
  12287. mkdir conftest
  12288. cd conftest
  12289. mkdir out
  12290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12291. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12292. # Insert the option either (1) after the last *FLAGS variable, or
  12293. # (2) before a word containing "conftest.", or (3) at the end.
  12294. # Note that $ac_compile itself does not contain backslashes and begins
  12295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12296. lt_compile=`echo "$ac_compile" | $SED \
  12297. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12298. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12299. -e 's:$: $lt_compiler_flag:'`
  12300. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12301. (eval "$lt_compile" 2>out/conftest.err)
  12302. ac_status=$?
  12303. cat out/conftest.err >&5
  12304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12305. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12306. then
  12307. # The compiler can only warn and ignore the option if not recognized
  12308. # So say no if there are warnings
  12309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12310. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12311. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12312. lt_cv_prog_compiler_c_o_CXX=yes
  12313. fi
  12314. fi
  12315. chmod u+w . 2>&5
  12316. $RM conftest*
  12317. # SGI C++ compiler will create directory out/ii_files/ for
  12318. # template instantiation
  12319. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12320. $RM out/* && rmdir out
  12321. cd ..
  12322. $RM -r conftest
  12323. $RM conftest*
  12324. fi
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12326. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12328. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12329. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12330. $as_echo_n "(cached) " >&6
  12331. else
  12332. lt_cv_prog_compiler_c_o_CXX=no
  12333. $RM -r conftest 2>/dev/null
  12334. mkdir conftest
  12335. cd conftest
  12336. mkdir out
  12337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12338. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12339. # Insert the option either (1) after the last *FLAGS variable, or
  12340. # (2) before a word containing "conftest.", or (3) at the end.
  12341. # Note that $ac_compile itself does not contain backslashes and begins
  12342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12343. lt_compile=`echo "$ac_compile" | $SED \
  12344. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12345. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12346. -e 's:$: $lt_compiler_flag:'`
  12347. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12348. (eval "$lt_compile" 2>out/conftest.err)
  12349. ac_status=$?
  12350. cat out/conftest.err >&5
  12351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12352. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12353. then
  12354. # The compiler can only warn and ignore the option if not recognized
  12355. # So say no if there are warnings
  12356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12357. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12358. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12359. lt_cv_prog_compiler_c_o_CXX=yes
  12360. fi
  12361. fi
  12362. chmod u+w . 2>&5
  12363. $RM conftest*
  12364. # SGI C++ compiler will create directory out/ii_files/ for
  12365. # template instantiation
  12366. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12367. $RM out/* && rmdir out
  12368. cd ..
  12369. $RM -r conftest
  12370. $RM conftest*
  12371. fi
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12373. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12374. hard_links="nottested"
  12375. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12376. # do not overwrite the value of need_locks provided by the user
  12377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12378. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12379. hard_links=yes
  12380. $RM conftest*
  12381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12382. touch conftest.a
  12383. ln conftest.a conftest.b 2>&5 || hard_links=no
  12384. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12386. $as_echo "$hard_links" >&6; }
  12387. if test "$hard_links" = no; then
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12389. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12390. need_locks=warn
  12391. fi
  12392. else
  12393. need_locks=no
  12394. fi
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12396. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12397. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12398. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12399. case $host_os in
  12400. aix[4-9]*)
  12401. # If we're using GNU nm, then we don't want the "-C" option.
  12402. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12403. # Also, AIX nm treats weak defined symbols like other global defined
  12404. # symbols, whereas GNU nm marks them as "W".
  12405. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12406. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12407. else
  12408. 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'
  12409. fi
  12410. ;;
  12411. pw32*)
  12412. export_symbols_cmds_CXX="$ltdll_cmds"
  12413. ;;
  12414. cygwin* | mingw* | cegcc*)
  12415. case $cc_basename in
  12416. cl*)
  12417. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12418. ;;
  12419. *)
  12420. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12421. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12422. ;;
  12423. esac
  12424. ;;
  12425. *)
  12426. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12427. ;;
  12428. esac
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12430. $as_echo "$ld_shlibs_CXX" >&6; }
  12431. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12432. with_gnu_ld_CXX=$with_gnu_ld
  12433. #
  12434. # Do we need to explicitly link libc?
  12435. #
  12436. case "x$archive_cmds_need_lc_CXX" in
  12437. x|xyes)
  12438. # Assume -lc should be added
  12439. archive_cmds_need_lc_CXX=yes
  12440. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12441. case $archive_cmds_CXX in
  12442. *'~'*)
  12443. # FIXME: we may have to deal with multi-command sequences.
  12444. ;;
  12445. '$CC '*)
  12446. # Test whether the compiler implicitly links with -lc since on some
  12447. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12448. # to ld, don't add -lc before -lgcc.
  12449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12450. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12451. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12452. $as_echo_n "(cached) " >&6
  12453. else
  12454. $RM conftest*
  12455. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12457. (eval $ac_compile) 2>&5
  12458. ac_status=$?
  12459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12460. test $ac_status = 0; } 2>conftest.err; then
  12461. soname=conftest
  12462. lib=conftest
  12463. libobjs=conftest.$ac_objext
  12464. deplibs=
  12465. wl=$lt_prog_compiler_wl_CXX
  12466. pic_flag=$lt_prog_compiler_pic_CXX
  12467. compiler_flags=-v
  12468. linker_flags=-v
  12469. verstring=
  12470. output_objdir=.
  12471. libname=conftest
  12472. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12473. allow_undefined_flag_CXX=
  12474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12475. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12476. ac_status=$?
  12477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12478. test $ac_status = 0; }
  12479. then
  12480. lt_cv_archive_cmds_need_lc_CXX=no
  12481. else
  12482. lt_cv_archive_cmds_need_lc_CXX=yes
  12483. fi
  12484. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12485. else
  12486. cat conftest.err 1>&5
  12487. fi
  12488. $RM conftest*
  12489. fi
  12490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12491. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12492. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12493. ;;
  12494. esac
  12495. fi
  12496. ;;
  12497. esac
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12499. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12500. library_names_spec=
  12501. libname_spec='lib$name'
  12502. soname_spec=
  12503. shrext_cmds=".so"
  12504. postinstall_cmds=
  12505. postuninstall_cmds=
  12506. finish_cmds=
  12507. finish_eval=
  12508. shlibpath_var=
  12509. shlibpath_overrides_runpath=unknown
  12510. version_type=none
  12511. dynamic_linker="$host_os ld.so"
  12512. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12513. need_lib_prefix=unknown
  12514. hardcode_into_libs=no
  12515. # when you set need_version to no, make sure it does not cause -set_version
  12516. # flags to be left without arguments
  12517. need_version=unknown
  12518. case $host_os in
  12519. aix3*)
  12520. version_type=linux # correct to gnu/linux during the next big refactor
  12521. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12522. shlibpath_var=LIBPATH
  12523. # AIX 3 has no versioning support, so we append a major version to the name.
  12524. soname_spec='${libname}${release}${shared_ext}$major'
  12525. ;;
  12526. aix[4-9]*)
  12527. version_type=linux # correct to gnu/linux during the next big refactor
  12528. need_lib_prefix=no
  12529. need_version=no
  12530. hardcode_into_libs=yes
  12531. if test "$host_cpu" = ia64; then
  12532. # AIX 5 supports IA64
  12533. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12534. shlibpath_var=LD_LIBRARY_PATH
  12535. else
  12536. # With GCC up to 2.95.x, collect2 would create an import file
  12537. # for dependence libraries. The import file would start with
  12538. # the line `#! .'. This would cause the generated library to
  12539. # depend on `.', always an invalid library. This was fixed in
  12540. # development snapshots of GCC prior to 3.0.
  12541. case $host_os in
  12542. aix4 | aix4.[01] | aix4.[01].*)
  12543. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12544. echo ' yes '
  12545. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12546. :
  12547. else
  12548. can_build_shared=no
  12549. fi
  12550. ;;
  12551. esac
  12552. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12553. # soname into executable. Probably we can add versioning support to
  12554. # collect2, so additional links can be useful in future.
  12555. if test "$aix_use_runtimelinking" = yes; then
  12556. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12557. # instead of lib<name>.a to let people know that these are not
  12558. # typical AIX shared libraries.
  12559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12560. else
  12561. # We preserve .a as extension for shared libraries through AIX4.2
  12562. # and later when we are not doing run time linking.
  12563. library_names_spec='${libname}${release}.a $libname.a'
  12564. soname_spec='${libname}${release}${shared_ext}$major'
  12565. fi
  12566. shlibpath_var=LIBPATH
  12567. fi
  12568. ;;
  12569. amigaos*)
  12570. case $host_cpu in
  12571. powerpc)
  12572. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12573. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12575. ;;
  12576. m68k)
  12577. library_names_spec='$libname.ixlibrary $libname.a'
  12578. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12579. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12580. ;;
  12581. esac
  12582. ;;
  12583. beos*)
  12584. library_names_spec='${libname}${shared_ext}'
  12585. dynamic_linker="$host_os ld.so"
  12586. shlibpath_var=LIBRARY_PATH
  12587. ;;
  12588. bsdi[45]*)
  12589. version_type=linux # correct to gnu/linux during the next big refactor
  12590. need_version=no
  12591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12592. soname_spec='${libname}${release}${shared_ext}$major'
  12593. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12594. shlibpath_var=LD_LIBRARY_PATH
  12595. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12596. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12597. # the default ld.so.conf also contains /usr/contrib/lib and
  12598. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12599. # libtool to hard-code these into programs
  12600. ;;
  12601. cygwin* | mingw* | pw32* | cegcc*)
  12602. version_type=windows
  12603. shrext_cmds=".dll"
  12604. need_version=no
  12605. need_lib_prefix=no
  12606. case $GCC,$cc_basename in
  12607. yes,*)
  12608. # gcc
  12609. library_names_spec='$libname.dll.a'
  12610. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12611. postinstall_cmds='base_file=`basename \${file}`~
  12612. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12613. dldir=$destdir/`dirname \$dlpath`~
  12614. test -d \$dldir || mkdir -p \$dldir~
  12615. $install_prog $dir/$dlname \$dldir/$dlname~
  12616. chmod a+x \$dldir/$dlname~
  12617. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12618. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12619. fi'
  12620. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12621. dlpath=$dir/\$dldll~
  12622. $RM \$dlpath'
  12623. shlibpath_overrides_runpath=yes
  12624. case $host_os in
  12625. cygwin*)
  12626. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12627. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12628. ;;
  12629. mingw* | cegcc*)
  12630. # MinGW DLLs use traditional 'lib' prefix
  12631. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12632. ;;
  12633. pw32*)
  12634. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12635. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12636. ;;
  12637. esac
  12638. dynamic_linker='Win32 ld.exe'
  12639. ;;
  12640. *,cl*)
  12641. # Native MSVC
  12642. libname_spec='$name'
  12643. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12644. library_names_spec='${libname}.dll.lib'
  12645. case $build_os in
  12646. mingw*)
  12647. sys_lib_search_path_spec=
  12648. lt_save_ifs=$IFS
  12649. IFS=';'
  12650. for lt_path in $LIB
  12651. do
  12652. IFS=$lt_save_ifs
  12653. # Let DOS variable expansion print the short 8.3 style file name.
  12654. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12655. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12656. done
  12657. IFS=$lt_save_ifs
  12658. # Convert to MSYS style.
  12659. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12660. ;;
  12661. cygwin*)
  12662. # Convert to unix form, then to dos form, then back to unix form
  12663. # but this time dos style (no spaces!) so that the unix form looks
  12664. # like /cygdrive/c/PROGRA~1:/cygdr...
  12665. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12666. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12667. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12668. ;;
  12669. *)
  12670. sys_lib_search_path_spec="$LIB"
  12671. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12672. # It is most probably a Windows format PATH.
  12673. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12674. else
  12675. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12676. fi
  12677. # FIXME: find the short name or the path components, as spaces are
  12678. # common. (e.g. "Program Files" -> "PROGRA~1")
  12679. ;;
  12680. esac
  12681. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12682. postinstall_cmds='base_file=`basename \${file}`~
  12683. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12684. dldir=$destdir/`dirname \$dlpath`~
  12685. test -d \$dldir || mkdir -p \$dldir~
  12686. $install_prog $dir/$dlname \$dldir/$dlname'
  12687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12688. dlpath=$dir/\$dldll~
  12689. $RM \$dlpath'
  12690. shlibpath_overrides_runpath=yes
  12691. dynamic_linker='Win32 link.exe'
  12692. ;;
  12693. *)
  12694. # Assume MSVC wrapper
  12695. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12696. dynamic_linker='Win32 ld.exe'
  12697. ;;
  12698. esac
  12699. # FIXME: first we should search . and the directory the executable is in
  12700. shlibpath_var=PATH
  12701. ;;
  12702. darwin* | rhapsody*)
  12703. dynamic_linker="$host_os dyld"
  12704. version_type=darwin
  12705. need_lib_prefix=no
  12706. need_version=no
  12707. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12708. soname_spec='${libname}${release}${major}$shared_ext'
  12709. shlibpath_overrides_runpath=yes
  12710. shlibpath_var=DYLD_LIBRARY_PATH
  12711. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12712. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12713. ;;
  12714. dgux*)
  12715. version_type=linux # correct to gnu/linux during the next big refactor
  12716. need_lib_prefix=no
  12717. need_version=no
  12718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12719. soname_spec='${libname}${release}${shared_ext}$major'
  12720. shlibpath_var=LD_LIBRARY_PATH
  12721. ;;
  12722. freebsd* | dragonfly*)
  12723. # DragonFly does not have aout. When/if they implement a new
  12724. # versioning mechanism, adjust this.
  12725. if test -x /usr/bin/objformat; then
  12726. objformat=`/usr/bin/objformat`
  12727. else
  12728. case $host_os in
  12729. freebsd[23].*) objformat=aout ;;
  12730. *) objformat=elf ;;
  12731. esac
  12732. fi
  12733. version_type=freebsd-$objformat
  12734. case $version_type in
  12735. freebsd-elf*)
  12736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12737. need_version=no
  12738. need_lib_prefix=no
  12739. ;;
  12740. freebsd-*)
  12741. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12742. need_version=yes
  12743. ;;
  12744. esac
  12745. shlibpath_var=LD_LIBRARY_PATH
  12746. case $host_os in
  12747. freebsd2.*)
  12748. shlibpath_overrides_runpath=yes
  12749. ;;
  12750. freebsd3.[01]* | freebsdelf3.[01]*)
  12751. shlibpath_overrides_runpath=yes
  12752. hardcode_into_libs=yes
  12753. ;;
  12754. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12755. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12756. shlibpath_overrides_runpath=no
  12757. hardcode_into_libs=yes
  12758. ;;
  12759. *) # from 4.6 on, and DragonFly
  12760. shlibpath_overrides_runpath=yes
  12761. hardcode_into_libs=yes
  12762. ;;
  12763. esac
  12764. ;;
  12765. gnu*)
  12766. version_type=linux # correct to gnu/linux during the next big refactor
  12767. need_lib_prefix=no
  12768. need_version=no
  12769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12770. soname_spec='${libname}${release}${shared_ext}$major'
  12771. shlibpath_var=LD_LIBRARY_PATH
  12772. shlibpath_overrides_runpath=no
  12773. hardcode_into_libs=yes
  12774. ;;
  12775. haiku*)
  12776. version_type=linux # correct to gnu/linux during the next big refactor
  12777. need_lib_prefix=no
  12778. need_version=no
  12779. dynamic_linker="$host_os runtime_loader"
  12780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12781. soname_spec='${libname}${release}${shared_ext}$major'
  12782. shlibpath_var=LIBRARY_PATH
  12783. shlibpath_overrides_runpath=yes
  12784. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12785. hardcode_into_libs=yes
  12786. ;;
  12787. hpux9* | hpux10* | hpux11*)
  12788. # Give a soname corresponding to the major version so that dld.sl refuses to
  12789. # link against other versions.
  12790. version_type=sunos
  12791. need_lib_prefix=no
  12792. need_version=no
  12793. case $host_cpu in
  12794. ia64*)
  12795. shrext_cmds='.so'
  12796. hardcode_into_libs=yes
  12797. dynamic_linker="$host_os dld.so"
  12798. shlibpath_var=LD_LIBRARY_PATH
  12799. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12801. soname_spec='${libname}${release}${shared_ext}$major'
  12802. if test "X$HPUX_IA64_MODE" = X32; then
  12803. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12804. else
  12805. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12806. fi
  12807. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12808. ;;
  12809. hppa*64*)
  12810. shrext_cmds='.sl'
  12811. hardcode_into_libs=yes
  12812. dynamic_linker="$host_os dld.sl"
  12813. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12814. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12816. soname_spec='${libname}${release}${shared_ext}$major'
  12817. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12818. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12819. ;;
  12820. *)
  12821. shrext_cmds='.sl'
  12822. dynamic_linker="$host_os dld.sl"
  12823. shlibpath_var=SHLIB_PATH
  12824. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12826. soname_spec='${libname}${release}${shared_ext}$major'
  12827. ;;
  12828. esac
  12829. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12830. postinstall_cmds='chmod 555 $lib'
  12831. # or fails outright, so override atomically:
  12832. install_override_mode=555
  12833. ;;
  12834. interix[3-9]*)
  12835. version_type=linux # correct to gnu/linux during the next big refactor
  12836. need_lib_prefix=no
  12837. need_version=no
  12838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12839. soname_spec='${libname}${release}${shared_ext}$major'
  12840. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12841. shlibpath_var=LD_LIBRARY_PATH
  12842. shlibpath_overrides_runpath=no
  12843. hardcode_into_libs=yes
  12844. ;;
  12845. irix5* | irix6* | nonstopux*)
  12846. case $host_os in
  12847. nonstopux*) version_type=nonstopux ;;
  12848. *)
  12849. if test "$lt_cv_prog_gnu_ld" = yes; then
  12850. version_type=linux # correct to gnu/linux during the next big refactor
  12851. else
  12852. version_type=irix
  12853. fi ;;
  12854. esac
  12855. need_lib_prefix=no
  12856. need_version=no
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12859. case $host_os in
  12860. irix5* | nonstopux*)
  12861. libsuff= shlibsuff=
  12862. ;;
  12863. *)
  12864. case $LD in # libtool.m4 will add one of these switches to LD
  12865. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12866. libsuff= shlibsuff= libmagic=32-bit;;
  12867. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12868. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12869. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12870. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12871. *) libsuff= shlibsuff= libmagic=never-match;;
  12872. esac
  12873. ;;
  12874. esac
  12875. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12876. shlibpath_overrides_runpath=no
  12877. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12878. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12879. hardcode_into_libs=yes
  12880. ;;
  12881. # No shared lib support for Linux oldld, aout, or coff.
  12882. linux*oldld* | linux*aout* | linux*coff*)
  12883. dynamic_linker=no
  12884. ;;
  12885. # This must be glibc/ELF.
  12886. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12887. version_type=linux # correct to gnu/linux during the next big refactor
  12888. need_lib_prefix=no
  12889. need_version=no
  12890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12891. soname_spec='${libname}${release}${shared_ext}$major'
  12892. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12893. shlibpath_var=LD_LIBRARY_PATH
  12894. shlibpath_overrides_runpath=no
  12895. # Some binutils ld are patched to set DT_RUNPATH
  12896. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12897. $as_echo_n "(cached) " >&6
  12898. else
  12899. lt_cv_shlibpath_overrides_runpath=no
  12900. save_LDFLAGS=$LDFLAGS
  12901. save_libdir=$libdir
  12902. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12903. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12905. /* end confdefs.h. */
  12906. int
  12907. main ()
  12908. {
  12909. ;
  12910. return 0;
  12911. }
  12912. _ACEOF
  12913. if ac_fn_cxx_try_link "$LINENO"; then :
  12914. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12915. lt_cv_shlibpath_overrides_runpath=yes
  12916. fi
  12917. fi
  12918. rm -f core conftest.err conftest.$ac_objext \
  12919. conftest$ac_exeext conftest.$ac_ext
  12920. LDFLAGS=$save_LDFLAGS
  12921. libdir=$save_libdir
  12922. fi
  12923. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12924. # This implies no fast_install, which is unacceptable.
  12925. # Some rework will be needed to allow for fast_install
  12926. # before this can be enabled.
  12927. hardcode_into_libs=yes
  12928. # Append ld.so.conf contents to the search path
  12929. if test -f /etc/ld.so.conf; then
  12930. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12931. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12932. fi
  12933. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12934. # powerpc, because MkLinux only supported shared libraries with the
  12935. # GNU dynamic linker. Since this was broken with cross compilers,
  12936. # most powerpc-linux boxes support dynamic linking these days and
  12937. # people can always --disable-shared, the test was removed, and we
  12938. # assume the GNU/Linux dynamic linker is in use.
  12939. dynamic_linker='GNU/Linux ld.so'
  12940. ;;
  12941. netbsd*)
  12942. version_type=sunos
  12943. need_lib_prefix=no
  12944. need_version=no
  12945. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12947. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12948. dynamic_linker='NetBSD (a.out) ld.so'
  12949. else
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12951. soname_spec='${libname}${release}${shared_ext}$major'
  12952. dynamic_linker='NetBSD ld.elf_so'
  12953. fi
  12954. shlibpath_var=LD_LIBRARY_PATH
  12955. shlibpath_overrides_runpath=yes
  12956. hardcode_into_libs=yes
  12957. ;;
  12958. newsos6)
  12959. version_type=linux # correct to gnu/linux during the next big refactor
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12961. shlibpath_var=LD_LIBRARY_PATH
  12962. shlibpath_overrides_runpath=yes
  12963. ;;
  12964. *nto* | *qnx*)
  12965. version_type=qnx
  12966. need_lib_prefix=no
  12967. need_version=no
  12968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12969. soname_spec='${libname}${release}${shared_ext}$major'
  12970. shlibpath_var=LD_LIBRARY_PATH
  12971. shlibpath_overrides_runpath=no
  12972. hardcode_into_libs=yes
  12973. dynamic_linker='ldqnx.so'
  12974. ;;
  12975. openbsd*)
  12976. version_type=sunos
  12977. sys_lib_dlsearch_path_spec="/usr/lib"
  12978. need_lib_prefix=no
  12979. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12980. case $host_os in
  12981. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12982. *) need_version=no ;;
  12983. esac
  12984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12985. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12986. shlibpath_var=LD_LIBRARY_PATH
  12987. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12988. case $host_os in
  12989. openbsd2.[89] | openbsd2.[89].*)
  12990. shlibpath_overrides_runpath=no
  12991. ;;
  12992. *)
  12993. shlibpath_overrides_runpath=yes
  12994. ;;
  12995. esac
  12996. else
  12997. shlibpath_overrides_runpath=yes
  12998. fi
  12999. ;;
  13000. os2*)
  13001. libname_spec='$name'
  13002. shrext_cmds=".dll"
  13003. need_lib_prefix=no
  13004. library_names_spec='$libname${shared_ext} $libname.a'
  13005. dynamic_linker='OS/2 ld.exe'
  13006. shlibpath_var=LIBPATH
  13007. ;;
  13008. osf3* | osf4* | osf5*)
  13009. version_type=osf
  13010. need_lib_prefix=no
  13011. need_version=no
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13014. shlibpath_var=LD_LIBRARY_PATH
  13015. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13016. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13017. ;;
  13018. rdos*)
  13019. dynamic_linker=no
  13020. ;;
  13021. solaris*)
  13022. version_type=linux # correct to gnu/linux during the next big refactor
  13023. need_lib_prefix=no
  13024. need_version=no
  13025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13026. soname_spec='${libname}${release}${shared_ext}$major'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. shlibpath_overrides_runpath=yes
  13029. hardcode_into_libs=yes
  13030. # ldd complains unless libraries are executable
  13031. postinstall_cmds='chmod +x $lib'
  13032. ;;
  13033. sunos4*)
  13034. version_type=sunos
  13035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13036. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13037. shlibpath_var=LD_LIBRARY_PATH
  13038. shlibpath_overrides_runpath=yes
  13039. if test "$with_gnu_ld" = yes; then
  13040. need_lib_prefix=no
  13041. fi
  13042. need_version=yes
  13043. ;;
  13044. sysv4 | sysv4.3*)
  13045. version_type=linux # correct to gnu/linux during the next big refactor
  13046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13047. soname_spec='${libname}${release}${shared_ext}$major'
  13048. shlibpath_var=LD_LIBRARY_PATH
  13049. case $host_vendor in
  13050. sni)
  13051. shlibpath_overrides_runpath=no
  13052. need_lib_prefix=no
  13053. runpath_var=LD_RUN_PATH
  13054. ;;
  13055. siemens)
  13056. need_lib_prefix=no
  13057. ;;
  13058. motorola)
  13059. need_lib_prefix=no
  13060. need_version=no
  13061. shlibpath_overrides_runpath=no
  13062. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13063. ;;
  13064. esac
  13065. ;;
  13066. sysv4*MP*)
  13067. if test -d /usr/nec ;then
  13068. version_type=linux # correct to gnu/linux during the next big refactor
  13069. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13070. soname_spec='$libname${shared_ext}.$major'
  13071. shlibpath_var=LD_LIBRARY_PATH
  13072. fi
  13073. ;;
  13074. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13075. version_type=freebsd-elf
  13076. need_lib_prefix=no
  13077. need_version=no
  13078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13079. soname_spec='${libname}${release}${shared_ext}$major'
  13080. shlibpath_var=LD_LIBRARY_PATH
  13081. shlibpath_overrides_runpath=yes
  13082. hardcode_into_libs=yes
  13083. if test "$with_gnu_ld" = yes; then
  13084. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13085. else
  13086. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13087. case $host_os in
  13088. sco3.2v5*)
  13089. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13090. ;;
  13091. esac
  13092. fi
  13093. sys_lib_dlsearch_path_spec='/usr/lib'
  13094. ;;
  13095. tpf*)
  13096. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13097. version_type=linux # correct to gnu/linux during the next big refactor
  13098. need_lib_prefix=no
  13099. need_version=no
  13100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13101. shlibpath_var=LD_LIBRARY_PATH
  13102. shlibpath_overrides_runpath=no
  13103. hardcode_into_libs=yes
  13104. ;;
  13105. uts4*)
  13106. version_type=linux # correct to gnu/linux during the next big refactor
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13108. soname_spec='${libname}${release}${shared_ext}$major'
  13109. shlibpath_var=LD_LIBRARY_PATH
  13110. ;;
  13111. *)
  13112. dynamic_linker=no
  13113. ;;
  13114. esac
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13116. $as_echo "$dynamic_linker" >&6; }
  13117. test "$dynamic_linker" = no && can_build_shared=no
  13118. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13119. if test "$GCC" = yes; then
  13120. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13121. fi
  13122. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13123. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13124. fi
  13125. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13126. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13127. fi
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13129. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13130. hardcode_action_CXX=
  13131. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13132. test -n "$runpath_var_CXX" ||
  13133. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13134. # We can hardcode non-existent directories.
  13135. if test "$hardcode_direct_CXX" != no &&
  13136. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13137. # have to relink, otherwise we might link with an installed library
  13138. # when we should be linking with a yet-to-be-installed one
  13139. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13140. test "$hardcode_minus_L_CXX" != no; then
  13141. # Linking always hardcodes the temporary library directory.
  13142. hardcode_action_CXX=relink
  13143. else
  13144. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13145. hardcode_action_CXX=immediate
  13146. fi
  13147. else
  13148. # We cannot hardcode anything, or else we can only hardcode existing
  13149. # directories.
  13150. hardcode_action_CXX=unsupported
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13153. $as_echo "$hardcode_action_CXX" >&6; }
  13154. if test "$hardcode_action_CXX" = relink ||
  13155. test "$inherit_rpath_CXX" = yes; then
  13156. # Fast installation is not supported
  13157. enable_fast_install=no
  13158. elif test "$shlibpath_overrides_runpath" = yes ||
  13159. test "$enable_shared" = no; then
  13160. # Fast installation is not necessary
  13161. enable_fast_install=needless
  13162. fi
  13163. fi # test -n "$compiler"
  13164. CC=$lt_save_CC
  13165. CFLAGS=$lt_save_CFLAGS
  13166. LDCXX=$LD
  13167. LD=$lt_save_LD
  13168. GCC=$lt_save_GCC
  13169. with_gnu_ld=$lt_save_with_gnu_ld
  13170. lt_cv_path_LDCXX=$lt_cv_path_LD
  13171. lt_cv_path_LD=$lt_save_path_LD
  13172. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13173. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13174. fi # test "$_lt_caught_CXX_error" != yes
  13175. ac_ext=c
  13176. ac_cpp='$CPP $CPPFLAGS'
  13177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13180. ac_config_commands="$ac_config_commands libtool"
  13181. # Only expand once:
  13182. ac_config_headers="$ac_config_headers config.h"
  13183. am__api_version='1.11'
  13184. # Find a good install program. We prefer a C program (faster),
  13185. # so one script is as good as another. But avoid the broken or
  13186. # incompatible versions:
  13187. # SysV /etc/install, /usr/sbin/install
  13188. # SunOS /usr/etc/install
  13189. # IRIX /sbin/install
  13190. # AIX /bin/install
  13191. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13192. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13193. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13194. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13195. # OS/2's system install, which has a completely different semantic
  13196. # ./install, which can be erroneously created by make from ./install.sh.
  13197. # Reject install programs that cannot install multiple files.
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13199. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13200. if test -z "$INSTALL"; then
  13201. if ${ac_cv_path_install+:} false; then :
  13202. $as_echo_n "(cached) " >&6
  13203. else
  13204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13205. for as_dir in $PATH
  13206. do
  13207. IFS=$as_save_IFS
  13208. test -z "$as_dir" && as_dir=.
  13209. # Account for people who put trailing slashes in PATH elements.
  13210. case $as_dir/ in #((
  13211. ./ | .// | /[cC]/* | \
  13212. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13213. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13214. /usr/ucb/* ) ;;
  13215. *)
  13216. # OSF1 and SCO ODT 3.0 have their own names for install.
  13217. # Don't use installbsd from OSF since it installs stuff as root
  13218. # by default.
  13219. for ac_prog in ginstall scoinst install; do
  13220. for ac_exec_ext in '' $ac_executable_extensions; do
  13221. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13222. if test $ac_prog = install &&
  13223. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13224. # AIX install. It has an incompatible calling convention.
  13225. :
  13226. elif test $ac_prog = install &&
  13227. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13228. # program-specific install script used by HP pwplus--don't use.
  13229. :
  13230. else
  13231. rm -rf conftest.one conftest.two conftest.dir
  13232. echo one > conftest.one
  13233. echo two > conftest.two
  13234. mkdir conftest.dir
  13235. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13236. test -s conftest.one && test -s conftest.two &&
  13237. test -s conftest.dir/conftest.one &&
  13238. test -s conftest.dir/conftest.two
  13239. then
  13240. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13241. break 3
  13242. fi
  13243. fi
  13244. fi
  13245. done
  13246. done
  13247. ;;
  13248. esac
  13249. done
  13250. IFS=$as_save_IFS
  13251. rm -rf conftest.one conftest.two conftest.dir
  13252. fi
  13253. if test "${ac_cv_path_install+set}" = set; then
  13254. INSTALL=$ac_cv_path_install
  13255. else
  13256. # As a last resort, use the slow shell script. Don't cache a
  13257. # value for INSTALL within a source directory, because that will
  13258. # break other packages using the cache if that directory is
  13259. # removed, or if the value is a relative name.
  13260. INSTALL=$ac_install_sh
  13261. fi
  13262. fi
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13264. $as_echo "$INSTALL" >&6; }
  13265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13266. # It thinks the first close brace ends the variable substitution.
  13267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13271. $as_echo_n "checking whether build environment is sane... " >&6; }
  13272. # Just in case
  13273. sleep 1
  13274. echo timestamp > conftest.file
  13275. # Reject unsafe characters in $srcdir or the absolute working directory
  13276. # name. Accept space and tab only in the latter.
  13277. am_lf='
  13278. '
  13279. case `pwd` in
  13280. *[\\\"\#\$\&\'\`$am_lf]*)
  13281. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13282. esac
  13283. case $srcdir in
  13284. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13285. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13286. esac
  13287. # Do `set' in a subshell so we don't clobber the current shell's
  13288. # arguments. Must try -L first in case configure is actually a
  13289. # symlink; some systems play weird games with the mod time of symlinks
  13290. # (eg FreeBSD returns the mod time of the symlink's containing
  13291. # directory).
  13292. if (
  13293. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13294. if test "$*" = "X"; then
  13295. # -L didn't work.
  13296. set X `ls -t "$srcdir/configure" conftest.file`
  13297. fi
  13298. rm -f conftest.file
  13299. if test "$*" != "X $srcdir/configure conftest.file" \
  13300. && test "$*" != "X conftest.file $srcdir/configure"; then
  13301. # If neither matched, then we have a broken ls. This can happen
  13302. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13303. # broken ls alias from the environment. This has actually
  13304. # happened. Such a system could not be considered "sane".
  13305. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13306. alias in your environment" "$LINENO" 5
  13307. fi
  13308. test "$2" = conftest.file
  13309. )
  13310. then
  13311. # Ok.
  13312. :
  13313. else
  13314. as_fn_error $? "newly created file is older than distributed files!
  13315. Check your system clock" "$LINENO" 5
  13316. fi
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13318. $as_echo "yes" >&6; }
  13319. test "$program_prefix" != NONE &&
  13320. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13321. # Use a double $ so make ignores it.
  13322. test "$program_suffix" != NONE &&
  13323. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13324. # Double any \ or $.
  13325. # By default was `s,x,x', remove it if useless.
  13326. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13327. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13328. # expand $ac_aux_dir to an absolute path
  13329. am_aux_dir=`cd $ac_aux_dir && pwd`
  13330. if test x"${MISSING+set}" != xset; then
  13331. case $am_aux_dir in
  13332. *\ * | *\ *)
  13333. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13334. *)
  13335. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13336. esac
  13337. fi
  13338. # Use eval to expand $SHELL
  13339. if eval "$MISSING --run true"; then
  13340. am_missing_run="$MISSING --run "
  13341. else
  13342. am_missing_run=
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13344. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13345. fi
  13346. if test x"${install_sh}" != xset; then
  13347. case $am_aux_dir in
  13348. *\ * | *\ *)
  13349. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13350. *)
  13351. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13352. esac
  13353. fi
  13354. # Installed binaries are usually stripped using `strip' when the user
  13355. # run `make install-strip'. However `strip' might not be the right
  13356. # tool to use in cross-compilation environments, therefore Automake
  13357. # will honor the `STRIP' environment variable to overrule this program.
  13358. if test "$cross_compiling" != no; then
  13359. if test -n "$ac_tool_prefix"; then
  13360. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13361. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13363. $as_echo_n "checking for $ac_word... " >&6; }
  13364. if ${ac_cv_prog_STRIP+:} false; then :
  13365. $as_echo_n "(cached) " >&6
  13366. else
  13367. if test -n "$STRIP"; then
  13368. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13369. else
  13370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13371. for as_dir in $PATH
  13372. do
  13373. IFS=$as_save_IFS
  13374. test -z "$as_dir" && as_dir=.
  13375. for ac_exec_ext in '' $ac_executable_extensions; do
  13376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13377. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13379. break 2
  13380. fi
  13381. done
  13382. done
  13383. IFS=$as_save_IFS
  13384. fi
  13385. fi
  13386. STRIP=$ac_cv_prog_STRIP
  13387. if test -n "$STRIP"; then
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13389. $as_echo "$STRIP" >&6; }
  13390. else
  13391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13392. $as_echo "no" >&6; }
  13393. fi
  13394. fi
  13395. if test -z "$ac_cv_prog_STRIP"; then
  13396. ac_ct_STRIP=$STRIP
  13397. # Extract the first word of "strip", so it can be a program name with args.
  13398. set dummy strip; ac_word=$2
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13400. $as_echo_n "checking for $ac_word... " >&6; }
  13401. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13402. $as_echo_n "(cached) " >&6
  13403. else
  13404. if test -n "$ac_ct_STRIP"; then
  13405. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13406. else
  13407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13408. for as_dir in $PATH
  13409. do
  13410. IFS=$as_save_IFS
  13411. test -z "$as_dir" && as_dir=.
  13412. for ac_exec_ext in '' $ac_executable_extensions; do
  13413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13414. ac_cv_prog_ac_ct_STRIP="strip"
  13415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13416. break 2
  13417. fi
  13418. done
  13419. done
  13420. IFS=$as_save_IFS
  13421. fi
  13422. fi
  13423. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13424. if test -n "$ac_ct_STRIP"; then
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13426. $as_echo "$ac_ct_STRIP" >&6; }
  13427. else
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13429. $as_echo "no" >&6; }
  13430. fi
  13431. if test "x$ac_ct_STRIP" = x; then
  13432. STRIP=":"
  13433. else
  13434. case $cross_compiling:$ac_tool_warned in
  13435. yes:)
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13438. ac_tool_warned=yes ;;
  13439. esac
  13440. STRIP=$ac_ct_STRIP
  13441. fi
  13442. else
  13443. STRIP="$ac_cv_prog_STRIP"
  13444. fi
  13445. fi
  13446. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13448. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13449. if test -z "$MKDIR_P"; then
  13450. if ${ac_cv_path_mkdir+:} false; then :
  13451. $as_echo_n "(cached) " >&6
  13452. else
  13453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13454. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13455. do
  13456. IFS=$as_save_IFS
  13457. test -z "$as_dir" && as_dir=.
  13458. for ac_prog in mkdir gmkdir; do
  13459. for ac_exec_ext in '' $ac_executable_extensions; do
  13460. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13461. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13462. 'mkdir (GNU coreutils) '* | \
  13463. 'mkdir (coreutils) '* | \
  13464. 'mkdir (fileutils) '4.1*)
  13465. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13466. break 3;;
  13467. esac
  13468. done
  13469. done
  13470. done
  13471. IFS=$as_save_IFS
  13472. fi
  13473. test -d ./--version && rmdir ./--version
  13474. if test "${ac_cv_path_mkdir+set}" = set; then
  13475. MKDIR_P="$ac_cv_path_mkdir -p"
  13476. else
  13477. # As a last resort, use the slow shell script. Don't cache a
  13478. # value for MKDIR_P within a source directory, because that will
  13479. # break other packages using the cache if that directory is
  13480. # removed, or if the value is a relative name.
  13481. MKDIR_P="$ac_install_sh -d"
  13482. fi
  13483. fi
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13485. $as_echo "$MKDIR_P" >&6; }
  13486. mkdir_p="$MKDIR_P"
  13487. case $mkdir_p in
  13488. [\\/$]* | ?:[\\/]*) ;;
  13489. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13490. esac
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13492. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13493. set x ${MAKE-make}
  13494. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13495. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13496. $as_echo_n "(cached) " >&6
  13497. else
  13498. cat >conftest.make <<\_ACEOF
  13499. SHELL = /bin/sh
  13500. all:
  13501. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13502. _ACEOF
  13503. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13504. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13505. *@@@%%%=?*=@@@%%%*)
  13506. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13507. *)
  13508. eval ac_cv_prog_make_${ac_make}_set=no;;
  13509. esac
  13510. rm -f conftest.make
  13511. fi
  13512. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13514. $as_echo "yes" >&6; }
  13515. SET_MAKE=
  13516. else
  13517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13518. $as_echo "no" >&6; }
  13519. SET_MAKE="MAKE=${MAKE-make}"
  13520. fi
  13521. rm -rf .tst 2>/dev/null
  13522. mkdir .tst 2>/dev/null
  13523. if test -d .tst; then
  13524. am__leading_dot=.
  13525. else
  13526. am__leading_dot=_
  13527. fi
  13528. rmdir .tst 2>/dev/null
  13529. DEPDIR="${am__leading_dot}deps"
  13530. ac_config_commands="$ac_config_commands depfiles"
  13531. am_make=${MAKE-make}
  13532. cat > confinc << 'END'
  13533. am__doit:
  13534. @echo this is the am__doit target
  13535. .PHONY: am__doit
  13536. END
  13537. # If we don't find an include directive, just comment out the code.
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13539. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13540. am__include="#"
  13541. am__quote=
  13542. _am_result=none
  13543. # First try GNU make style include.
  13544. echo "include confinc" > confmf
  13545. # Ignore all kinds of additional output from `make'.
  13546. case `$am_make -s -f confmf 2> /dev/null` in #(
  13547. *the\ am__doit\ target*)
  13548. am__include=include
  13549. am__quote=
  13550. _am_result=GNU
  13551. ;;
  13552. esac
  13553. # Now try BSD make style include.
  13554. if test "$am__include" = "#"; then
  13555. echo '.include "confinc"' > confmf
  13556. case `$am_make -s -f confmf 2> /dev/null` in #(
  13557. *the\ am__doit\ target*)
  13558. am__include=.include
  13559. am__quote="\""
  13560. _am_result=BSD
  13561. ;;
  13562. esac
  13563. fi
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13565. $as_echo "$_am_result" >&6; }
  13566. rm -f confinc confmf
  13567. # Check whether --enable-dependency-tracking was given.
  13568. if test "${enable_dependency_tracking+set}" = set; then :
  13569. enableval=$enable_dependency_tracking;
  13570. fi
  13571. if test "x$enable_dependency_tracking" != xno; then
  13572. am_depcomp="$ac_aux_dir/depcomp"
  13573. AMDEPBACKSLASH='\'
  13574. am__nodep='_no'
  13575. fi
  13576. if test "x$enable_dependency_tracking" != xno; then
  13577. AMDEP_TRUE=
  13578. AMDEP_FALSE='#'
  13579. else
  13580. AMDEP_TRUE='#'
  13581. AMDEP_FALSE=
  13582. fi
  13583. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13584. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13585. # is not polluted with repeated "-I."
  13586. am__isrc=' -I$(srcdir)'
  13587. # test to see if srcdir already configured
  13588. if test -f $srcdir/config.status; then
  13589. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13590. fi
  13591. fi
  13592. # test whether we have cygpath
  13593. if test -z "$CYGPATH_W"; then
  13594. if (cygpath --version) >/dev/null 2>/dev/null; then
  13595. CYGPATH_W='cygpath -w'
  13596. else
  13597. CYGPATH_W=echo
  13598. fi
  13599. fi
  13600. # Define the identity of the package.
  13601. PACKAGE='klish'
  13602. VERSION='1.5.3'
  13603. cat >>confdefs.h <<_ACEOF
  13604. #define PACKAGE "$PACKAGE"
  13605. _ACEOF
  13606. cat >>confdefs.h <<_ACEOF
  13607. #define VERSION "$VERSION"
  13608. _ACEOF
  13609. # Some tools Automake needs.
  13610. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13611. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13612. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13613. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13614. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13615. # We need awk for the "check" target. The system "awk" is bad on
  13616. # some platforms.
  13617. # Always define AMTAR for backward compatibility. Yes, it's still used
  13618. # in the wild :-( We should find a proper way to deprecate it ...
  13619. AMTAR='$${TAR-tar}'
  13620. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13621. depcc="$CC" am_compiler_list=
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13623. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13624. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13625. $as_echo_n "(cached) " >&6
  13626. else
  13627. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13628. # We make a subdir and do the tests there. Otherwise we can end up
  13629. # making bogus files that we don't know about and never remove. For
  13630. # instance it was reported that on HP-UX the gcc test will end up
  13631. # making a dummy file named `D' -- because `-MD' means `put the output
  13632. # in D'.
  13633. rm -rf conftest.dir
  13634. mkdir conftest.dir
  13635. # Copy depcomp to subdir because otherwise we won't find it if we're
  13636. # using a relative directory.
  13637. cp "$am_depcomp" conftest.dir
  13638. cd conftest.dir
  13639. # We will build objects and dependencies in a subdirectory because
  13640. # it helps to detect inapplicable dependency modes. For instance
  13641. # both Tru64's cc and ICC support -MD to output dependencies as a
  13642. # side effect of compilation, but ICC will put the dependencies in
  13643. # the current directory while Tru64 will put them in the object
  13644. # directory.
  13645. mkdir sub
  13646. am_cv_CC_dependencies_compiler_type=none
  13647. if test "$am_compiler_list" = ""; then
  13648. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13649. fi
  13650. am__universal=false
  13651. case " $depcc " in #(
  13652. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13653. esac
  13654. for depmode in $am_compiler_list; do
  13655. # Setup a source with many dependencies, because some compilers
  13656. # like to wrap large dependency lists on column 80 (with \), and
  13657. # we should not choose a depcomp mode which is confused by this.
  13658. #
  13659. # We need to recreate these files for each test, as the compiler may
  13660. # overwrite some of them when testing with obscure command lines.
  13661. # This happens at least with the AIX C compiler.
  13662. : > sub/conftest.c
  13663. for i in 1 2 3 4 5 6; do
  13664. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13665. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13666. # Solaris 8's {/usr,}/bin/sh.
  13667. touch sub/conftst$i.h
  13668. done
  13669. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13670. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13671. # mode. It turns out that the SunPro C++ compiler does not properly
  13672. # handle `-M -o', and we need to detect this. Also, some Intel
  13673. # versions had trouble with output in subdirs
  13674. am__obj=sub/conftest.${OBJEXT-o}
  13675. am__minus_obj="-o $am__obj"
  13676. case $depmode in
  13677. gcc)
  13678. # This depmode causes a compiler race in universal mode.
  13679. test "$am__universal" = false || continue
  13680. ;;
  13681. nosideeffect)
  13682. # after this tag, mechanisms are not by side-effect, so they'll
  13683. # only be used when explicitly requested
  13684. if test "x$enable_dependency_tracking" = xyes; then
  13685. continue
  13686. else
  13687. break
  13688. fi
  13689. ;;
  13690. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13691. # This compiler won't grok `-c -o', but also, the minuso test has
  13692. # not run yet. These depmodes are late enough in the game, and
  13693. # so weak that their functioning should not be impacted.
  13694. am__obj=conftest.${OBJEXT-o}
  13695. am__minus_obj=
  13696. ;;
  13697. none) break ;;
  13698. esac
  13699. if depmode=$depmode \
  13700. source=sub/conftest.c object=$am__obj \
  13701. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13702. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13703. >/dev/null 2>conftest.err &&
  13704. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13705. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13706. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13707. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13708. # icc doesn't choke on unknown options, it will just issue warnings
  13709. # or remarks (even with -Werror). So we grep stderr for any message
  13710. # that says an option was ignored or not supported.
  13711. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13712. # icc: Command line warning: ignoring option '-M'; no argument required
  13713. # The diagnosis changed in icc 8.0:
  13714. # icc: Command line remark: option '-MP' not supported
  13715. if (grep 'ignoring option' conftest.err ||
  13716. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13717. am_cv_CC_dependencies_compiler_type=$depmode
  13718. break
  13719. fi
  13720. fi
  13721. done
  13722. cd ..
  13723. rm -rf conftest.dir
  13724. else
  13725. am_cv_CC_dependencies_compiler_type=none
  13726. fi
  13727. fi
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13729. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13730. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13731. if
  13732. test "x$enable_dependency_tracking" != xno \
  13733. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13734. am__fastdepCC_TRUE=
  13735. am__fastdepCC_FALSE='#'
  13736. else
  13737. am__fastdepCC_TRUE='#'
  13738. am__fastdepCC_FALSE=
  13739. fi
  13740. depcc="$CXX" am_compiler_list=
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13742. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13743. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13744. $as_echo_n "(cached) " >&6
  13745. else
  13746. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13747. # We make a subdir and do the tests there. Otherwise we can end up
  13748. # making bogus files that we don't know about and never remove. For
  13749. # instance it was reported that on HP-UX the gcc test will end up
  13750. # making a dummy file named `D' -- because `-MD' means `put the output
  13751. # in D'.
  13752. rm -rf conftest.dir
  13753. mkdir conftest.dir
  13754. # Copy depcomp to subdir because otherwise we won't find it if we're
  13755. # using a relative directory.
  13756. cp "$am_depcomp" conftest.dir
  13757. cd conftest.dir
  13758. # We will build objects and dependencies in a subdirectory because
  13759. # it helps to detect inapplicable dependency modes. For instance
  13760. # both Tru64's cc and ICC support -MD to output dependencies as a
  13761. # side effect of compilation, but ICC will put the dependencies in
  13762. # the current directory while Tru64 will put them in the object
  13763. # directory.
  13764. mkdir sub
  13765. am_cv_CXX_dependencies_compiler_type=none
  13766. if test "$am_compiler_list" = ""; then
  13767. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13768. fi
  13769. am__universal=false
  13770. case " $depcc " in #(
  13771. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13772. esac
  13773. for depmode in $am_compiler_list; do
  13774. # Setup a source with many dependencies, because some compilers
  13775. # like to wrap large dependency lists on column 80 (with \), and
  13776. # we should not choose a depcomp mode which is confused by this.
  13777. #
  13778. # We need to recreate these files for each test, as the compiler may
  13779. # overwrite some of them when testing with obscure command lines.
  13780. # This happens at least with the AIX C compiler.
  13781. : > sub/conftest.c
  13782. for i in 1 2 3 4 5 6; do
  13783. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13784. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13785. # Solaris 8's {/usr,}/bin/sh.
  13786. touch sub/conftst$i.h
  13787. done
  13788. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13789. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13790. # mode. It turns out that the SunPro C++ compiler does not properly
  13791. # handle `-M -o', and we need to detect this. Also, some Intel
  13792. # versions had trouble with output in subdirs
  13793. am__obj=sub/conftest.${OBJEXT-o}
  13794. am__minus_obj="-o $am__obj"
  13795. case $depmode in
  13796. gcc)
  13797. # This depmode causes a compiler race in universal mode.
  13798. test "$am__universal" = false || continue
  13799. ;;
  13800. nosideeffect)
  13801. # after this tag, mechanisms are not by side-effect, so they'll
  13802. # only be used when explicitly requested
  13803. if test "x$enable_dependency_tracking" = xyes; then
  13804. continue
  13805. else
  13806. break
  13807. fi
  13808. ;;
  13809. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13810. # This compiler won't grok `-c -o', but also, the minuso test has
  13811. # not run yet. These depmodes are late enough in the game, and
  13812. # so weak that their functioning should not be impacted.
  13813. am__obj=conftest.${OBJEXT-o}
  13814. am__minus_obj=
  13815. ;;
  13816. none) break ;;
  13817. esac
  13818. if depmode=$depmode \
  13819. source=sub/conftest.c object=$am__obj \
  13820. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13821. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13822. >/dev/null 2>conftest.err &&
  13823. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13824. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13825. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13826. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13827. # icc doesn't choke on unknown options, it will just issue warnings
  13828. # or remarks (even with -Werror). So we grep stderr for any message
  13829. # that says an option was ignored or not supported.
  13830. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13831. # icc: Command line warning: ignoring option '-M'; no argument required
  13832. # The diagnosis changed in icc 8.0:
  13833. # icc: Command line remark: option '-MP' not supported
  13834. if (grep 'ignoring option' conftest.err ||
  13835. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13836. am_cv_CXX_dependencies_compiler_type=$depmode
  13837. break
  13838. fi
  13839. fi
  13840. done
  13841. cd ..
  13842. rm -rf conftest.dir
  13843. else
  13844. am_cv_CXX_dependencies_compiler_type=none
  13845. fi
  13846. fi
  13847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13848. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13849. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13850. if
  13851. test "x$enable_dependency_tracking" != xno \
  13852. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13853. am__fastdepCXX_TRUE=
  13854. am__fastdepCXX_FALSE='#'
  13855. else
  13856. am__fastdepCXX_TRUE='#'
  13857. am__fastdepCXX_FALSE=
  13858. fi
  13859. if test "x$CC" != xcc; then
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13861. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13862. else
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13864. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13865. fi
  13866. set dummy $CC; ac_cc=`$as_echo "$2" |
  13867. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13868. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13869. $as_echo_n "(cached) " >&6
  13870. else
  13871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13872. /* end confdefs.h. */
  13873. int
  13874. main ()
  13875. {
  13876. ;
  13877. return 0;
  13878. }
  13879. _ACEOF
  13880. # Make sure it works both with $CC and with simple cc.
  13881. # We do the test twice because some compilers refuse to overwrite an
  13882. # existing .o file with -o, though they will create one.
  13883. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13884. rm -f conftest2.*
  13885. if { { case "(($ac_try" in
  13886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13887. *) ac_try_echo=$ac_try;;
  13888. esac
  13889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13890. $as_echo "$ac_try_echo"; } >&5
  13891. (eval "$ac_try") 2>&5
  13892. ac_status=$?
  13893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13894. test $ac_status = 0; } &&
  13895. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13897. *) ac_try_echo=$ac_try;;
  13898. esac
  13899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13900. $as_echo "$ac_try_echo"; } >&5
  13901. (eval "$ac_try") 2>&5
  13902. ac_status=$?
  13903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13904. test $ac_status = 0; };
  13905. then
  13906. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13907. if test "x$CC" != xcc; then
  13908. # Test first that cc exists at all.
  13909. if { ac_try='cc -c conftest.$ac_ext >&5'
  13910. { { case "(($ac_try" in
  13911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13912. *) ac_try_echo=$ac_try;;
  13913. esac
  13914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13915. $as_echo "$ac_try_echo"; } >&5
  13916. (eval "$ac_try") 2>&5
  13917. ac_status=$?
  13918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13919. test $ac_status = 0; }; }; then
  13920. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13921. rm -f conftest2.*
  13922. if { { case "(($ac_try" in
  13923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13924. *) ac_try_echo=$ac_try;;
  13925. esac
  13926. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13927. $as_echo "$ac_try_echo"; } >&5
  13928. (eval "$ac_try") 2>&5
  13929. ac_status=$?
  13930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13931. test $ac_status = 0; } &&
  13932. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13934. *) ac_try_echo=$ac_try;;
  13935. esac
  13936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13937. $as_echo "$ac_try_echo"; } >&5
  13938. (eval "$ac_try") 2>&5
  13939. ac_status=$?
  13940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13941. test $ac_status = 0; };
  13942. then
  13943. # cc works too.
  13944. :
  13945. else
  13946. # cc exists but doesn't like -o.
  13947. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13948. fi
  13949. fi
  13950. fi
  13951. else
  13952. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13953. fi
  13954. rm -f core conftest*
  13955. fi
  13956. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13958. $as_echo "yes" >&6; }
  13959. else
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13961. $as_echo "no" >&6; }
  13962. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13963. fi
  13964. # FIXME: we rely on the cache variable name because
  13965. # there is no other way.
  13966. set dummy $CC
  13967. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13968. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13969. if test "$am_t" != yes; then
  13970. # Losing compiler, so override with the script.
  13971. # FIXME: It is wrong to rewrite CC.
  13972. # But if we don't then we get into trouble of one sort or another.
  13973. # A longer-term fix would be to have automake use am__CC in this case,
  13974. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13975. CC="$am_aux_dir/compile $CC"
  13976. fi
  13977. # needed to handle 64-bit architecture
  13978. # The cast to long int works around a bug in the HP C Compiler
  13979. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13980. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13981. # This bug is HP SR number 8606223364.
  13982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13983. $as_echo_n "checking size of int... " >&6; }
  13984. if ${ac_cv_sizeof_int+:} false; then :
  13985. $as_echo_n "(cached) " >&6
  13986. else
  13987. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13988. else
  13989. if test "$ac_cv_type_int" = yes; then
  13990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13992. as_fn_error 77 "cannot compute sizeof (int)
  13993. See \`config.log' for more details" "$LINENO" 5; }
  13994. else
  13995. ac_cv_sizeof_int=0
  13996. fi
  13997. fi
  13998. fi
  13999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14000. $as_echo "$ac_cv_sizeof_int" >&6; }
  14001. cat >>confdefs.h <<_ACEOF
  14002. #define SIZEOF_INT $ac_cv_sizeof_int
  14003. _ACEOF
  14004. # The cast to long int works around a bug in the HP C Compiler
  14005. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14006. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14007. # This bug is HP SR number 8606223364.
  14008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14009. $as_echo_n "checking size of long... " >&6; }
  14010. if ${ac_cv_sizeof_long+:} false; then :
  14011. $as_echo_n "(cached) " >&6
  14012. else
  14013. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14014. else
  14015. if test "$ac_cv_type_long" = yes; then
  14016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14018. as_fn_error 77 "cannot compute sizeof (long)
  14019. See \`config.log' for more details" "$LINENO" 5; }
  14020. else
  14021. ac_cv_sizeof_long=0
  14022. fi
  14023. fi
  14024. fi
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14026. $as_echo "$ac_cv_sizeof_long" >&6; }
  14027. cat >>confdefs.h <<_ACEOF
  14028. #define SIZEOF_LONG $ac_cv_sizeof_long
  14029. _ACEOF
  14030. # The cast to long int works around a bug in the HP C Compiler
  14031. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14032. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14033. # This bug is HP SR number 8606223364.
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14035. $as_echo_n "checking size of size_t... " >&6; }
  14036. if ${ac_cv_sizeof_size_t+:} false; then :
  14037. $as_echo_n "(cached) " >&6
  14038. else
  14039. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14040. else
  14041. if test "$ac_cv_type_size_t" = yes; then
  14042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14044. as_fn_error 77 "cannot compute sizeof (size_t)
  14045. See \`config.log' for more details" "$LINENO" 5; }
  14046. else
  14047. ac_cv_sizeof_size_t=0
  14048. fi
  14049. fi
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14052. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14053. cat >>confdefs.h <<_ACEOF
  14054. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14055. _ACEOF
  14056. #------------------------------------------------------------------------
  14057. # Handle the --prefix=... option
  14058. #------------------------------------------------------------------------
  14059. if test "${prefix}" = "NONE"; then
  14060. prefix=/usr/local
  14061. fi
  14062. if test "${exec_prefix}" = "NONE"; then
  14063. exec_prefix=$prefix
  14064. fi
  14065. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14066. eval libdir="$libdir"
  14067. ################################
  14068. # Deal with debugging options
  14069. ################################
  14070. # Check whether --enable-debug was given.
  14071. if test "${enable_debug+set}" = set; then :
  14072. enableval=$enable_debug;
  14073. else
  14074. enable_debug=no
  14075. fi
  14076. if test x$enable_debug = xyes; then
  14077. DEBUG_TRUE=
  14078. DEBUG_FALSE='#'
  14079. else
  14080. DEBUG_TRUE='#'
  14081. DEBUG_FALSE=
  14082. fi
  14083. ################################
  14084. # Check for the LUB library
  14085. ################################
  14086. LUB_LIBS="-llub"
  14087. LUB_CFLAGS=""
  14088. if test "x$LUB_LIBS" = "x"; then
  14089. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14090. fi
  14091. ################################
  14092. # Check for the KONF library
  14093. ################################
  14094. KONF_LIBS="-lkonf"
  14095. KONF_CFLAGS=""
  14096. if test "x$KONF_LIBS" = "x"; then
  14097. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14098. fi
  14099. ################################
  14100. # Check for the TINYRL library
  14101. ################################
  14102. TINYRL_LIBS="-ltinyrl"
  14103. TINYRL_CFLAGS=""
  14104. if test "x$TINYRL_LIBS" = "x"; then
  14105. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14106. fi
  14107. ################################
  14108. # Check for the TINYXML library
  14109. ################################
  14110. TINYXML_LIBS="-ltinyxml"
  14111. TINYXML_CXXFLAGS="-std=gnu++98"
  14112. if test "x$TINYXML_LIBS" = "x"; then
  14113. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14114. fi
  14115. ################################
  14116. # Check for the PTHREAD library
  14117. ################################
  14118. #C_ARG_WITH(pthread,
  14119. # [AS_HELP_STRING([--with-pthread=DIR],
  14120. # [Use POSIX threads library distribution in DIR])
  14121. # ])
  14122. for ac_header in pthread.h
  14123. do :
  14124. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  14125. if test "x$ac_cv_header_pthread_h" = xyes; then :
  14126. cat >>confdefs.h <<_ACEOF
  14127. #define HAVE_PTHREAD_H 1
  14128. _ACEOF
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  14130. $as_echo_n "checking for library containing pthread_create... " >&6; }
  14131. if ${ac_cv_search_pthread_create+:} false; then :
  14132. $as_echo_n "(cached) " >&6
  14133. else
  14134. ac_func_search_save_LIBS=$LIBS
  14135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14136. /* end confdefs.h. */
  14137. /* Override any GCC internal prototype to avoid an error.
  14138. Use char because int might match the return type of a GCC
  14139. builtin and then its argument prototype would still apply. */
  14140. #ifdef __cplusplus
  14141. extern "C"
  14142. #endif
  14143. char pthread_create ();
  14144. int
  14145. main ()
  14146. {
  14147. return pthread_create ();
  14148. ;
  14149. return 0;
  14150. }
  14151. _ACEOF
  14152. for ac_lib in '' pthread; do
  14153. if test -z "$ac_lib"; then
  14154. ac_res="none required"
  14155. else
  14156. ac_res=-l$ac_lib
  14157. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14158. fi
  14159. if ac_fn_c_try_link "$LINENO"; then :
  14160. ac_cv_search_pthread_create=$ac_res
  14161. fi
  14162. rm -f core conftest.err conftest.$ac_objext \
  14163. conftest$ac_exeext
  14164. if ${ac_cv_search_pthread_create+:} false; then :
  14165. break
  14166. fi
  14167. done
  14168. if ${ac_cv_search_pthread_create+:} false; then :
  14169. else
  14170. ac_cv_search_pthread_create=no
  14171. fi
  14172. rm conftest.$ac_ext
  14173. LIBS=$ac_func_search_save_LIBS
  14174. fi
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  14176. $as_echo "$ac_cv_search_pthread_create" >&6; }
  14177. ac_res=$ac_cv_search_pthread_create
  14178. if test "$ac_res" != no; then :
  14179. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14180. else
  14181. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  14182. fi
  14183. fi
  14184. done
  14185. ################################
  14186. # Check for the RT library
  14187. ################################
  14188. # Check whether --with-rt was given.
  14189. if test "${with_rt+set}" = set; then :
  14190. withval=$with_rt;
  14191. fi
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  14193. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  14194. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  14195. $as_echo_n "(cached) " >&6
  14196. else
  14197. ac_check_lib_save_LIBS=$LIBS
  14198. LIBS="-lrt $LIBS"
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. /* Override any GCC internal prototype to avoid an error.
  14202. Use char because int might match the return type of a GCC
  14203. builtin and then its argument prototype would still apply. */
  14204. #ifdef __cplusplus
  14205. extern "C"
  14206. #endif
  14207. char clock_gettime ();
  14208. int
  14209. main ()
  14210. {
  14211. return clock_gettime ();
  14212. ;
  14213. return 0;
  14214. }
  14215. _ACEOF
  14216. if ac_fn_c_try_link "$LINENO"; then :
  14217. ac_cv_lib_rt_clock_gettime=yes
  14218. else
  14219. ac_cv_lib_rt_clock_gettime=no
  14220. fi
  14221. rm -f core conftest.err conftest.$ac_objext \
  14222. conftest$ac_exeext conftest.$ac_ext
  14223. LIBS=$ac_check_lib_save_LIBS
  14224. fi
  14225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  14226. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  14227. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  14228. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  14229. if test "x$with_rt" = "x"; then
  14230. RT_LIBS="-lrt"
  14231. else
  14232. RT_CFLAGS="-I$with_rt/include"
  14233. RT_LIBS="-L$with_rt/lib -lrt"
  14234. fi
  14235. fi
  14236. ################################
  14237. # Search for network functions (like connect())
  14238. ################################
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14240. $as_echo_n "checking for library containing socket... " >&6; }
  14241. if ${ac_cv_search_socket+:} false; then :
  14242. $as_echo_n "(cached) " >&6
  14243. else
  14244. ac_func_search_save_LIBS=$LIBS
  14245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14246. /* end confdefs.h. */
  14247. /* Override any GCC internal prototype to avoid an error.
  14248. Use char because int might match the return type of a GCC
  14249. builtin and then its argument prototype would still apply. */
  14250. #ifdef __cplusplus
  14251. extern "C"
  14252. #endif
  14253. char socket ();
  14254. int
  14255. main ()
  14256. {
  14257. return socket ();
  14258. ;
  14259. return 0;
  14260. }
  14261. _ACEOF
  14262. for ac_lib in '' socket; do
  14263. if test -z "$ac_lib"; then
  14264. ac_res="none required"
  14265. else
  14266. ac_res=-l$ac_lib
  14267. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14268. fi
  14269. if ac_fn_c_try_link "$LINENO"; then :
  14270. ac_cv_search_socket=$ac_res
  14271. fi
  14272. rm -f core conftest.err conftest.$ac_objext \
  14273. conftest$ac_exeext
  14274. if ${ac_cv_search_socket+:} false; then :
  14275. break
  14276. fi
  14277. done
  14278. if ${ac_cv_search_socket+:} false; then :
  14279. else
  14280. ac_cv_search_socket=no
  14281. fi
  14282. rm conftest.$ac_ext
  14283. LIBS=$ac_func_search_save_LIBS
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14286. $as_echo "$ac_cv_search_socket" >&6; }
  14287. ac_res=$ac_cv_search_socket
  14288. if test "$ac_res" != no; then :
  14289. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14290. fi
  14291. ################################
  14292. # Check for regex.h
  14293. ################################
  14294. for ac_header in regex.h
  14295. do :
  14296. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14297. if test "x$ac_cv_header_regex_h" = xyes; then :
  14298. cat >>confdefs.h <<_ACEOF
  14299. #define HAVE_REGEX_H 1
  14300. _ACEOF
  14301. else
  14302. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14303. fi
  14304. done
  14305. ################################
  14306. # Check for getopt_long()
  14307. ################################
  14308. for ac_header in getopt.h
  14309. do :
  14310. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14311. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14312. cat >>confdefs.h <<_ACEOF
  14313. #define HAVE_GETOPT_H 1
  14314. _ACEOF
  14315. else
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14317. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14318. fi
  14319. done
  14320. ################################
  14321. # Check for locale.h
  14322. ################################
  14323. for ac_header in locale.h
  14324. do :
  14325. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14326. if test "x$ac_cv_header_locale_h" = xyes; then :
  14327. cat >>confdefs.h <<_ACEOF
  14328. #define HAVE_LOCALE_H 1
  14329. _ACEOF
  14330. else
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14332. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14333. fi
  14334. done
  14335. ################################
  14336. # Check for CODESET within nl_langinfo
  14337. ################################
  14338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14339. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14340. if ${am_cv_langinfo_codeset+:} false; then :
  14341. $as_echo_n "(cached) " >&6
  14342. else
  14343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14344. /* end confdefs.h. */
  14345. #include <langinfo.h>
  14346. int
  14347. main ()
  14348. {
  14349. char* cs = nl_langinfo(CODESET); return !cs;
  14350. ;
  14351. return 0;
  14352. }
  14353. _ACEOF
  14354. if ac_fn_c_try_link "$LINENO"; then :
  14355. am_cv_langinfo_codeset=yes
  14356. else
  14357. am_cv_langinfo_codeset=no
  14358. fi
  14359. rm -f core conftest.err conftest.$ac_objext \
  14360. conftest$ac_exeext conftest.$ac_ext
  14361. fi
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14363. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14364. if test $am_cv_langinfo_codeset = yes; then
  14365. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14366. fi
  14367. ################################
  14368. # Check for pwd.h and grp.h
  14369. ################################
  14370. for ac_header in pwd.h
  14371. do :
  14372. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14373. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14374. cat >>confdefs.h <<_ACEOF
  14375. #define HAVE_PWD_H 1
  14376. _ACEOF
  14377. else
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14379. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14380. fi
  14381. done
  14382. for ac_header in grp.h
  14383. do :
  14384. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14385. if test "x$ac_cv_header_grp_h" = xyes; then :
  14386. cat >>confdefs.h <<_ACEOF
  14387. #define HAVE_GRP_H 1
  14388. _ACEOF
  14389. else
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14391. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14392. fi
  14393. done
  14394. ################################
  14395. # Check for chroot
  14396. ################################
  14397. for ac_func in chroot
  14398. do :
  14399. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14400. if test "x$ac_cv_func_chroot" = xyes; then :
  14401. cat >>confdefs.h <<_ACEOF
  14402. #define HAVE_CHROOT 1
  14403. _ACEOF
  14404. else
  14405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14406. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14407. fi
  14408. done
  14409. ac_config_files="$ac_config_files Makefile"
  14410. cat >confcache <<\_ACEOF
  14411. # This file is a shell script that caches the results of configure
  14412. # tests run on this system so they can be shared between configure
  14413. # scripts and configure runs, see configure's option --config-cache.
  14414. # It is not useful on other systems. If it contains results you don't
  14415. # want to keep, you may remove or edit it.
  14416. #
  14417. # config.status only pays attention to the cache file if you give it
  14418. # the --recheck option to rerun configure.
  14419. #
  14420. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14421. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14422. # following values.
  14423. _ACEOF
  14424. # The following way of writing the cache mishandles newlines in values,
  14425. # but we know of no workaround that is simple, portable, and efficient.
  14426. # So, we kill variables containing newlines.
  14427. # Ultrix sh set writes to stderr and can't be redirected directly,
  14428. # and sets the high bit in the cache file unless we assign to the vars.
  14429. (
  14430. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14431. eval ac_val=\$$ac_var
  14432. case $ac_val in #(
  14433. *${as_nl}*)
  14434. case $ac_var in #(
  14435. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14436. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14437. esac
  14438. case $ac_var in #(
  14439. _ | IFS | as_nl) ;; #(
  14440. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14441. *) { eval $ac_var=; unset $ac_var;} ;;
  14442. esac ;;
  14443. esac
  14444. done
  14445. (set) 2>&1 |
  14446. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14447. *${as_nl}ac_space=\ *)
  14448. # `set' does not quote correctly, so add quotes: double-quote
  14449. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14450. sed -n \
  14451. "s/'/'\\\\''/g;
  14452. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14453. ;; #(
  14454. *)
  14455. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14456. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14457. ;;
  14458. esac |
  14459. sort
  14460. ) |
  14461. sed '
  14462. /^ac_cv_env_/b end
  14463. t clear
  14464. :clear
  14465. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14466. t end
  14467. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14468. :end' >>confcache
  14469. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14470. if test -w "$cache_file"; then
  14471. if test "x$cache_file" != "x/dev/null"; then
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14473. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14474. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14475. cat confcache >"$cache_file"
  14476. else
  14477. case $cache_file in #(
  14478. */* | ?:*)
  14479. mv -f confcache "$cache_file"$$ &&
  14480. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14481. *)
  14482. mv -f confcache "$cache_file" ;;
  14483. esac
  14484. fi
  14485. fi
  14486. else
  14487. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14488. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14489. fi
  14490. fi
  14491. rm -f confcache
  14492. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14493. # Let make expand exec_prefix.
  14494. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14495. DEFS=-DHAVE_CONFIG_H
  14496. ac_libobjs=
  14497. ac_ltlibobjs=
  14498. U=
  14499. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14500. # 1. Remove the extension, and $U if already installed.
  14501. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14502. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14503. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14504. # will be set to the directory where LIBOBJS objects are built.
  14505. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14506. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14507. done
  14508. LIBOBJS=$ac_libobjs
  14509. LTLIBOBJS=$ac_ltlibobjs
  14510. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14511. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14512. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14513. fi
  14514. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14515. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14516. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14517. fi
  14518. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14519. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14520. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14521. fi
  14522. if test -n "$EXEEXT"; then
  14523. am__EXEEXT_TRUE=
  14524. am__EXEEXT_FALSE='#'
  14525. else
  14526. am__EXEEXT_TRUE='#'
  14527. am__EXEEXT_FALSE=
  14528. fi
  14529. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14530. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14532. fi
  14533. : "${CONFIG_STATUS=./config.status}"
  14534. ac_write_fail=0
  14535. ac_clean_files_save=$ac_clean_files
  14536. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14538. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14539. as_write_fail=0
  14540. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14541. #! $SHELL
  14542. # Generated by $as_me.
  14543. # Run this file to recreate the current configuration.
  14544. # Compiler output produced by configure, useful for debugging
  14545. # configure, is in config.log if it exists.
  14546. debug=false
  14547. ac_cs_recheck=false
  14548. ac_cs_silent=false
  14549. SHELL=\${CONFIG_SHELL-$SHELL}
  14550. export SHELL
  14551. _ASEOF
  14552. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14553. ## -------------------- ##
  14554. ## M4sh Initialization. ##
  14555. ## -------------------- ##
  14556. # Be more Bourne compatible
  14557. DUALCASE=1; export DUALCASE # for MKS sh
  14558. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14559. emulate sh
  14560. NULLCMD=:
  14561. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14562. # is contrary to our usage. Disable this feature.
  14563. alias -g '${1+"$@"}'='"$@"'
  14564. setopt NO_GLOB_SUBST
  14565. else
  14566. case `(set -o) 2>/dev/null` in #(
  14567. *posix*) :
  14568. set -o posix ;; #(
  14569. *) :
  14570. ;;
  14571. esac
  14572. fi
  14573. as_nl='
  14574. '
  14575. export as_nl
  14576. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14577. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14578. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14579. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14580. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14581. # but without wasting forks for bash or zsh.
  14582. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14583. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14584. as_echo='print -r --'
  14585. as_echo_n='print -rn --'
  14586. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14587. as_echo='printf %s\n'
  14588. as_echo_n='printf %s'
  14589. else
  14590. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14591. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14592. as_echo_n='/usr/ucb/echo -n'
  14593. else
  14594. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14595. as_echo_n_body='eval
  14596. arg=$1;
  14597. case $arg in #(
  14598. *"$as_nl"*)
  14599. expr "X$arg" : "X\\(.*\\)$as_nl";
  14600. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14601. esac;
  14602. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14603. '
  14604. export as_echo_n_body
  14605. as_echo_n='sh -c $as_echo_n_body as_echo'
  14606. fi
  14607. export as_echo_body
  14608. as_echo='sh -c $as_echo_body as_echo'
  14609. fi
  14610. # The user is always right.
  14611. if test "${PATH_SEPARATOR+set}" != set; then
  14612. PATH_SEPARATOR=:
  14613. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14614. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14615. PATH_SEPARATOR=';'
  14616. }
  14617. fi
  14618. # IFS
  14619. # We need space, tab and new line, in precisely that order. Quoting is
  14620. # there to prevent editors from complaining about space-tab.
  14621. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14622. # splitting by setting IFS to empty value.)
  14623. IFS=" "" $as_nl"
  14624. # Find who we are. Look in the path if we contain no directory separator.
  14625. as_myself=
  14626. case $0 in #((
  14627. *[\\/]* ) as_myself=$0 ;;
  14628. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14629. for as_dir in $PATH
  14630. do
  14631. IFS=$as_save_IFS
  14632. test -z "$as_dir" && as_dir=.
  14633. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14634. done
  14635. IFS=$as_save_IFS
  14636. ;;
  14637. esac
  14638. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14639. # in which case we are not to be found in the path.
  14640. if test "x$as_myself" = x; then
  14641. as_myself=$0
  14642. fi
  14643. if test ! -f "$as_myself"; then
  14644. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14645. exit 1
  14646. fi
  14647. # Unset variables that we do not need and which cause bugs (e.g. in
  14648. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14649. # suppresses any "Segmentation fault" message there. '((' could
  14650. # trigger a bug in pdksh 5.2.14.
  14651. for as_var in BASH_ENV ENV MAIL MAILPATH
  14652. do eval test x\${$as_var+set} = xset \
  14653. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14654. done
  14655. PS1='$ '
  14656. PS2='> '
  14657. PS4='+ '
  14658. # NLS nuisances.
  14659. LC_ALL=C
  14660. export LC_ALL
  14661. LANGUAGE=C
  14662. export LANGUAGE
  14663. # CDPATH.
  14664. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14665. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14666. # ----------------------------------------
  14667. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14668. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14669. # script with STATUS, using 1 if that was 0.
  14670. as_fn_error ()
  14671. {
  14672. as_status=$1; test $as_status -eq 0 && as_status=1
  14673. if test "$4"; then
  14674. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14675. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14676. fi
  14677. $as_echo "$as_me: error: $2" >&2
  14678. as_fn_exit $as_status
  14679. } # as_fn_error
  14680. # as_fn_set_status STATUS
  14681. # -----------------------
  14682. # Set $? to STATUS, without forking.
  14683. as_fn_set_status ()
  14684. {
  14685. return $1
  14686. } # as_fn_set_status
  14687. # as_fn_exit STATUS
  14688. # -----------------
  14689. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14690. as_fn_exit ()
  14691. {
  14692. set +e
  14693. as_fn_set_status $1
  14694. exit $1
  14695. } # as_fn_exit
  14696. # as_fn_unset VAR
  14697. # ---------------
  14698. # Portably unset VAR.
  14699. as_fn_unset ()
  14700. {
  14701. { eval $1=; unset $1;}
  14702. }
  14703. as_unset=as_fn_unset
  14704. # as_fn_append VAR VALUE
  14705. # ----------------------
  14706. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14707. # advantage of any shell optimizations that allow amortized linear growth over
  14708. # repeated appends, instead of the typical quadratic growth present in naive
  14709. # implementations.
  14710. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14711. eval 'as_fn_append ()
  14712. {
  14713. eval $1+=\$2
  14714. }'
  14715. else
  14716. as_fn_append ()
  14717. {
  14718. eval $1=\$$1\$2
  14719. }
  14720. fi # as_fn_append
  14721. # as_fn_arith ARG...
  14722. # ------------------
  14723. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14724. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14725. # must be portable across $(()) and expr.
  14726. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14727. eval 'as_fn_arith ()
  14728. {
  14729. as_val=$(( $* ))
  14730. }'
  14731. else
  14732. as_fn_arith ()
  14733. {
  14734. as_val=`expr "$@" || test $? -eq 1`
  14735. }
  14736. fi # as_fn_arith
  14737. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14738. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14739. as_expr=expr
  14740. else
  14741. as_expr=false
  14742. fi
  14743. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14744. as_basename=basename
  14745. else
  14746. as_basename=false
  14747. fi
  14748. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14749. as_dirname=dirname
  14750. else
  14751. as_dirname=false
  14752. fi
  14753. as_me=`$as_basename -- "$0" ||
  14754. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14755. X"$0" : 'X\(//\)$' \| \
  14756. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14757. $as_echo X/"$0" |
  14758. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14759. s//\1/
  14760. q
  14761. }
  14762. /^X\/\(\/\/\)$/{
  14763. s//\1/
  14764. q
  14765. }
  14766. /^X\/\(\/\).*/{
  14767. s//\1/
  14768. q
  14769. }
  14770. s/.*/./; q'`
  14771. # Avoid depending upon Character Ranges.
  14772. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14773. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14774. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14775. as_cr_digits='0123456789'
  14776. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14777. ECHO_C= ECHO_N= ECHO_T=
  14778. case `echo -n x` in #(((((
  14779. -n*)
  14780. case `echo 'xy\c'` in
  14781. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14782. xy) ECHO_C='\c';;
  14783. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14784. ECHO_T=' ';;
  14785. esac;;
  14786. *)
  14787. ECHO_N='-n';;
  14788. esac
  14789. rm -f conf$$ conf$$.exe conf$$.file
  14790. if test -d conf$$.dir; then
  14791. rm -f conf$$.dir/conf$$.file
  14792. else
  14793. rm -f conf$$.dir
  14794. mkdir conf$$.dir 2>/dev/null
  14795. fi
  14796. if (echo >conf$$.file) 2>/dev/null; then
  14797. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14798. as_ln_s='ln -s'
  14799. # ... but there are two gotchas:
  14800. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14801. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14802. # In both cases, we have to default to `cp -p'.
  14803. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14804. as_ln_s='cp -p'
  14805. elif ln conf$$.file conf$$ 2>/dev/null; then
  14806. as_ln_s=ln
  14807. else
  14808. as_ln_s='cp -p'
  14809. fi
  14810. else
  14811. as_ln_s='cp -p'
  14812. fi
  14813. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14814. rmdir conf$$.dir 2>/dev/null
  14815. # as_fn_mkdir_p
  14816. # -------------
  14817. # Create "$as_dir" as a directory, including parents if necessary.
  14818. as_fn_mkdir_p ()
  14819. {
  14820. case $as_dir in #(
  14821. -*) as_dir=./$as_dir;;
  14822. esac
  14823. test -d "$as_dir" || eval $as_mkdir_p || {
  14824. as_dirs=
  14825. while :; do
  14826. case $as_dir in #(
  14827. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14828. *) as_qdir=$as_dir;;
  14829. esac
  14830. as_dirs="'$as_qdir' $as_dirs"
  14831. as_dir=`$as_dirname -- "$as_dir" ||
  14832. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14833. X"$as_dir" : 'X\(//\)[^/]' \| \
  14834. X"$as_dir" : 'X\(//\)$' \| \
  14835. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14836. $as_echo X"$as_dir" |
  14837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14838. s//\1/
  14839. q
  14840. }
  14841. /^X\(\/\/\)[^/].*/{
  14842. s//\1/
  14843. q
  14844. }
  14845. /^X\(\/\/\)$/{
  14846. s//\1/
  14847. q
  14848. }
  14849. /^X\(\/\).*/{
  14850. s//\1/
  14851. q
  14852. }
  14853. s/.*/./; q'`
  14854. test -d "$as_dir" && break
  14855. done
  14856. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14857. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14858. } # as_fn_mkdir_p
  14859. if mkdir -p . 2>/dev/null; then
  14860. as_mkdir_p='mkdir -p "$as_dir"'
  14861. else
  14862. test -d ./-p && rmdir ./-p
  14863. as_mkdir_p=false
  14864. fi
  14865. if test -x / >/dev/null 2>&1; then
  14866. as_test_x='test -x'
  14867. else
  14868. if ls -dL / >/dev/null 2>&1; then
  14869. as_ls_L_option=L
  14870. else
  14871. as_ls_L_option=
  14872. fi
  14873. as_test_x='
  14874. eval sh -c '\''
  14875. if test -d "$1"; then
  14876. test -d "$1/.";
  14877. else
  14878. case $1 in #(
  14879. -*)set "./$1";;
  14880. esac;
  14881. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14882. ???[sx]*):;;*)false;;esac;fi
  14883. '\'' sh
  14884. '
  14885. fi
  14886. as_executable_p=$as_test_x
  14887. # Sed expression to map a string onto a valid CPP name.
  14888. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14889. # Sed expression to map a string onto a valid variable name.
  14890. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14891. exec 6>&1
  14892. ## ----------------------------------- ##
  14893. ## Main body of $CONFIG_STATUS script. ##
  14894. ## ----------------------------------- ##
  14895. _ASEOF
  14896. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14897. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14898. # Save the log message, to keep $0 and so on meaningful, and to
  14899. # report actual input values of CONFIG_FILES etc. instead of their
  14900. # values after options handling.
  14901. ac_log="
  14902. This file was extended by klish $as_me 1.5.3, which was
  14903. generated by GNU Autoconf 2.68. Invocation command line was
  14904. CONFIG_FILES = $CONFIG_FILES
  14905. CONFIG_HEADERS = $CONFIG_HEADERS
  14906. CONFIG_LINKS = $CONFIG_LINKS
  14907. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14908. $ $0 $@
  14909. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14910. "
  14911. _ACEOF
  14912. case $ac_config_files in *"
  14913. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14914. esac
  14915. case $ac_config_headers in *"
  14916. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14917. esac
  14918. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14919. # Files that config.status was made for.
  14920. config_files="$ac_config_files"
  14921. config_headers="$ac_config_headers"
  14922. config_commands="$ac_config_commands"
  14923. _ACEOF
  14924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14925. ac_cs_usage="\
  14926. \`$as_me' instantiates files and other configuration actions
  14927. from templates according to the current configuration. Unless the files
  14928. and actions are specified as TAGs, all are instantiated by default.
  14929. Usage: $0 [OPTION]... [TAG]...
  14930. -h, --help print this help, then exit
  14931. -V, --version print version number and configuration settings, then exit
  14932. --config print configuration, then exit
  14933. -q, --quiet, --silent
  14934. do not print progress messages
  14935. -d, --debug don't remove temporary files
  14936. --recheck update $as_me by reconfiguring in the same conditions
  14937. --file=FILE[:TEMPLATE]
  14938. instantiate the configuration file FILE
  14939. --header=FILE[:TEMPLATE]
  14940. instantiate the configuration header FILE
  14941. Configuration files:
  14942. $config_files
  14943. Configuration headers:
  14944. $config_headers
  14945. Configuration commands:
  14946. $config_commands
  14947. Report bugs to <serj.kalichev at gmail dot com>."
  14948. _ACEOF
  14949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14950. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14951. ac_cs_version="\\
  14952. klish config.status 1.5.3
  14953. configured by $0, generated by GNU Autoconf 2.68,
  14954. with options \\"\$ac_cs_config\\"
  14955. Copyright (C) 2010 Free Software Foundation, Inc.
  14956. This config.status script is free software; the Free Software Foundation
  14957. gives unlimited permission to copy, distribute and modify it."
  14958. ac_pwd='$ac_pwd'
  14959. srcdir='$srcdir'
  14960. INSTALL='$INSTALL'
  14961. MKDIR_P='$MKDIR_P'
  14962. AWK='$AWK'
  14963. test -n "\$AWK" || AWK=awk
  14964. _ACEOF
  14965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14966. # The default lists apply if the user does not specify any file.
  14967. ac_need_defaults=:
  14968. while test $# != 0
  14969. do
  14970. case $1 in
  14971. --*=?*)
  14972. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14973. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14974. ac_shift=:
  14975. ;;
  14976. --*=)
  14977. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14978. ac_optarg=
  14979. ac_shift=:
  14980. ;;
  14981. *)
  14982. ac_option=$1
  14983. ac_optarg=$2
  14984. ac_shift=shift
  14985. ;;
  14986. esac
  14987. case $ac_option in
  14988. # Handling of the options.
  14989. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14990. ac_cs_recheck=: ;;
  14991. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14992. $as_echo "$ac_cs_version"; exit ;;
  14993. --config | --confi | --conf | --con | --co | --c )
  14994. $as_echo "$ac_cs_config"; exit ;;
  14995. --debug | --debu | --deb | --de | --d | -d )
  14996. debug=: ;;
  14997. --file | --fil | --fi | --f )
  14998. $ac_shift
  14999. case $ac_optarg in
  15000. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15001. '') as_fn_error $? "missing file argument" ;;
  15002. esac
  15003. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15004. ac_need_defaults=false;;
  15005. --header | --heade | --head | --hea )
  15006. $ac_shift
  15007. case $ac_optarg in
  15008. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15009. esac
  15010. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15011. ac_need_defaults=false;;
  15012. --he | --h)
  15013. # Conflict between --help and --header
  15014. as_fn_error $? "ambiguous option: \`$1'
  15015. Try \`$0 --help' for more information.";;
  15016. --help | --hel | -h )
  15017. $as_echo "$ac_cs_usage"; exit ;;
  15018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15019. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15020. ac_cs_silent=: ;;
  15021. # This is an error.
  15022. -*) as_fn_error $? "unrecognized option: \`$1'
  15023. Try \`$0 --help' for more information." ;;
  15024. *) as_fn_append ac_config_targets " $1"
  15025. ac_need_defaults=false ;;
  15026. esac
  15027. shift
  15028. done
  15029. ac_configure_extra_args=
  15030. if $ac_cs_silent; then
  15031. exec 6>/dev/null
  15032. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15033. fi
  15034. _ACEOF
  15035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15036. if \$ac_cs_recheck; then
  15037. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15038. shift
  15039. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15040. CONFIG_SHELL='$SHELL'
  15041. export CONFIG_SHELL
  15042. exec "\$@"
  15043. fi
  15044. _ACEOF
  15045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15046. exec 5>>config.log
  15047. {
  15048. echo
  15049. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15050. ## Running $as_me. ##
  15051. _ASBOX
  15052. $as_echo "$ac_log"
  15053. } >&5
  15054. _ACEOF
  15055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15056. #
  15057. # INIT-COMMANDS
  15058. #
  15059. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15060. # if CDPATH is set.
  15061. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15062. sed_quote_subst='$sed_quote_subst'
  15063. double_quote_subst='$double_quote_subst'
  15064. delay_variable_subst='$delay_variable_subst'
  15065. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15066. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15067. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15068. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15069. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15070. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15071. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15072. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15073. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15074. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15075. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15076. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15077. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15078. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15079. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15080. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15081. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15082. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15083. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15084. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15085. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15086. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15087. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15088. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15089. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15090. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15091. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15092. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15093. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15094. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15095. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15096. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15097. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15098. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15099. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15100. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15101. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15102. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15103. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15104. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15105. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15106. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15107. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15108. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15109. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15110. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15111. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15112. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15113. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15114. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15115. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15116. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15117. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15118. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15119. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15120. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15121. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15122. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15123. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15124. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15125. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15126. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15127. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15128. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15129. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15130. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15131. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15132. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15133. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15134. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15135. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15136. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15137. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15138. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15139. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15140. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15141. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15142. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15143. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15144. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15145. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15146. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15147. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15148. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15149. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15150. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15151. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15152. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15153. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15154. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15155. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15156. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15157. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15158. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15159. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15160. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15161. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15162. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15163. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15164. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15165. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15166. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15167. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15168. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15169. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15170. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15171. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15172. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15173. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15174. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15175. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15176. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15177. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15178. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15179. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15180. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15181. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15182. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15183. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15184. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15185. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15186. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15187. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15188. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15189. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15190. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15191. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15192. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15193. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15194. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15195. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15196. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15197. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15198. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15199. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15200. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15201. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15202. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15203. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15204. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15205. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15206. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15207. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15208. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15209. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15210. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15211. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15212. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15213. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15214. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15215. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15216. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15217. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15218. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15219. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15220. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15221. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15222. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15223. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15224. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15225. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15226. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15227. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15228. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15229. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15230. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15231. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15232. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15233. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15234. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15235. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15236. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15237. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15238. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15239. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15240. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15241. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15242. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15243. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15244. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15245. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15246. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15247. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15248. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15249. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15250. LTCC='$LTCC'
  15251. LTCFLAGS='$LTCFLAGS'
  15252. compiler='$compiler_DEFAULT'
  15253. # A function that is used when there is no print builtin or printf.
  15254. func_fallback_echo ()
  15255. {
  15256. eval 'cat <<_LTECHO_EOF
  15257. \$1
  15258. _LTECHO_EOF'
  15259. }
  15260. # Quote evaled strings.
  15261. for var in AS \
  15262. DLLTOOL \
  15263. OBJDUMP \
  15264. SHELL \
  15265. ECHO \
  15266. PATH_SEPARATOR \
  15267. SED \
  15268. GREP \
  15269. EGREP \
  15270. FGREP \
  15271. LD \
  15272. NM \
  15273. LN_S \
  15274. lt_SP2NL \
  15275. lt_NL2SP \
  15276. reload_flag \
  15277. deplibs_check_method \
  15278. file_magic_cmd \
  15279. file_magic_glob \
  15280. want_nocaseglob \
  15281. sharedlib_from_linklib_cmd \
  15282. AR \
  15283. AR_FLAGS \
  15284. archiver_list_spec \
  15285. STRIP \
  15286. RANLIB \
  15287. CC \
  15288. CFLAGS \
  15289. compiler \
  15290. lt_cv_sys_global_symbol_pipe \
  15291. lt_cv_sys_global_symbol_to_cdecl \
  15292. lt_cv_sys_global_symbol_to_c_name_address \
  15293. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15294. nm_file_list_spec \
  15295. lt_prog_compiler_no_builtin_flag \
  15296. lt_prog_compiler_pic \
  15297. lt_prog_compiler_wl \
  15298. lt_prog_compiler_static \
  15299. lt_cv_prog_compiler_c_o \
  15300. need_locks \
  15301. MANIFEST_TOOL \
  15302. DSYMUTIL \
  15303. NMEDIT \
  15304. LIPO \
  15305. OTOOL \
  15306. OTOOL64 \
  15307. shrext_cmds \
  15308. export_dynamic_flag_spec \
  15309. whole_archive_flag_spec \
  15310. compiler_needs_object \
  15311. with_gnu_ld \
  15312. allow_undefined_flag \
  15313. no_undefined_flag \
  15314. hardcode_libdir_flag_spec \
  15315. hardcode_libdir_separator \
  15316. exclude_expsyms \
  15317. include_expsyms \
  15318. file_list_spec \
  15319. variables_saved_for_relink \
  15320. libname_spec \
  15321. library_names_spec \
  15322. soname_spec \
  15323. install_override_mode \
  15324. finish_eval \
  15325. old_striplib \
  15326. striplib \
  15327. compiler_lib_search_dirs \
  15328. predep_objects \
  15329. postdep_objects \
  15330. predeps \
  15331. postdeps \
  15332. compiler_lib_search_path \
  15333. LD_CXX \
  15334. reload_flag_CXX \
  15335. compiler_CXX \
  15336. lt_prog_compiler_no_builtin_flag_CXX \
  15337. lt_prog_compiler_pic_CXX \
  15338. lt_prog_compiler_wl_CXX \
  15339. lt_prog_compiler_static_CXX \
  15340. lt_cv_prog_compiler_c_o_CXX \
  15341. export_dynamic_flag_spec_CXX \
  15342. whole_archive_flag_spec_CXX \
  15343. compiler_needs_object_CXX \
  15344. with_gnu_ld_CXX \
  15345. allow_undefined_flag_CXX \
  15346. no_undefined_flag_CXX \
  15347. hardcode_libdir_flag_spec_CXX \
  15348. hardcode_libdir_separator_CXX \
  15349. exclude_expsyms_CXX \
  15350. include_expsyms_CXX \
  15351. file_list_spec_CXX \
  15352. compiler_lib_search_dirs_CXX \
  15353. predep_objects_CXX \
  15354. postdep_objects_CXX \
  15355. predeps_CXX \
  15356. postdeps_CXX \
  15357. compiler_lib_search_path_CXX; do
  15358. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15359. *[\\\\\\\`\\"\\\$]*)
  15360. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15361. ;;
  15362. *)
  15363. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15364. ;;
  15365. esac
  15366. done
  15367. # Double-quote double-evaled strings.
  15368. for var in reload_cmds \
  15369. old_postinstall_cmds \
  15370. old_postuninstall_cmds \
  15371. old_archive_cmds \
  15372. extract_expsyms_cmds \
  15373. old_archive_from_new_cmds \
  15374. old_archive_from_expsyms_cmds \
  15375. archive_cmds \
  15376. archive_expsym_cmds \
  15377. module_cmds \
  15378. module_expsym_cmds \
  15379. export_symbols_cmds \
  15380. prelink_cmds \
  15381. postlink_cmds \
  15382. postinstall_cmds \
  15383. postuninstall_cmds \
  15384. finish_cmds \
  15385. sys_lib_search_path_spec \
  15386. sys_lib_dlsearch_path_spec \
  15387. reload_cmds_CXX \
  15388. old_archive_cmds_CXX \
  15389. old_archive_from_new_cmds_CXX \
  15390. old_archive_from_expsyms_cmds_CXX \
  15391. archive_cmds_CXX \
  15392. archive_expsym_cmds_CXX \
  15393. module_cmds_CXX \
  15394. module_expsym_cmds_CXX \
  15395. export_symbols_cmds_CXX \
  15396. prelink_cmds_CXX \
  15397. postlink_cmds_CXX; do
  15398. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15399. *[\\\\\\\`\\"\\\$]*)
  15400. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15401. ;;
  15402. *)
  15403. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15404. ;;
  15405. esac
  15406. done
  15407. ac_aux_dir='$ac_aux_dir'
  15408. xsi_shell='$xsi_shell'
  15409. lt_shell_append='$lt_shell_append'
  15410. # See if we are running on zsh, and set the options which allow our
  15411. # commands through without removal of \ escapes INIT.
  15412. if test -n "\${ZSH_VERSION+set}" ; then
  15413. setopt NO_GLOB_SUBST
  15414. fi
  15415. PACKAGE='$PACKAGE'
  15416. VERSION='$VERSION'
  15417. TIMESTAMP='$TIMESTAMP'
  15418. RM='$RM'
  15419. ofile='$ofile'
  15420. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15421. _ACEOF
  15422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15423. # Handling of arguments.
  15424. for ac_config_target in $ac_config_targets
  15425. do
  15426. case $ac_config_target in
  15427. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15428. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15429. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15430. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15431. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15432. esac
  15433. done
  15434. # If the user did not use the arguments to specify the items to instantiate,
  15435. # then the envvar interface is used. Set only those that are not.
  15436. # We use the long form for the default assignment because of an extremely
  15437. # bizarre bug on SunOS 4.1.3.
  15438. if $ac_need_defaults; then
  15439. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15440. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15441. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15442. fi
  15443. # Have a temporary directory for convenience. Make it in the build tree
  15444. # simply because there is no reason against having it here, and in addition,
  15445. # creating and moving files from /tmp can sometimes cause problems.
  15446. # Hook for its removal unless debugging.
  15447. # Note that there is a small window in which the directory will not be cleaned:
  15448. # after its creation but before its name has been assigned to `$tmp'.
  15449. $debug ||
  15450. {
  15451. tmp= ac_tmp=
  15452. trap 'exit_status=$?
  15453. : "${ac_tmp:=$tmp}"
  15454. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15455. ' 0
  15456. trap 'as_fn_exit 1' 1 2 13 15
  15457. }
  15458. # Create a (secure) tmp directory for tmp files.
  15459. {
  15460. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15461. test -d "$tmp"
  15462. } ||
  15463. {
  15464. tmp=./conf$$-$RANDOM
  15465. (umask 077 && mkdir "$tmp")
  15466. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15467. ac_tmp=$tmp
  15468. # Set up the scripts for CONFIG_FILES section.
  15469. # No need to generate them if there are no CONFIG_FILES.
  15470. # This happens for instance with `./config.status config.h'.
  15471. if test -n "$CONFIG_FILES"; then
  15472. ac_cr=`echo X | tr X '\015'`
  15473. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15474. # But we know of no other shell where ac_cr would be empty at this
  15475. # point, so we can use a bashism as a fallback.
  15476. if test "x$ac_cr" = x; then
  15477. eval ac_cr=\$\'\\r\'
  15478. fi
  15479. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15480. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15481. ac_cs_awk_cr='\\r'
  15482. else
  15483. ac_cs_awk_cr=$ac_cr
  15484. fi
  15485. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15486. _ACEOF
  15487. {
  15488. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15489. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15490. echo "_ACEOF"
  15491. } >conf$$subs.sh ||
  15492. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15493. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15494. ac_delim='%!_!# '
  15495. for ac_last_try in false false false false false :; do
  15496. . ./conf$$subs.sh ||
  15497. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15498. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15499. if test $ac_delim_n = $ac_delim_num; then
  15500. break
  15501. elif $ac_last_try; then
  15502. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15503. else
  15504. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15505. fi
  15506. done
  15507. rm -f conf$$subs.sh
  15508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15509. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15510. _ACEOF
  15511. sed -n '
  15512. h
  15513. s/^/S["/; s/!.*/"]=/
  15514. p
  15515. g
  15516. s/^[^!]*!//
  15517. :repl
  15518. t repl
  15519. s/'"$ac_delim"'$//
  15520. t delim
  15521. :nl
  15522. h
  15523. s/\(.\{148\}\)..*/\1/
  15524. t more1
  15525. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15526. p
  15527. n
  15528. b repl
  15529. :more1
  15530. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15531. p
  15532. g
  15533. s/.\{148\}//
  15534. t nl
  15535. :delim
  15536. h
  15537. s/\(.\{148\}\)..*/\1/
  15538. t more2
  15539. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15540. p
  15541. b
  15542. :more2
  15543. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15544. p
  15545. g
  15546. s/.\{148\}//
  15547. t delim
  15548. ' <conf$$subs.awk | sed '
  15549. /^[^""]/{
  15550. N
  15551. s/\n//
  15552. }
  15553. ' >>$CONFIG_STATUS || ac_write_fail=1
  15554. rm -f conf$$subs.awk
  15555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15556. _ACAWK
  15557. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15558. for (key in S) S_is_set[key] = 1
  15559. FS = ""
  15560. }
  15561. {
  15562. line = $ 0
  15563. nfields = split(line, field, "@")
  15564. substed = 0
  15565. len = length(field[1])
  15566. for (i = 2; i < nfields; i++) {
  15567. key = field[i]
  15568. keylen = length(key)
  15569. if (S_is_set[key]) {
  15570. value = S[key]
  15571. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15572. len += length(value) + length(field[++i])
  15573. substed = 1
  15574. } else
  15575. len += 1 + keylen
  15576. }
  15577. print line
  15578. }
  15579. _ACAWK
  15580. _ACEOF
  15581. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15582. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15583. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15584. else
  15585. cat
  15586. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15587. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15588. _ACEOF
  15589. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15590. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15591. # trailing colons and then remove the whole line if VPATH becomes empty
  15592. # (actually we leave an empty line to preserve line numbers).
  15593. if test "x$srcdir" = x.; then
  15594. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15595. h
  15596. s///
  15597. s/^/:/
  15598. s/[ ]*$/:/
  15599. s/:\$(srcdir):/:/g
  15600. s/:\${srcdir}:/:/g
  15601. s/:@srcdir@:/:/g
  15602. s/^:*//
  15603. s/:*$//
  15604. x
  15605. s/\(=[ ]*\).*/\1/
  15606. G
  15607. s/\n//
  15608. s/^[^=]*=[ ]*$//
  15609. }'
  15610. fi
  15611. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15612. fi # test -n "$CONFIG_FILES"
  15613. # Set up the scripts for CONFIG_HEADERS section.
  15614. # No need to generate them if there are no CONFIG_HEADERS.
  15615. # This happens for instance with `./config.status Makefile'.
  15616. if test -n "$CONFIG_HEADERS"; then
  15617. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15618. BEGIN {
  15619. _ACEOF
  15620. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15621. # here-document in config.status, that substitutes the proper values into
  15622. # config.h.in to produce config.h.
  15623. # Create a delimiter string that does not exist in confdefs.h, to ease
  15624. # handling of long lines.
  15625. ac_delim='%!_!# '
  15626. for ac_last_try in false false :; do
  15627. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15628. if test -z "$ac_tt"; then
  15629. break
  15630. elif $ac_last_try; then
  15631. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15632. else
  15633. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15634. fi
  15635. done
  15636. # For the awk script, D is an array of macro values keyed by name,
  15637. # likewise P contains macro parameters if any. Preserve backslash
  15638. # newline sequences.
  15639. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15640. sed -n '
  15641. s/.\{148\}/&'"$ac_delim"'/g
  15642. t rset
  15643. :rset
  15644. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15645. t def
  15646. d
  15647. :def
  15648. s/\\$//
  15649. t bsnl
  15650. s/["\\]/\\&/g
  15651. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15652. D["\1"]=" \3"/p
  15653. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15654. d
  15655. :bsnl
  15656. s/["\\]/\\&/g
  15657. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15658. D["\1"]=" \3\\\\\\n"\\/p
  15659. t cont
  15660. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15661. t cont
  15662. d
  15663. :cont
  15664. n
  15665. s/.\{148\}/&'"$ac_delim"'/g
  15666. t clear
  15667. :clear
  15668. s/\\$//
  15669. t bsnlc
  15670. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15671. d
  15672. :bsnlc
  15673. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15674. b cont
  15675. ' <confdefs.h | sed '
  15676. s/'"$ac_delim"'/"\\\
  15677. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15679. for (key in D) D_is_set[key] = 1
  15680. FS = ""
  15681. }
  15682. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15683. line = \$ 0
  15684. split(line, arg, " ")
  15685. if (arg[1] == "#") {
  15686. defundef = arg[2]
  15687. mac1 = arg[3]
  15688. } else {
  15689. defundef = substr(arg[1], 2)
  15690. mac1 = arg[2]
  15691. }
  15692. split(mac1, mac2, "(") #)
  15693. macro = mac2[1]
  15694. prefix = substr(line, 1, index(line, defundef) - 1)
  15695. if (D_is_set[macro]) {
  15696. # Preserve the white space surrounding the "#".
  15697. print prefix "define", macro P[macro] D[macro]
  15698. next
  15699. } else {
  15700. # Replace #undef with comments. This is necessary, for example,
  15701. # in the case of _POSIX_SOURCE, which is predefined and required
  15702. # on some systems where configure will not decide to define it.
  15703. if (defundef == "undef") {
  15704. print "/*", prefix defundef, macro, "*/"
  15705. next
  15706. }
  15707. }
  15708. }
  15709. { print }
  15710. _ACAWK
  15711. _ACEOF
  15712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15713. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15714. fi # test -n "$CONFIG_HEADERS"
  15715. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15716. shift
  15717. for ac_tag
  15718. do
  15719. case $ac_tag in
  15720. :[FHLC]) ac_mode=$ac_tag; continue;;
  15721. esac
  15722. case $ac_mode$ac_tag in
  15723. :[FHL]*:*);;
  15724. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15725. :[FH]-) ac_tag=-:-;;
  15726. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15727. esac
  15728. ac_save_IFS=$IFS
  15729. IFS=:
  15730. set x $ac_tag
  15731. IFS=$ac_save_IFS
  15732. shift
  15733. ac_file=$1
  15734. shift
  15735. case $ac_mode in
  15736. :L) ac_source=$1;;
  15737. :[FH])
  15738. ac_file_inputs=
  15739. for ac_f
  15740. do
  15741. case $ac_f in
  15742. -) ac_f="$ac_tmp/stdin";;
  15743. *) # Look for the file first in the build tree, then in the source tree
  15744. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15745. # because $ac_f cannot contain `:'.
  15746. test -f "$ac_f" ||
  15747. case $ac_f in
  15748. [\\/$]*) false;;
  15749. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15750. esac ||
  15751. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15752. esac
  15753. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15754. as_fn_append ac_file_inputs " '$ac_f'"
  15755. done
  15756. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15757. # use $as_me), people would be surprised to read:
  15758. # /* config.h. Generated by config.status. */
  15759. configure_input='Generated from '`
  15760. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15761. `' by configure.'
  15762. if test x"$ac_file" != x-; then
  15763. configure_input="$ac_file. $configure_input"
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15765. $as_echo "$as_me: creating $ac_file" >&6;}
  15766. fi
  15767. # Neutralize special characters interpreted by sed in replacement strings.
  15768. case $configure_input in #(
  15769. *\&* | *\|* | *\\* )
  15770. ac_sed_conf_input=`$as_echo "$configure_input" |
  15771. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15772. *) ac_sed_conf_input=$configure_input;;
  15773. esac
  15774. case $ac_tag in
  15775. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15776. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15777. esac
  15778. ;;
  15779. esac
  15780. ac_dir=`$as_dirname -- "$ac_file" ||
  15781. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15782. X"$ac_file" : 'X\(//\)[^/]' \| \
  15783. X"$ac_file" : 'X\(//\)$' \| \
  15784. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15785. $as_echo X"$ac_file" |
  15786. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15787. s//\1/
  15788. q
  15789. }
  15790. /^X\(\/\/\)[^/].*/{
  15791. s//\1/
  15792. q
  15793. }
  15794. /^X\(\/\/\)$/{
  15795. s//\1/
  15796. q
  15797. }
  15798. /^X\(\/\).*/{
  15799. s//\1/
  15800. q
  15801. }
  15802. s/.*/./; q'`
  15803. as_dir="$ac_dir"; as_fn_mkdir_p
  15804. ac_builddir=.
  15805. case "$ac_dir" in
  15806. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15807. *)
  15808. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15809. # A ".." for each directory in $ac_dir_suffix.
  15810. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15811. case $ac_top_builddir_sub in
  15812. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15813. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15814. esac ;;
  15815. esac
  15816. ac_abs_top_builddir=$ac_pwd
  15817. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15818. # for backward compatibility:
  15819. ac_top_builddir=$ac_top_build_prefix
  15820. case $srcdir in
  15821. .) # We are building in place.
  15822. ac_srcdir=.
  15823. ac_top_srcdir=$ac_top_builddir_sub
  15824. ac_abs_top_srcdir=$ac_pwd ;;
  15825. [\\/]* | ?:[\\/]* ) # Absolute name.
  15826. ac_srcdir=$srcdir$ac_dir_suffix;
  15827. ac_top_srcdir=$srcdir
  15828. ac_abs_top_srcdir=$srcdir ;;
  15829. *) # Relative name.
  15830. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15831. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15832. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15833. esac
  15834. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15835. case $ac_mode in
  15836. :F)
  15837. #
  15838. # CONFIG_FILE
  15839. #
  15840. case $INSTALL in
  15841. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15842. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15843. esac
  15844. ac_MKDIR_P=$MKDIR_P
  15845. case $MKDIR_P in
  15846. [\\/$]* | ?:[\\/]* ) ;;
  15847. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15848. esac
  15849. _ACEOF
  15850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15851. # If the template does not know about datarootdir, expand it.
  15852. # FIXME: This hack should be removed a few years after 2.60.
  15853. ac_datarootdir_hack=; ac_datarootdir_seen=
  15854. ac_sed_dataroot='
  15855. /datarootdir/ {
  15856. p
  15857. q
  15858. }
  15859. /@datadir@/p
  15860. /@docdir@/p
  15861. /@infodir@/p
  15862. /@localedir@/p
  15863. /@mandir@/p'
  15864. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15865. *datarootdir*) ac_datarootdir_seen=yes;;
  15866. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15868. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15869. _ACEOF
  15870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15871. ac_datarootdir_hack='
  15872. s&@datadir@&$datadir&g
  15873. s&@docdir@&$docdir&g
  15874. s&@infodir@&$infodir&g
  15875. s&@localedir@&$localedir&g
  15876. s&@mandir@&$mandir&g
  15877. s&\\\${datarootdir}&$datarootdir&g' ;;
  15878. esac
  15879. _ACEOF
  15880. # Neutralize VPATH when `$srcdir' = `.'.
  15881. # Shell code in configure.ac might set extrasub.
  15882. # FIXME: do we really want to maintain this feature?
  15883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15884. ac_sed_extra="$ac_vpsub
  15885. $extrasub
  15886. _ACEOF
  15887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15888. :t
  15889. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15890. s|@configure_input@|$ac_sed_conf_input|;t t
  15891. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15892. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15893. s&@srcdir@&$ac_srcdir&;t t
  15894. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15895. s&@top_srcdir@&$ac_top_srcdir&;t t
  15896. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15897. s&@builddir@&$ac_builddir&;t t
  15898. s&@abs_builddir@&$ac_abs_builddir&;t t
  15899. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15900. s&@INSTALL@&$ac_INSTALL&;t t
  15901. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15902. $ac_datarootdir_hack
  15903. "
  15904. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15905. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15906. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15907. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15908. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15909. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15911. which seems to be undefined. Please make sure it is defined" >&5
  15912. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15913. which seems to be undefined. Please make sure it is defined" >&2;}
  15914. rm -f "$ac_tmp/stdin"
  15915. case $ac_file in
  15916. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15917. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15918. esac \
  15919. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15920. ;;
  15921. :H)
  15922. #
  15923. # CONFIG_HEADER
  15924. #
  15925. if test x"$ac_file" != x-; then
  15926. {
  15927. $as_echo "/* $configure_input */" \
  15928. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15929. } >"$ac_tmp/config.h" \
  15930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15931. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15933. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15934. else
  15935. rm -f "$ac_file"
  15936. mv "$ac_tmp/config.h" "$ac_file" \
  15937. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15938. fi
  15939. else
  15940. $as_echo "/* $configure_input */" \
  15941. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15942. || as_fn_error $? "could not create -" "$LINENO" 5
  15943. fi
  15944. # Compute "$ac_file"'s index in $config_headers.
  15945. _am_arg="$ac_file"
  15946. _am_stamp_count=1
  15947. for _am_header in $config_headers :; do
  15948. case $_am_header in
  15949. $_am_arg | $_am_arg:* )
  15950. break ;;
  15951. * )
  15952. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15953. esac
  15954. done
  15955. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15956. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15957. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15958. X"$_am_arg" : 'X\(//\)$' \| \
  15959. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15960. $as_echo X"$_am_arg" |
  15961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15962. s//\1/
  15963. q
  15964. }
  15965. /^X\(\/\/\)[^/].*/{
  15966. s//\1/
  15967. q
  15968. }
  15969. /^X\(\/\/\)$/{
  15970. s//\1/
  15971. q
  15972. }
  15973. /^X\(\/\).*/{
  15974. s//\1/
  15975. q
  15976. }
  15977. s/.*/./; q'`/stamp-h$_am_stamp_count
  15978. ;;
  15979. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15980. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15981. ;;
  15982. esac
  15983. case $ac_file$ac_mode in
  15984. "libtool":C)
  15985. # See if we are running on zsh, and set the options which allow our
  15986. # commands through without removal of \ escapes.
  15987. if test -n "${ZSH_VERSION+set}" ; then
  15988. setopt NO_GLOB_SUBST
  15989. fi
  15990. cfgfile="${ofile}T"
  15991. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15992. $RM "$cfgfile"
  15993. cat <<_LT_EOF >> "$cfgfile"
  15994. #! $SHELL
  15995. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15996. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15997. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15998. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15999. #
  16000. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16001. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16002. # Foundation, Inc.
  16003. # Written by Gordon Matzigkeit, 1996
  16004. #
  16005. # This file is part of GNU Libtool.
  16006. #
  16007. # GNU Libtool is free software; you can redistribute it and/or
  16008. # modify it under the terms of the GNU General Public License as
  16009. # published by the Free Software Foundation; either version 2 of
  16010. # the License, or (at your option) any later version.
  16011. #
  16012. # As a special exception to the GNU General Public License,
  16013. # if you distribute this file as part of a program or library that
  16014. # is built using GNU Libtool, you may include this file under the
  16015. # same distribution terms that you use for the rest of that program.
  16016. #
  16017. # GNU Libtool is distributed in the hope that it will be useful,
  16018. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16019. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16020. # GNU General Public License for more details.
  16021. #
  16022. # You should have received a copy of the GNU General Public License
  16023. # along with GNU Libtool; see the file COPYING. If not, a copy
  16024. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16025. # obtained by writing to the Free Software Foundation, Inc.,
  16026. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16027. # The names of the tagged configurations supported by this script.
  16028. available_tags="CXX "
  16029. # ### BEGIN LIBTOOL CONFIG
  16030. # Assembler program.
  16031. AS=$lt_AS
  16032. # DLL creation program.
  16033. DLLTOOL=$lt_DLLTOOL
  16034. # Object dumper program.
  16035. OBJDUMP=$lt_OBJDUMP
  16036. # Which release of libtool.m4 was used?
  16037. macro_version=$macro_version
  16038. macro_revision=$macro_revision
  16039. # Whether or not to build shared libraries.
  16040. build_libtool_libs=$enable_shared
  16041. # Whether or not to build static libraries.
  16042. build_old_libs=$enable_static
  16043. # What type of objects to build.
  16044. pic_mode=$pic_mode
  16045. # Whether or not to optimize for fast installation.
  16046. fast_install=$enable_fast_install
  16047. # Shell to use when invoking shell scripts.
  16048. SHELL=$lt_SHELL
  16049. # An echo program that protects backslashes.
  16050. ECHO=$lt_ECHO
  16051. # The PATH separator for the build system.
  16052. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16053. # The host system.
  16054. host_alias=$host_alias
  16055. host=$host
  16056. host_os=$host_os
  16057. # The build system.
  16058. build_alias=$build_alias
  16059. build=$build
  16060. build_os=$build_os
  16061. # A sed program that does not truncate output.
  16062. SED=$lt_SED
  16063. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16064. Xsed="\$SED -e 1s/^X//"
  16065. # A grep program that handles long lines.
  16066. GREP=$lt_GREP
  16067. # An ERE matcher.
  16068. EGREP=$lt_EGREP
  16069. # A literal string matcher.
  16070. FGREP=$lt_FGREP
  16071. # A BSD- or MS-compatible name lister.
  16072. NM=$lt_NM
  16073. # Whether we need soft or hard links.
  16074. LN_S=$lt_LN_S
  16075. # What is the maximum length of a command?
  16076. max_cmd_len=$max_cmd_len
  16077. # Object file suffix (normally "o").
  16078. objext=$ac_objext
  16079. # Executable file suffix (normally "").
  16080. exeext=$exeext
  16081. # whether the shell understands "unset".
  16082. lt_unset=$lt_unset
  16083. # turn spaces into newlines.
  16084. SP2NL=$lt_lt_SP2NL
  16085. # turn newlines into spaces.
  16086. NL2SP=$lt_lt_NL2SP
  16087. # convert \$build file names to \$host format.
  16088. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16089. # convert \$build files to toolchain format.
  16090. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16091. # Method to check whether dependent libraries are shared objects.
  16092. deplibs_check_method=$lt_deplibs_check_method
  16093. # Command to use when deplibs_check_method = "file_magic".
  16094. file_magic_cmd=$lt_file_magic_cmd
  16095. # How to find potential files when deplibs_check_method = "file_magic".
  16096. file_magic_glob=$lt_file_magic_glob
  16097. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16098. want_nocaseglob=$lt_want_nocaseglob
  16099. # Command to associate shared and link libraries.
  16100. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16101. # The archiver.
  16102. AR=$lt_AR
  16103. # Flags to create an archive.
  16104. AR_FLAGS=$lt_AR_FLAGS
  16105. # How to feed a file listing to the archiver.
  16106. archiver_list_spec=$lt_archiver_list_spec
  16107. # A symbol stripping program.
  16108. STRIP=$lt_STRIP
  16109. # Commands used to install an old-style archive.
  16110. RANLIB=$lt_RANLIB
  16111. old_postinstall_cmds=$lt_old_postinstall_cmds
  16112. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16113. # Whether to use a lock for old archive extraction.
  16114. lock_old_archive_extraction=$lock_old_archive_extraction
  16115. # A C compiler.
  16116. LTCC=$lt_CC
  16117. # LTCC compiler flags.
  16118. LTCFLAGS=$lt_CFLAGS
  16119. # Take the output of nm and produce a listing of raw symbols and C names.
  16120. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16121. # Transform the output of nm in a proper C declaration.
  16122. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16123. # Transform the output of nm in a C name address pair.
  16124. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16125. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16126. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16127. # Specify filename containing input files for \$NM.
  16128. nm_file_list_spec=$lt_nm_file_list_spec
  16129. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16130. lt_sysroot=$lt_sysroot
  16131. # The name of the directory that contains temporary libtool files.
  16132. objdir=$objdir
  16133. # Used to examine libraries when file_magic_cmd begins with "file".
  16134. MAGIC_CMD=$MAGIC_CMD
  16135. # Must we lock files when doing compilation?
  16136. need_locks=$lt_need_locks
  16137. # Manifest tool.
  16138. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16139. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16140. DSYMUTIL=$lt_DSYMUTIL
  16141. # Tool to change global to local symbols on Mac OS X.
  16142. NMEDIT=$lt_NMEDIT
  16143. # Tool to manipulate fat objects and archives on Mac OS X.
  16144. LIPO=$lt_LIPO
  16145. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16146. OTOOL=$lt_OTOOL
  16147. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16148. OTOOL64=$lt_OTOOL64
  16149. # Old archive suffix (normally "a").
  16150. libext=$libext
  16151. # Shared library suffix (normally ".so").
  16152. shrext_cmds=$lt_shrext_cmds
  16153. # The commands to extract the exported symbol list from a shared archive.
  16154. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16155. # Variables whose values should be saved in libtool wrapper scripts and
  16156. # restored at link time.
  16157. variables_saved_for_relink=$lt_variables_saved_for_relink
  16158. # Do we need the "lib" prefix for modules?
  16159. need_lib_prefix=$need_lib_prefix
  16160. # Do we need a version for libraries?
  16161. need_version=$need_version
  16162. # Library versioning type.
  16163. version_type=$version_type
  16164. # Shared library runtime path variable.
  16165. runpath_var=$runpath_var
  16166. # Shared library path variable.
  16167. shlibpath_var=$shlibpath_var
  16168. # Is shlibpath searched before the hard-coded library search path?
  16169. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16170. # Format of library name prefix.
  16171. libname_spec=$lt_libname_spec
  16172. # List of archive names. First name is the real one, the rest are links.
  16173. # The last name is the one that the linker finds with -lNAME
  16174. library_names_spec=$lt_library_names_spec
  16175. # The coded name of the library, if different from the real name.
  16176. soname_spec=$lt_soname_spec
  16177. # Permission mode override for installation of shared libraries.
  16178. install_override_mode=$lt_install_override_mode
  16179. # Command to use after installation of a shared archive.
  16180. postinstall_cmds=$lt_postinstall_cmds
  16181. # Command to use after uninstallation of a shared archive.
  16182. postuninstall_cmds=$lt_postuninstall_cmds
  16183. # Commands used to finish a libtool library installation in a directory.
  16184. finish_cmds=$lt_finish_cmds
  16185. # As "finish_cmds", except a single script fragment to be evaled but
  16186. # not shown.
  16187. finish_eval=$lt_finish_eval
  16188. # Whether we should hardcode library paths into libraries.
  16189. hardcode_into_libs=$hardcode_into_libs
  16190. # Compile-time system search path for libraries.
  16191. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16192. # Run-time system search path for libraries.
  16193. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16194. # Whether dlopen is supported.
  16195. dlopen_support=$enable_dlopen
  16196. # Whether dlopen of programs is supported.
  16197. dlopen_self=$enable_dlopen_self
  16198. # Whether dlopen of statically linked programs is supported.
  16199. dlopen_self_static=$enable_dlopen_self_static
  16200. # Commands to strip libraries.
  16201. old_striplib=$lt_old_striplib
  16202. striplib=$lt_striplib
  16203. # The linker used to build libraries.
  16204. LD=$lt_LD
  16205. # How to create reloadable object files.
  16206. reload_flag=$lt_reload_flag
  16207. reload_cmds=$lt_reload_cmds
  16208. # Commands used to build an old-style archive.
  16209. old_archive_cmds=$lt_old_archive_cmds
  16210. # A language specific compiler.
  16211. CC=$lt_compiler
  16212. # Is the compiler the GNU compiler?
  16213. with_gcc=$GCC
  16214. # Compiler flag to turn off builtin functions.
  16215. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16216. # Additional compiler flags for building library objects.
  16217. pic_flag=$lt_lt_prog_compiler_pic
  16218. # How to pass a linker flag through the compiler.
  16219. wl=$lt_lt_prog_compiler_wl
  16220. # Compiler flag to prevent dynamic linking.
  16221. link_static_flag=$lt_lt_prog_compiler_static
  16222. # Does compiler simultaneously support -c and -o options?
  16223. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16224. # Whether or not to add -lc for building shared libraries.
  16225. build_libtool_need_lc=$archive_cmds_need_lc
  16226. # Whether or not to disallow shared libs when runtime libs are static.
  16227. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16228. # Compiler flag to allow reflexive dlopens.
  16229. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16230. # Compiler flag to generate shared objects directly from archives.
  16231. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16232. # Whether the compiler copes with passing no objects directly.
  16233. compiler_needs_object=$lt_compiler_needs_object
  16234. # Create an old-style archive from a shared archive.
  16235. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16236. # Create a temporary old-style archive to link instead of a shared archive.
  16237. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16238. # Commands used to build a shared archive.
  16239. archive_cmds=$lt_archive_cmds
  16240. archive_expsym_cmds=$lt_archive_expsym_cmds
  16241. # Commands used to build a loadable module if different from building
  16242. # a shared archive.
  16243. module_cmds=$lt_module_cmds
  16244. module_expsym_cmds=$lt_module_expsym_cmds
  16245. # Whether we are building with GNU ld or not.
  16246. with_gnu_ld=$lt_with_gnu_ld
  16247. # Flag that allows shared libraries with undefined symbols to be built.
  16248. allow_undefined_flag=$lt_allow_undefined_flag
  16249. # Flag that enforces no undefined symbols.
  16250. no_undefined_flag=$lt_no_undefined_flag
  16251. # Flag to hardcode \$libdir into a binary during linking.
  16252. # This must work even if \$libdir does not exist
  16253. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16254. # Whether we need a single "-rpath" flag with a separated argument.
  16255. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16256. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16257. # DIR into the resulting binary.
  16258. hardcode_direct=$hardcode_direct
  16259. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16260. # DIR into the resulting binary and the resulting library dependency is
  16261. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16262. # library is relocated.
  16263. hardcode_direct_absolute=$hardcode_direct_absolute
  16264. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16265. # into the resulting binary.
  16266. hardcode_minus_L=$hardcode_minus_L
  16267. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16268. # into the resulting binary.
  16269. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16270. # Set to "yes" if building a shared library automatically hardcodes DIR
  16271. # into the library and all subsequent libraries and executables linked
  16272. # against it.
  16273. hardcode_automatic=$hardcode_automatic
  16274. # Set to yes if linker adds runtime paths of dependent libraries
  16275. # to runtime path list.
  16276. inherit_rpath=$inherit_rpath
  16277. # Whether libtool must link a program against all its dependency libraries.
  16278. link_all_deplibs=$link_all_deplibs
  16279. # Set to "yes" if exported symbols are required.
  16280. always_export_symbols=$always_export_symbols
  16281. # The commands to list exported symbols.
  16282. export_symbols_cmds=$lt_export_symbols_cmds
  16283. # Symbols that should not be listed in the preloaded symbols.
  16284. exclude_expsyms=$lt_exclude_expsyms
  16285. # Symbols that must always be exported.
  16286. include_expsyms=$lt_include_expsyms
  16287. # Commands necessary for linking programs (against libraries) with templates.
  16288. prelink_cmds=$lt_prelink_cmds
  16289. # Commands necessary for finishing linking programs.
  16290. postlink_cmds=$lt_postlink_cmds
  16291. # Specify filename containing input files.
  16292. file_list_spec=$lt_file_list_spec
  16293. # How to hardcode a shared library path into an executable.
  16294. hardcode_action=$hardcode_action
  16295. # The directories searched by this compiler when creating a shared library.
  16296. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16297. # Dependencies to place before and after the objects being linked to
  16298. # create a shared library.
  16299. predep_objects=$lt_predep_objects
  16300. postdep_objects=$lt_postdep_objects
  16301. predeps=$lt_predeps
  16302. postdeps=$lt_postdeps
  16303. # The library search path used internally by the compiler when linking
  16304. # a shared library.
  16305. compiler_lib_search_path=$lt_compiler_lib_search_path
  16306. # ### END LIBTOOL CONFIG
  16307. _LT_EOF
  16308. case $host_os in
  16309. aix3*)
  16310. cat <<\_LT_EOF >> "$cfgfile"
  16311. # AIX sometimes has problems with the GCC collect2 program. For some
  16312. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16313. # vanish in a puff of smoke.
  16314. if test "X${COLLECT_NAMES+set}" != Xset; then
  16315. COLLECT_NAMES=
  16316. export COLLECT_NAMES
  16317. fi
  16318. _LT_EOF
  16319. ;;
  16320. esac
  16321. ltmain="$ac_aux_dir/ltmain.sh"
  16322. # We use sed instead of cat because bash on DJGPP gets confused if
  16323. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16324. # text mode, it properly converts lines to CR/LF. This bash problem
  16325. # is reportedly fixed, but why not run on old versions too?
  16326. sed '$q' "$ltmain" >> "$cfgfile" \
  16327. || (rm -f "$cfgfile"; exit 1)
  16328. if test x"$xsi_shell" = xyes; then
  16329. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16330. func_dirname ()\
  16331. {\
  16332. \ case ${1} in\
  16333. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16334. \ * ) func_dirname_result="${3}" ;;\
  16335. \ esac\
  16336. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16337. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16338. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16339. test 0 -eq $? || _lt_function_replace_fail=:
  16340. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16341. func_basename ()\
  16342. {\
  16343. \ func_basename_result="${1##*/}"\
  16344. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16345. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16346. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16347. test 0 -eq $? || _lt_function_replace_fail=:
  16348. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16349. func_dirname_and_basename ()\
  16350. {\
  16351. \ case ${1} in\
  16352. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16353. \ * ) func_dirname_result="${3}" ;;\
  16354. \ esac\
  16355. \ func_basename_result="${1##*/}"\
  16356. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16357. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16358. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16359. test 0 -eq $? || _lt_function_replace_fail=:
  16360. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16361. func_stripname ()\
  16362. {\
  16363. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16364. \ # positional parameters, so assign one to ordinary parameter first.\
  16365. \ func_stripname_result=${3}\
  16366. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16367. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16368. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16369. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16370. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16371. test 0 -eq $? || _lt_function_replace_fail=:
  16372. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16373. func_split_long_opt ()\
  16374. {\
  16375. \ func_split_long_opt_name=${1%%=*}\
  16376. \ func_split_long_opt_arg=${1#*=}\
  16377. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16378. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16379. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16380. test 0 -eq $? || _lt_function_replace_fail=:
  16381. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16382. func_split_short_opt ()\
  16383. {\
  16384. \ func_split_short_opt_arg=${1#??}\
  16385. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16386. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16387. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16388. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16389. test 0 -eq $? || _lt_function_replace_fail=:
  16390. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16391. func_lo2o ()\
  16392. {\
  16393. \ case ${1} in\
  16394. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16395. \ *) func_lo2o_result=${1} ;;\
  16396. \ esac\
  16397. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16398. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16399. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16400. test 0 -eq $? || _lt_function_replace_fail=:
  16401. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16402. func_xform ()\
  16403. {\
  16404. func_xform_result=${1%.*}.lo\
  16405. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16406. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16407. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16408. test 0 -eq $? || _lt_function_replace_fail=:
  16409. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16410. func_arith ()\
  16411. {\
  16412. func_arith_result=$(( $* ))\
  16413. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16414. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16415. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16416. test 0 -eq $? || _lt_function_replace_fail=:
  16417. sed -e '/^func_len ()$/,/^} # func_len /c\
  16418. func_len ()\
  16419. {\
  16420. func_len_result=${#1}\
  16421. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16422. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16423. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16424. test 0 -eq $? || _lt_function_replace_fail=:
  16425. fi
  16426. if test x"$lt_shell_append" = xyes; then
  16427. sed -e '/^func_append ()$/,/^} # func_append /c\
  16428. func_append ()\
  16429. {\
  16430. eval "${1}+=\\${2}"\
  16431. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16432. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16433. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16434. test 0 -eq $? || _lt_function_replace_fail=:
  16435. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16436. func_append_quoted ()\
  16437. {\
  16438. \ func_quote_for_eval "${2}"\
  16439. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16440. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16441. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16442. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16443. test 0 -eq $? || _lt_function_replace_fail=:
  16444. # Save a `func_append' function call where possible by direct use of '+='
  16445. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16446. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16447. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16448. test 0 -eq $? || _lt_function_replace_fail=:
  16449. else
  16450. # Save a `func_append' function call even when '+=' is not available
  16451. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16452. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16453. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16454. test 0 -eq $? || _lt_function_replace_fail=:
  16455. fi
  16456. if test x"$_lt_function_replace_fail" = x":"; then
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16458. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16459. fi
  16460. mv -f "$cfgfile" "$ofile" ||
  16461. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16462. chmod +x "$ofile"
  16463. cat <<_LT_EOF >> "$ofile"
  16464. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16465. # The linker used to build libraries.
  16466. LD=$lt_LD_CXX
  16467. # How to create reloadable object files.
  16468. reload_flag=$lt_reload_flag_CXX
  16469. reload_cmds=$lt_reload_cmds_CXX
  16470. # Commands used to build an old-style archive.
  16471. old_archive_cmds=$lt_old_archive_cmds_CXX
  16472. # A language specific compiler.
  16473. CC=$lt_compiler_CXX
  16474. # Is the compiler the GNU compiler?
  16475. with_gcc=$GCC_CXX
  16476. # Compiler flag to turn off builtin functions.
  16477. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16478. # Additional compiler flags for building library objects.
  16479. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16480. # How to pass a linker flag through the compiler.
  16481. wl=$lt_lt_prog_compiler_wl_CXX
  16482. # Compiler flag to prevent dynamic linking.
  16483. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16484. # Does compiler simultaneously support -c and -o options?
  16485. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16486. # Whether or not to add -lc for building shared libraries.
  16487. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16488. # Whether or not to disallow shared libs when runtime libs are static.
  16489. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16490. # Compiler flag to allow reflexive dlopens.
  16491. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16492. # Compiler flag to generate shared objects directly from archives.
  16493. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16494. # Whether the compiler copes with passing no objects directly.
  16495. compiler_needs_object=$lt_compiler_needs_object_CXX
  16496. # Create an old-style archive from a shared archive.
  16497. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16498. # Create a temporary old-style archive to link instead of a shared archive.
  16499. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16500. # Commands used to build a shared archive.
  16501. archive_cmds=$lt_archive_cmds_CXX
  16502. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16503. # Commands used to build a loadable module if different from building
  16504. # a shared archive.
  16505. module_cmds=$lt_module_cmds_CXX
  16506. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16507. # Whether we are building with GNU ld or not.
  16508. with_gnu_ld=$lt_with_gnu_ld_CXX
  16509. # Flag that allows shared libraries with undefined symbols to be built.
  16510. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16511. # Flag that enforces no undefined symbols.
  16512. no_undefined_flag=$lt_no_undefined_flag_CXX
  16513. # Flag to hardcode \$libdir into a binary during linking.
  16514. # This must work even if \$libdir does not exist
  16515. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16516. # Whether we need a single "-rpath" flag with a separated argument.
  16517. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16518. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16519. # DIR into the resulting binary.
  16520. hardcode_direct=$hardcode_direct_CXX
  16521. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16522. # DIR into the resulting binary and the resulting library dependency is
  16523. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16524. # library is relocated.
  16525. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16526. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16527. # into the resulting binary.
  16528. hardcode_minus_L=$hardcode_minus_L_CXX
  16529. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16530. # into the resulting binary.
  16531. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16532. # Set to "yes" if building a shared library automatically hardcodes DIR
  16533. # into the library and all subsequent libraries and executables linked
  16534. # against it.
  16535. hardcode_automatic=$hardcode_automatic_CXX
  16536. # Set to yes if linker adds runtime paths of dependent libraries
  16537. # to runtime path list.
  16538. inherit_rpath=$inherit_rpath_CXX
  16539. # Whether libtool must link a program against all its dependency libraries.
  16540. link_all_deplibs=$link_all_deplibs_CXX
  16541. # Set to "yes" if exported symbols are required.
  16542. always_export_symbols=$always_export_symbols_CXX
  16543. # The commands to list exported symbols.
  16544. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16545. # Symbols that should not be listed in the preloaded symbols.
  16546. exclude_expsyms=$lt_exclude_expsyms_CXX
  16547. # Symbols that must always be exported.
  16548. include_expsyms=$lt_include_expsyms_CXX
  16549. # Commands necessary for linking programs (against libraries) with templates.
  16550. prelink_cmds=$lt_prelink_cmds_CXX
  16551. # Commands necessary for finishing linking programs.
  16552. postlink_cmds=$lt_postlink_cmds_CXX
  16553. # Specify filename containing input files.
  16554. file_list_spec=$lt_file_list_spec_CXX
  16555. # How to hardcode a shared library path into an executable.
  16556. hardcode_action=$hardcode_action_CXX
  16557. # The directories searched by this compiler when creating a shared library.
  16558. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16559. # Dependencies to place before and after the objects being linked to
  16560. # create a shared library.
  16561. predep_objects=$lt_predep_objects_CXX
  16562. postdep_objects=$lt_postdep_objects_CXX
  16563. predeps=$lt_predeps_CXX
  16564. postdeps=$lt_postdeps_CXX
  16565. # The library search path used internally by the compiler when linking
  16566. # a shared library.
  16567. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16568. # ### END LIBTOOL TAG CONFIG: CXX
  16569. _LT_EOF
  16570. ;;
  16571. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16572. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16573. # are listed without --file. Let's play safe and only enable the eval
  16574. # if we detect the quoting.
  16575. case $CONFIG_FILES in
  16576. *\'*) eval set x "$CONFIG_FILES" ;;
  16577. *) set x $CONFIG_FILES ;;
  16578. esac
  16579. shift
  16580. for mf
  16581. do
  16582. # Strip MF so we end up with the name of the file.
  16583. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16584. # Check whether this is an Automake generated Makefile or not.
  16585. # We used to match only the files named `Makefile.in', but
  16586. # some people rename them; so instead we look at the file content.
  16587. # Grep'ing the first line is not enough: some people post-process
  16588. # each Makefile.in and add a new line on top of each file to say so.
  16589. # Grep'ing the whole file is not good either: AIX grep has a line
  16590. # limit of 2048, but all sed's we know have understand at least 4000.
  16591. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16592. dirpart=`$as_dirname -- "$mf" ||
  16593. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16594. X"$mf" : 'X\(//\)[^/]' \| \
  16595. X"$mf" : 'X\(//\)$' \| \
  16596. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16597. $as_echo X"$mf" |
  16598. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16599. s//\1/
  16600. q
  16601. }
  16602. /^X\(\/\/\)[^/].*/{
  16603. s//\1/
  16604. q
  16605. }
  16606. /^X\(\/\/\)$/{
  16607. s//\1/
  16608. q
  16609. }
  16610. /^X\(\/\).*/{
  16611. s//\1/
  16612. q
  16613. }
  16614. s/.*/./; q'`
  16615. else
  16616. continue
  16617. fi
  16618. # Extract the definition of DEPDIR, am__include, and am__quote
  16619. # from the Makefile without running `make'.
  16620. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16621. test -z "$DEPDIR" && continue
  16622. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16623. test -z "am__include" && continue
  16624. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16625. # When using ansi2knr, U may be empty or an underscore; expand it
  16626. U=`sed -n 's/^U = //p' < "$mf"`
  16627. # Find all dependency output files, they are included files with
  16628. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16629. # simplest approach to changing $(DEPDIR) to its actual value in the
  16630. # expansion.
  16631. for file in `sed -n "
  16632. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16633. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16634. # Make sure the directory exists.
  16635. test -f "$dirpart/$file" && continue
  16636. fdir=`$as_dirname -- "$file" ||
  16637. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16638. X"$file" : 'X\(//\)[^/]' \| \
  16639. X"$file" : 'X\(//\)$' \| \
  16640. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16641. $as_echo X"$file" |
  16642. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16643. s//\1/
  16644. q
  16645. }
  16646. /^X\(\/\/\)[^/].*/{
  16647. s//\1/
  16648. q
  16649. }
  16650. /^X\(\/\/\)$/{
  16651. s//\1/
  16652. q
  16653. }
  16654. /^X\(\/\).*/{
  16655. s//\1/
  16656. q
  16657. }
  16658. s/.*/./; q'`
  16659. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16660. # echo "creating $dirpart/$file"
  16661. echo '# dummy' > "$dirpart/$file"
  16662. done
  16663. done
  16664. }
  16665. ;;
  16666. esac
  16667. done # for ac_tag
  16668. as_fn_exit 0
  16669. _ACEOF
  16670. ac_clean_files=$ac_clean_files_save
  16671. test $ac_write_fail = 0 ||
  16672. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16673. # configure is writing to config.log, and then calls config.status.
  16674. # config.status does its own redirection, appending to config.log.
  16675. # Unfortunately, on DOS this fails, as config.log is still kept open
  16676. # by configure, so config.status won't be able to write to it; its
  16677. # output is simply discarded. So we exec the FD to /dev/null,
  16678. # effectively closing config.log, so it can be properly (re)opened and
  16679. # appended to by config.status. When coming back to configure, we
  16680. # need to make the FD available again.
  16681. if test "$no_create" != yes; then
  16682. ac_cs_success=:
  16683. ac_config_status_args=
  16684. test "$silent" = yes &&
  16685. ac_config_status_args="$ac_config_status_args --quiet"
  16686. exec 5>/dev/null
  16687. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16688. exec 5>>config.log
  16689. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16690. # would make configure fail if this is the last instruction.
  16691. $ac_cs_success || as_fn_exit 1
  16692. fi
  16693. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16695. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16696. fi