configure 535 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for clish 0.7.4alpha.
  4. #
  5. # Report bugs to <gmckerrell at users dot sourceforge dot net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # 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. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and gmckerrell at
  216. $0: users dot sourceforge dot net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='clish'
  640. PACKAGE_TARNAME='clish'
  641. PACKAGE_VERSION='0.7.4alpha'
  642. PACKAGE_STRING='clish 0.7.4alpha'
  643. PACKAGE_BUGREPORT='gmckerrell at users dot sourceforge dot net'
  644. PACKAGE_URL=''
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIBOBJS
  684. BFD_LIBS
  685. LUBHEAP_CFLAGS
  686. LUBHEAP_LIBS
  687. LUBHEAP_FALSE
  688. LUBHEAP_TRUE
  689. TCL_VERSION
  690. TCL_LIBS
  691. TCL_CFLAGS
  692. RT_CFLAGS
  693. RT_LIBS
  694. PTHREAD_CFLAGS
  695. PTHREAD_LIBS
  696. TINYXML_CXXFLAGS
  697. TINYXML_LIBS
  698. TINYRL_CFLAGS
  699. TINYRL_LIBS
  700. CLICONF_CFLAGS
  701. CLICONF_LIBS
  702. LUB_CFLAGS
  703. LUB_LIBS
  704. DEBUG_FALSE
  705. DEBUG_TRUE
  706. am__fastdepCXX_FALSE
  707. am__fastdepCXX_TRUE
  708. CXXDEPMODE
  709. am__fastdepCC_FALSE
  710. am__fastdepCC_TRUE
  711. CCDEPMODE
  712. AMDEPBACKSLASH
  713. AMDEP_FALSE
  714. AMDEP_TRUE
  715. am__quote
  716. am__include
  717. DEPDIR
  718. am__untar
  719. am__tar
  720. AMTAR
  721. am__leading_dot
  722. SET_MAKE
  723. AWK
  724. mkdir_p
  725. MKDIR_P
  726. INSTALL_STRIP_PROGRAM
  727. install_sh
  728. MAKEINFO
  729. AUTOHEADER
  730. AUTOMAKE
  731. AUTOCONF
  732. ACLOCAL
  733. VERSION
  734. PACKAGE
  735. CYGPATH_W
  736. am__isrc
  737. INSTALL_DATA
  738. INSTALL_SCRIPT
  739. INSTALL_PROGRAM
  740. CXXCPP
  741. CPP
  742. OTOOL64
  743. OTOOL
  744. LIPO
  745. NMEDIT
  746. DSYMUTIL
  747. lt_ECHO
  748. RANLIB
  749. STRIP
  750. AR
  751. LN_S
  752. NM
  753. ac_ct_DUMPBIN
  754. DUMPBIN
  755. LD
  756. FGREP
  757. EGREP
  758. GREP
  759. SED
  760. LIBTOOL
  761. OBJDUMP
  762. DLLTOOL
  763. AS
  764. host_os
  765. host_vendor
  766. host_cpu
  767. host
  768. build_os
  769. build_vendor
  770. build_cpu
  771. build
  772. ac_ct_CXX
  773. CXXFLAGS
  774. CXX
  775. OBJEXT
  776. EXEEXT
  777. ac_ct_CC
  778. CPPFLAGS
  779. LDFLAGS
  780. CFLAGS
  781. CC
  782. target_alias
  783. host_alias
  784. build_alias
  785. LIBS
  786. ECHO_T
  787. ECHO_N
  788. ECHO_C
  789. DEFS
  790. mandir
  791. localedir
  792. libdir
  793. psdir
  794. pdfdir
  795. dvidir
  796. htmldir
  797. infodir
  798. docdir
  799. oldincludedir
  800. includedir
  801. localstatedir
  802. sharedstatedir
  803. sysconfdir
  804. datadir
  805. datarootdir
  806. libexecdir
  807. sbindir
  808. bindir
  809. program_transform_name
  810. prefix
  811. exec_prefix
  812. PACKAGE_URL
  813. PACKAGE_BUGREPORT
  814. PACKAGE_STRING
  815. PACKAGE_VERSION
  816. PACKAGE_TARNAME
  817. PACKAGE_NAME
  818. PATH_SEPARATOR
  819. SHELL'
  820. ac_subst_files=''
  821. ac_user_opts='
  822. enable_option_checking
  823. enable_shared
  824. enable_static
  825. with_pic
  826. enable_fast_install
  827. with_gnu_ld
  828. enable_libtool_lock
  829. enable_dependency_tracking
  830. enable_debug
  831. with_pthread
  832. with_rt
  833. with_tcl
  834. enable_lubheap
  835. enable_gpl
  836. '
  837. ac_precious_vars='build_alias
  838. host_alias
  839. target_alias
  840. CC
  841. CFLAGS
  842. LDFLAGS
  843. LIBS
  844. CPPFLAGS
  845. CXX
  846. CXXFLAGS
  847. CCC
  848. CPP
  849. CXXCPP'
  850. # Initialize some variables set by options.
  851. ac_init_help=
  852. ac_init_version=false
  853. ac_unrecognized_opts=
  854. ac_unrecognized_sep=
  855. # The variables have the same names as the options, with
  856. # dashes changed to underlines.
  857. cache_file=/dev/null
  858. exec_prefix=NONE
  859. no_create=
  860. no_recursion=
  861. prefix=NONE
  862. program_prefix=NONE
  863. program_suffix=NONE
  864. program_transform_name=s,x,x,
  865. silent=
  866. site=
  867. srcdir=
  868. verbose=
  869. x_includes=NONE
  870. x_libraries=NONE
  871. # Installation directory options.
  872. # These are left unexpanded so users can "make install exec_prefix=/foo"
  873. # and all the variables that are supposed to be based on exec_prefix
  874. # by default will actually change.
  875. # Use braces instead of parens because sh, perl, etc. also accept them.
  876. # (The list follows the same order as the GNU Coding Standards.)
  877. bindir='${exec_prefix}/bin'
  878. sbindir='${exec_prefix}/sbin'
  879. libexecdir='${exec_prefix}/libexec'
  880. datarootdir='${prefix}/share'
  881. datadir='${datarootdir}'
  882. sysconfdir='${prefix}/etc'
  883. sharedstatedir='${prefix}/com'
  884. localstatedir='${prefix}/var'
  885. includedir='${prefix}/include'
  886. oldincludedir='/usr/include'
  887. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  888. infodir='${datarootdir}/info'
  889. htmldir='${docdir}'
  890. dvidir='${docdir}'
  891. pdfdir='${docdir}'
  892. psdir='${docdir}'
  893. libdir='${exec_prefix}/lib'
  894. localedir='${datarootdir}/locale'
  895. mandir='${datarootdir}/man'
  896. ac_prev=
  897. ac_dashdash=
  898. for ac_option
  899. do
  900. # If the previous option needs an argument, assign it.
  901. if test -n "$ac_prev"; then
  902. eval $ac_prev=\$ac_option
  903. ac_prev=
  904. continue
  905. fi
  906. case $ac_option in
  907. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  908. *) ac_optarg=yes ;;
  909. esac
  910. # Accept the important Cygnus configure options, so we can diagnose typos.
  911. case $ac_dashdash$ac_option in
  912. --)
  913. ac_dashdash=yes ;;
  914. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  915. ac_prev=bindir ;;
  916. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  917. bindir=$ac_optarg ;;
  918. -build | --build | --buil | --bui | --bu)
  919. ac_prev=build_alias ;;
  920. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  921. build_alias=$ac_optarg ;;
  922. -cache-file | --cache-file | --cache-fil | --cache-fi \
  923. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  924. ac_prev=cache_file ;;
  925. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  926. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  927. cache_file=$ac_optarg ;;
  928. --config-cache | -C)
  929. cache_file=config.cache ;;
  930. -datadir | --datadir | --datadi | --datad)
  931. ac_prev=datadir ;;
  932. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  933. datadir=$ac_optarg ;;
  934. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  935. | --dataroo | --dataro | --datar)
  936. ac_prev=datarootdir ;;
  937. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  938. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  939. datarootdir=$ac_optarg ;;
  940. -disable-* | --disable-*)
  941. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944. as_fn_error "invalid feature name: $ac_useropt"
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=no ;;
  955. -docdir | --docdir | --docdi | --doc | --do)
  956. ac_prev=docdir ;;
  957. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  958. docdir=$ac_optarg ;;
  959. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  960. ac_prev=dvidir ;;
  961. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  962. dvidir=$ac_optarg ;;
  963. -enable-* | --enable-*)
  964. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  965. # Reject names that are not valid shell variable names.
  966. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  967. as_fn_error "invalid feature name: $ac_useropt"
  968. ac_useropt_orig=$ac_useropt
  969. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  970. case $ac_user_opts in
  971. *"
  972. "enable_$ac_useropt"
  973. "*) ;;
  974. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  975. ac_unrecognized_sep=', ';;
  976. esac
  977. eval enable_$ac_useropt=\$ac_optarg ;;
  978. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  979. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  980. | --exec | --exe | --ex)
  981. ac_prev=exec_prefix ;;
  982. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  983. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  984. | --exec=* | --exe=* | --ex=*)
  985. exec_prefix=$ac_optarg ;;
  986. -gas | --gas | --ga | --g)
  987. # Obsolete; use --with-gas.
  988. with_gas=yes ;;
  989. -help | --help | --hel | --he | -h)
  990. ac_init_help=long ;;
  991. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  992. ac_init_help=recursive ;;
  993. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  994. ac_init_help=short ;;
  995. -host | --host | --hos | --ho)
  996. ac_prev=host_alias ;;
  997. -host=* | --host=* | --hos=* | --ho=*)
  998. host_alias=$ac_optarg ;;
  999. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1000. ac_prev=htmldir ;;
  1001. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1002. | --ht=*)
  1003. htmldir=$ac_optarg ;;
  1004. -includedir | --includedir | --includedi | --included | --include \
  1005. | --includ | --inclu | --incl | --inc)
  1006. ac_prev=includedir ;;
  1007. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1008. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1009. includedir=$ac_optarg ;;
  1010. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1011. ac_prev=infodir ;;
  1012. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1013. infodir=$ac_optarg ;;
  1014. -libdir | --libdir | --libdi | --libd)
  1015. ac_prev=libdir ;;
  1016. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1017. libdir=$ac_optarg ;;
  1018. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1019. | --libexe | --libex | --libe)
  1020. ac_prev=libexecdir ;;
  1021. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1022. | --libexe=* | --libex=* | --libe=*)
  1023. libexecdir=$ac_optarg ;;
  1024. -localedir | --localedir | --localedi | --localed | --locale)
  1025. ac_prev=localedir ;;
  1026. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1027. localedir=$ac_optarg ;;
  1028. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1029. | --localstate | --localstat | --localsta | --localst | --locals)
  1030. ac_prev=localstatedir ;;
  1031. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1032. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1033. localstatedir=$ac_optarg ;;
  1034. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1035. ac_prev=mandir ;;
  1036. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1037. mandir=$ac_optarg ;;
  1038. -nfp | --nfp | --nf)
  1039. # Obsolete; use --without-fp.
  1040. with_fp=no ;;
  1041. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1042. | --no-cr | --no-c | -n)
  1043. no_create=yes ;;
  1044. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1045. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1046. no_recursion=yes ;;
  1047. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1048. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1049. | --oldin | --oldi | --old | --ol | --o)
  1050. ac_prev=oldincludedir ;;
  1051. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1052. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1053. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1054. oldincludedir=$ac_optarg ;;
  1055. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1056. ac_prev=prefix ;;
  1057. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1058. prefix=$ac_optarg ;;
  1059. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1060. | --program-pre | --program-pr | --program-p)
  1061. ac_prev=program_prefix ;;
  1062. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1063. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1064. program_prefix=$ac_optarg ;;
  1065. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1066. | --program-suf | --program-su | --program-s)
  1067. ac_prev=program_suffix ;;
  1068. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1069. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1070. program_suffix=$ac_optarg ;;
  1071. -program-transform-name | --program-transform-name \
  1072. | --program-transform-nam | --program-transform-na \
  1073. | --program-transform-n | --program-transform- \
  1074. | --program-transform | --program-transfor \
  1075. | --program-transfo | --program-transf \
  1076. | --program-trans | --program-tran \
  1077. | --progr-tra | --program-tr | --program-t)
  1078. ac_prev=program_transform_name ;;
  1079. -program-transform-name=* | --program-transform-name=* \
  1080. | --program-transform-nam=* | --program-transform-na=* \
  1081. | --program-transform-n=* | --program-transform-=* \
  1082. | --program-transform=* | --program-transfor=* \
  1083. | --program-transfo=* | --program-transf=* \
  1084. | --program-trans=* | --program-tran=* \
  1085. | --progr-tra=* | --program-tr=* | --program-t=*)
  1086. program_transform_name=$ac_optarg ;;
  1087. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1088. ac_prev=pdfdir ;;
  1089. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1090. pdfdir=$ac_optarg ;;
  1091. -psdir | --psdir | --psdi | --psd | --ps)
  1092. ac_prev=psdir ;;
  1093. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1094. psdir=$ac_optarg ;;
  1095. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1096. | -silent | --silent | --silen | --sile | --sil)
  1097. silent=yes ;;
  1098. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1099. ac_prev=sbindir ;;
  1100. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1101. | --sbi=* | --sb=*)
  1102. sbindir=$ac_optarg ;;
  1103. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1104. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1105. | --sharedst | --shareds | --shared | --share | --shar \
  1106. | --sha | --sh)
  1107. ac_prev=sharedstatedir ;;
  1108. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1109. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1110. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1111. | --sha=* | --sh=*)
  1112. sharedstatedir=$ac_optarg ;;
  1113. -site | --site | --sit)
  1114. ac_prev=site ;;
  1115. -site=* | --site=* | --sit=*)
  1116. site=$ac_optarg ;;
  1117. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1118. ac_prev=srcdir ;;
  1119. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1120. srcdir=$ac_optarg ;;
  1121. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1122. | --syscon | --sysco | --sysc | --sys | --sy)
  1123. ac_prev=sysconfdir ;;
  1124. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1125. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1126. sysconfdir=$ac_optarg ;;
  1127. -target | --target | --targe | --targ | --tar | --ta | --t)
  1128. ac_prev=target_alias ;;
  1129. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1130. target_alias=$ac_optarg ;;
  1131. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1132. verbose=yes ;;
  1133. -version | --version | --versio | --versi | --vers | -V)
  1134. ac_init_version=: ;;
  1135. -with-* | --with-*)
  1136. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1139. as_fn_error "invalid package name: $ac_useropt"
  1140. ac_useropt_orig=$ac_useropt
  1141. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. case $ac_user_opts in
  1143. *"
  1144. "with_$ac_useropt"
  1145. "*) ;;
  1146. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1147. ac_unrecognized_sep=', ';;
  1148. esac
  1149. eval with_$ac_useropt=\$ac_optarg ;;
  1150. -without-* | --without-*)
  1151. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1152. # Reject names that are not valid shell variable names.
  1153. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1154. as_fn_error "invalid package name: $ac_useropt"
  1155. ac_useropt_orig=$ac_useropt
  1156. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1157. case $ac_user_opts in
  1158. *"
  1159. "with_$ac_useropt"
  1160. "*) ;;
  1161. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1162. ac_unrecognized_sep=', ';;
  1163. esac
  1164. eval with_$ac_useropt=no ;;
  1165. --x)
  1166. # Obsolete; use --with-x.
  1167. with_x=yes ;;
  1168. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1169. | --x-incl | --x-inc | --x-in | --x-i)
  1170. ac_prev=x_includes ;;
  1171. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1172. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1173. x_includes=$ac_optarg ;;
  1174. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1175. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1176. ac_prev=x_libraries ;;
  1177. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1178. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1179. x_libraries=$ac_optarg ;;
  1180. -*) as_fn_error "unrecognized option: \`$ac_option'
  1181. Try \`$0 --help' for more information."
  1182. ;;
  1183. *=*)
  1184. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1185. # Reject names that are not valid shell variable names.
  1186. case $ac_envvar in #(
  1187. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1188. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1189. esac
  1190. eval $ac_envvar=\$ac_optarg
  1191. export $ac_envvar ;;
  1192. *)
  1193. # FIXME: should be removed in autoconf 3.0.
  1194. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1195. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1196. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1197. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1198. ;;
  1199. esac
  1200. done
  1201. if test -n "$ac_prev"; then
  1202. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1203. as_fn_error "missing argument to $ac_option"
  1204. fi
  1205. if test -n "$ac_unrecognized_opts"; then
  1206. case $enable_option_checking in
  1207. no) ;;
  1208. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1209. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1210. esac
  1211. fi
  1212. # Check all directory arguments for consistency.
  1213. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1214. datadir sysconfdir sharedstatedir localstatedir includedir \
  1215. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1216. libdir localedir mandir
  1217. do
  1218. eval ac_val=\$$ac_var
  1219. # Remove trailing slashes.
  1220. case $ac_val in
  1221. */ )
  1222. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1223. eval $ac_var=\$ac_val;;
  1224. esac
  1225. # Be sure to have absolute directory names.
  1226. case $ac_val in
  1227. [\\/$]* | ?:[\\/]* ) continue;;
  1228. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1229. esac
  1230. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1231. done
  1232. # There might be people who depend on the old broken behavior: `$host'
  1233. # used to hold the argument of --host etc.
  1234. # FIXME: To remove some day.
  1235. build=$build_alias
  1236. host=$host_alias
  1237. target=$target_alias
  1238. # FIXME: To remove some day.
  1239. if test "x$host_alias" != x; then
  1240. if test "x$build_alias" = x; then
  1241. cross_compiling=maybe
  1242. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1243. If a cross compiler is detected then cross compile mode will be used." >&2
  1244. elif test "x$build_alias" != "x$host_alias"; then
  1245. cross_compiling=yes
  1246. fi
  1247. fi
  1248. ac_tool_prefix=
  1249. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1250. test "$silent" = yes && exec 6>/dev/null
  1251. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1252. ac_ls_di=`ls -di .` &&
  1253. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1254. as_fn_error "working directory cannot be determined"
  1255. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1256. as_fn_error "pwd does not report name of working directory"
  1257. # Find the source files, if location was not specified.
  1258. if test -z "$srcdir"; then
  1259. ac_srcdir_defaulted=yes
  1260. # Try the directory containing this script, then the parent directory.
  1261. ac_confdir=`$as_dirname -- "$as_myself" ||
  1262. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1263. X"$as_myself" : 'X\(//\)[^/]' \| \
  1264. X"$as_myself" : 'X\(//\)$' \| \
  1265. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1266. $as_echo X"$as_myself" |
  1267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1268. s//\1/
  1269. q
  1270. }
  1271. /^X\(\/\/\)[^/].*/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)$/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\).*/{
  1280. s//\1/
  1281. q
  1282. }
  1283. s/.*/./; q'`
  1284. srcdir=$ac_confdir
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. srcdir=..
  1287. fi
  1288. else
  1289. ac_srcdir_defaulted=no
  1290. fi
  1291. if test ! -r "$srcdir/$ac_unique_file"; then
  1292. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1293. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1294. fi
  1295. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1296. ac_abs_confdir=`(
  1297. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1298. pwd)`
  1299. # When building in place, set srcdir=.
  1300. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1301. srcdir=.
  1302. fi
  1303. # Remove unnecessary trailing slashes from srcdir.
  1304. # Double slashes in file names in object file debugging info
  1305. # mess up M-x gdb in Emacs.
  1306. case $srcdir in
  1307. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1308. esac
  1309. for ac_var in $ac_precious_vars; do
  1310. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1311. eval ac_env_${ac_var}_value=\$${ac_var}
  1312. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1314. done
  1315. #
  1316. # Report the --help message.
  1317. #
  1318. if test "$ac_init_help" = "long"; then
  1319. # Omit some internal or obsolete options to make the list less imposing.
  1320. # This message is too long to be a string in the A/UX 3.1 sh.
  1321. cat <<_ACEOF
  1322. \`configure' configures clish 0.7.4alpha to adapt to many kinds of systems.
  1323. Usage: $0 [OPTION]... [VAR=VALUE]...
  1324. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1325. VAR=VALUE. See below for descriptions of some of the useful variables.
  1326. Defaults for the options are specified in brackets.
  1327. Configuration:
  1328. -h, --help display this help and exit
  1329. --help=short display options specific to this package
  1330. --help=recursive display the short help of all the included packages
  1331. -V, --version display version information and exit
  1332. -q, --quiet, --silent do not print \`checking...' messages
  1333. --cache-file=FILE cache test results in FILE [disabled]
  1334. -C, --config-cache alias for \`--cache-file=config.cache'
  1335. -n, --no-create do not create output files
  1336. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1337. Installation directories:
  1338. --prefix=PREFIX install architecture-independent files in PREFIX
  1339. [$ac_default_prefix]
  1340. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1341. [PREFIX]
  1342. By default, \`make install' will install all the files in
  1343. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1344. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1345. for instance \`--prefix=\$HOME'.
  1346. For better control, use the options below.
  1347. Fine tuning of the installation directories:
  1348. --bindir=DIR user executables [EPREFIX/bin]
  1349. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1350. --libexecdir=DIR program executables [EPREFIX/libexec]
  1351. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1352. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1353. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1354. --libdir=DIR object code libraries [EPREFIX/lib]
  1355. --includedir=DIR C header files [PREFIX/include]
  1356. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1357. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1358. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1359. --infodir=DIR info documentation [DATAROOTDIR/info]
  1360. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1361. --mandir=DIR man documentation [DATAROOTDIR/man]
  1362. --docdir=DIR documentation root [DATAROOTDIR/doc/clish]
  1363. --htmldir=DIR html documentation [DOCDIR]
  1364. --dvidir=DIR dvi documentation [DOCDIR]
  1365. --pdfdir=DIR pdf documentation [DOCDIR]
  1366. --psdir=DIR ps documentation [DOCDIR]
  1367. _ACEOF
  1368. cat <<\_ACEOF
  1369. Program names:
  1370. --program-prefix=PREFIX prepend PREFIX to installed program names
  1371. --program-suffix=SUFFIX append SUFFIX to installed program names
  1372. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1373. System types:
  1374. --build=BUILD configure for building on BUILD [guessed]
  1375. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1376. _ACEOF
  1377. fi
  1378. if test -n "$ac_init_help"; then
  1379. case $ac_init_help in
  1380. short | recursive ) echo "Configuration of clish 0.7.4alpha:";;
  1381. esac
  1382. cat <<\_ACEOF
  1383. Optional Features:
  1384. --disable-option-checking ignore unrecognized --enable/--with options
  1385. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1386. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1387. --enable-shared[=PKGS] build shared libraries [default=yes]
  1388. --enable-static[=PKGS] build static libraries [default=yes]
  1389. --enable-fast-install[=PKGS]
  1390. optimize for fast installation [default=yes]
  1391. --disable-libtool-lock avoid locking (might break parallel builds)
  1392. --disable-dependency-tracking speeds up one-time build
  1393. --enable-dependency-tracking do not reject slow dependency extractors
  1394. --enable-debug Turn on debugging including asserts [default=no]
  1395. --enable-lubheap Replace standard memory libaries with lubheap
  1396. (EXPERIMENTAL) [default=no]
  1397. --enable-gpl Link with GPL licenced libraries [default=yes]
  1398. Optional Packages:
  1399. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1400. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1401. --with-pic try to use only PIC/non-PIC objects [default=use
  1402. both]
  1403. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1404. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1405. --with-rt=DIR Use POSIX real time library distribution in DIR
  1406. --with-tcl=DIR Use TCL library distribution in DIR
  1407. Some influential environment variables:
  1408. CC C compiler command
  1409. CFLAGS C compiler flags
  1410. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1411. nonstandard directory <lib dir>
  1412. LIBS libraries to pass to the linker, e.g. -l<library>
  1413. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1414. you have headers in a nonstandard directory <include dir>
  1415. CXX C++ compiler command
  1416. CXXFLAGS C++ compiler flags
  1417. CPP C preprocessor
  1418. CXXCPP C++ preprocessor
  1419. Use these variables to override the choices made by `configure' or to help
  1420. it to find libraries and programs with nonstandard names/locations.
  1421. Report bugs to <gmckerrell at users dot sourceforge dot net>.
  1422. _ACEOF
  1423. ac_status=$?
  1424. fi
  1425. if test "$ac_init_help" = "recursive"; then
  1426. # If there are subdirs, report their specific --help.
  1427. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1428. test -d "$ac_dir" ||
  1429. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1430. continue
  1431. ac_builddir=.
  1432. case "$ac_dir" in
  1433. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1434. *)
  1435. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1436. # A ".." for each directory in $ac_dir_suffix.
  1437. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1438. case $ac_top_builddir_sub in
  1439. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1440. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1441. esac ;;
  1442. esac
  1443. ac_abs_top_builddir=$ac_pwd
  1444. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1445. # for backward compatibility:
  1446. ac_top_builddir=$ac_top_build_prefix
  1447. case $srcdir in
  1448. .) # We are building in place.
  1449. ac_srcdir=.
  1450. ac_top_srcdir=$ac_top_builddir_sub
  1451. ac_abs_top_srcdir=$ac_pwd ;;
  1452. [\\/]* | ?:[\\/]* ) # Absolute name.
  1453. ac_srcdir=$srcdir$ac_dir_suffix;
  1454. ac_top_srcdir=$srcdir
  1455. ac_abs_top_srcdir=$srcdir ;;
  1456. *) # Relative name.
  1457. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1458. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1459. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1460. esac
  1461. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1462. cd "$ac_dir" || { ac_status=$?; continue; }
  1463. # Check for guested configure.
  1464. if test -f "$ac_srcdir/configure.gnu"; then
  1465. echo &&
  1466. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1467. elif test -f "$ac_srcdir/configure"; then
  1468. echo &&
  1469. $SHELL "$ac_srcdir/configure" --help=recursive
  1470. else
  1471. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1472. fi || ac_status=$?
  1473. cd "$ac_pwd" || { ac_status=$?; break; }
  1474. done
  1475. fi
  1476. test -n "$ac_init_help" && exit $ac_status
  1477. if $ac_init_version; then
  1478. cat <<\_ACEOF
  1479. clish configure 0.7.4alpha
  1480. generated by GNU Autoconf 2.65
  1481. Copyright (C) 2009 Free Software Foundation, Inc.
  1482. This configure script is free software; the Free Software Foundation
  1483. gives unlimited permission to copy, distribute and modify it.
  1484. _ACEOF
  1485. exit
  1486. fi
  1487. ## ------------------------ ##
  1488. ## Autoconf initialization. ##
  1489. ## ------------------------ ##
  1490. # ac_fn_c_try_compile LINENO
  1491. # --------------------------
  1492. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1493. ac_fn_c_try_compile ()
  1494. {
  1495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1496. rm -f conftest.$ac_objext
  1497. if { { ac_try="$ac_compile"
  1498. case "(($ac_try" in
  1499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1500. *) ac_try_echo=$ac_try;;
  1501. esac
  1502. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1503. $as_echo "$ac_try_echo"; } >&5
  1504. (eval "$ac_compile") 2>conftest.err
  1505. ac_status=$?
  1506. if test -s conftest.err; then
  1507. grep -v '^ *+' conftest.err >conftest.er1
  1508. cat conftest.er1 >&5
  1509. mv -f conftest.er1 conftest.err
  1510. fi
  1511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1512. test $ac_status = 0; } && {
  1513. test -z "$ac_c_werror_flag" ||
  1514. test ! -s conftest.err
  1515. } && test -s conftest.$ac_objext; then :
  1516. ac_retval=0
  1517. else
  1518. $as_echo "$as_me: failed program was:" >&5
  1519. sed 's/^/| /' conftest.$ac_ext >&5
  1520. ac_retval=1
  1521. fi
  1522. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1523. as_fn_set_status $ac_retval
  1524. } # ac_fn_c_try_compile
  1525. # ac_fn_cxx_try_compile LINENO
  1526. # ----------------------------
  1527. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1528. ac_fn_cxx_try_compile ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. rm -f conftest.$ac_objext
  1532. if { { ac_try="$ac_compile"
  1533. case "(($ac_try" in
  1534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1535. *) ac_try_echo=$ac_try;;
  1536. esac
  1537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1538. $as_echo "$ac_try_echo"; } >&5
  1539. (eval "$ac_compile") 2>conftest.err
  1540. ac_status=$?
  1541. if test -s conftest.err; then
  1542. grep -v '^ *+' conftest.err >conftest.er1
  1543. cat conftest.er1 >&5
  1544. mv -f conftest.er1 conftest.err
  1545. fi
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } && {
  1548. test -z "$ac_cxx_werror_flag" ||
  1549. test ! -s conftest.err
  1550. } && test -s conftest.$ac_objext; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_cxx_try_compile
  1560. # ac_fn_c_try_link LINENO
  1561. # -----------------------
  1562. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_c_try_link ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. rm -f conftest.$ac_objext conftest$ac_exeext
  1567. if { { ac_try="$ac_link"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_link") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } && {
  1583. test -z "$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. } && test -s conftest$ac_exeext && {
  1586. test "$cross_compiling" = yes ||
  1587. $as_test_x conftest$ac_exeext
  1588. }; then :
  1589. ac_retval=0
  1590. else
  1591. $as_echo "$as_me: failed program was:" >&5
  1592. sed 's/^/| /' conftest.$ac_ext >&5
  1593. ac_retval=1
  1594. fi
  1595. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1596. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1597. # interfere with the next link command; also delete a directory that is
  1598. # left behind by Apple's compiler. We do this before executing the actions.
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_link
  1603. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists and can be compiled using the include files in
  1606. # INCLUDES, setting the cache variable VAR accordingly.
  1607. ac_fn_c_check_header_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. #include <$2>
  1619. _ACEOF
  1620. if ac_fn_c_try_compile "$LINENO"; then :
  1621. eval "$3=yes"
  1622. else
  1623. eval "$3=no"
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1631. } # ac_fn_c_check_header_compile
  1632. # ac_fn_c_try_cpp LINENO
  1633. # ----------------------
  1634. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_cpp ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1639. case "(($ac_try" in
  1640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641. *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. $as_echo "$ac_try_echo"; } >&5
  1645. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1646. ac_status=$?
  1647. if test -s conftest.err; then
  1648. grep -v '^ *+' conftest.err >conftest.er1
  1649. cat conftest.er1 >&5
  1650. mv -f conftest.er1 conftest.err
  1651. fi
  1652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653. test $ac_status = 0; } >/dev/null && {
  1654. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1655. test ! -s conftest.err
  1656. }; then :
  1657. ac_retval=0
  1658. else
  1659. $as_echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. ac_retval=1
  1662. fi
  1663. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1664. as_fn_set_status $ac_retval
  1665. } # ac_fn_c_try_cpp
  1666. # ac_fn_c_try_run LINENO
  1667. # ----------------------
  1668. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1669. # that executables *can* be run.
  1670. ac_fn_c_try_run ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. if { { ac_try="$ac_link"
  1674. case "(($ac_try" in
  1675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1676. *) ac_try_echo=$ac_try;;
  1677. esac
  1678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1679. $as_echo "$ac_try_echo"; } >&5
  1680. (eval "$ac_link") 2>&5
  1681. ac_status=$?
  1682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1683. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1684. { { case "(($ac_try" in
  1685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1686. *) ac_try_echo=$ac_try;;
  1687. esac
  1688. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1689. $as_echo "$ac_try_echo"; } >&5
  1690. (eval "$ac_try") 2>&5
  1691. ac_status=$?
  1692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1693. test $ac_status = 0; }; }; then :
  1694. ac_retval=0
  1695. else
  1696. $as_echo "$as_me: program exited with status $ac_status" >&5
  1697. $as_echo "$as_me: failed program was:" >&5
  1698. sed 's/^/| /' conftest.$ac_ext >&5
  1699. ac_retval=$ac_status
  1700. fi
  1701. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1702. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1703. as_fn_set_status $ac_retval
  1704. } # ac_fn_c_try_run
  1705. # ac_fn_c_check_func LINENO FUNC VAR
  1706. # ----------------------------------
  1707. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1708. ac_fn_c_check_func ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1712. $as_echo_n "checking for $2... " >&6; }
  1713. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1714. $as_echo_n "(cached) " >&6
  1715. else
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1719. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1720. #define $2 innocuous_$2
  1721. /* System header to define __stub macros and hopefully few prototypes,
  1722. which can conflict with char $2 (); below.
  1723. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1724. <limits.h> exists even on freestanding compilers. */
  1725. #ifdef __STDC__
  1726. # include <limits.h>
  1727. #else
  1728. # include <assert.h>
  1729. #endif
  1730. #undef $2
  1731. /* Override any GCC internal prototype to avoid an error.
  1732. Use char because int might match the return type of a GCC
  1733. builtin and then its argument prototype would still apply. */
  1734. #ifdef __cplusplus
  1735. extern "C"
  1736. #endif
  1737. char $2 ();
  1738. /* The GNU C library defines this for functions which it implements
  1739. to always fail with ENOSYS. Some functions are actually named
  1740. something starting with __ and the normal name is an alias. */
  1741. #if defined __stub_$2 || defined __stub___$2
  1742. choke me
  1743. #endif
  1744. int
  1745. main ()
  1746. {
  1747. return $2 ();
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_link "$LINENO"; then :
  1753. eval "$3=yes"
  1754. else
  1755. eval "$3=no"
  1756. fi
  1757. rm -f core conftest.err conftest.$ac_objext \
  1758. conftest$ac_exeext conftest.$ac_ext
  1759. fi
  1760. eval ac_res=\$$3
  1761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1762. $as_echo "$ac_res" >&6; }
  1763. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1764. } # ac_fn_c_check_func
  1765. # ac_fn_cxx_try_cpp LINENO
  1766. # ------------------------
  1767. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1768. ac_fn_cxx_try_cpp ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1772. case "(($ac_try" in
  1773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1774. *) ac_try_echo=$ac_try;;
  1775. esac
  1776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1777. $as_echo "$ac_try_echo"; } >&5
  1778. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1779. ac_status=$?
  1780. if test -s conftest.err; then
  1781. grep -v '^ *+' conftest.err >conftest.er1
  1782. cat conftest.er1 >&5
  1783. mv -f conftest.er1 conftest.err
  1784. fi
  1785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1786. test $ac_status = 0; } >/dev/null && {
  1787. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1788. test ! -s conftest.err
  1789. }; then :
  1790. ac_retval=0
  1791. else
  1792. $as_echo "$as_me: failed program was:" >&5
  1793. sed 's/^/| /' conftest.$ac_ext >&5
  1794. ac_retval=1
  1795. fi
  1796. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_cxx_try_cpp
  1799. # ac_fn_cxx_try_link LINENO
  1800. # -------------------------
  1801. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_cxx_try_link ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. rm -f conftest.$ac_objext conftest$ac_exeext
  1806. if { { ac_try="$ac_link"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_link") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && {
  1822. test -z "$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. } && test -s conftest$ac_exeext && {
  1825. test "$cross_compiling" = yes ||
  1826. $as_test_x conftest$ac_exeext
  1827. }; then :
  1828. ac_retval=0
  1829. else
  1830. $as_echo "$as_me: failed program was:" >&5
  1831. sed 's/^/| /' conftest.$ac_ext >&5
  1832. ac_retval=1
  1833. fi
  1834. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1835. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1836. # interfere with the next link command; also delete a directory that is
  1837. # left behind by Apple's compiler. We do this before executing the actions.
  1838. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1839. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1840. as_fn_set_status $ac_retval
  1841. } # ac_fn_cxx_try_link
  1842. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1843. # --------------------------------------------
  1844. # Tries to find the compile-time value of EXPR in a program that includes
  1845. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1846. # computed
  1847. ac_fn_c_compute_int ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. if test "$cross_compiling" = yes; then
  1851. # Depending upon the size, compute the lo and hi bounds.
  1852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1853. /* end confdefs.h. */
  1854. $4
  1855. int
  1856. main ()
  1857. {
  1858. static int test_array [1 - 2 * !(($2) >= 0)];
  1859. test_array [0] = 0
  1860. ;
  1861. return 0;
  1862. }
  1863. _ACEOF
  1864. if ac_fn_c_try_compile "$LINENO"; then :
  1865. ac_lo=0 ac_mid=0
  1866. while :; do
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. int
  1871. main ()
  1872. {
  1873. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1874. test_array [0] = 0
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. ac_hi=$ac_mid; break
  1881. else
  1882. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1883. if test $ac_lo -le $ac_mid; then
  1884. ac_lo= ac_hi=
  1885. break
  1886. fi
  1887. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. done
  1891. else
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. $4
  1895. int
  1896. main ()
  1897. {
  1898. static int test_array [1 - 2 * !(($2) < 0)];
  1899. test_array [0] = 0
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_c_try_compile "$LINENO"; then :
  1905. ac_hi=-1 ac_mid=-1
  1906. while :; do
  1907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1908. /* end confdefs.h. */
  1909. $4
  1910. int
  1911. main ()
  1912. {
  1913. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1914. test_array [0] = 0
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_c_try_compile "$LINENO"; then :
  1920. ac_lo=$ac_mid; break
  1921. else
  1922. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1923. if test $ac_mid -le $ac_hi; then
  1924. ac_lo= ac_hi=
  1925. break
  1926. fi
  1927. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1930. done
  1931. else
  1932. ac_lo= ac_hi=
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. # Binary search between lo and hi bounds.
  1938. while test "x$ac_lo" != "x$ac_hi"; do
  1939. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1941. /* end confdefs.h. */
  1942. $4
  1943. int
  1944. main ()
  1945. {
  1946. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1947. test_array [0] = 0
  1948. ;
  1949. return 0;
  1950. }
  1951. _ACEOF
  1952. if ac_fn_c_try_compile "$LINENO"; then :
  1953. ac_hi=$ac_mid
  1954. else
  1955. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1956. fi
  1957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1958. done
  1959. case $ac_lo in #((
  1960. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1961. '') ac_retval=1 ;;
  1962. esac
  1963. else
  1964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1965. /* end confdefs.h. */
  1966. $4
  1967. static long int longval () { return $2; }
  1968. static unsigned long int ulongval () { return $2; }
  1969. #include <stdio.h>
  1970. #include <stdlib.h>
  1971. int
  1972. main ()
  1973. {
  1974. FILE *f = fopen ("conftest.val", "w");
  1975. if (! f)
  1976. return 1;
  1977. if (($2) < 0)
  1978. {
  1979. long int i = longval ();
  1980. if (i != ($2))
  1981. return 1;
  1982. fprintf (f, "%ld", i);
  1983. }
  1984. else
  1985. {
  1986. unsigned long int i = ulongval ();
  1987. if (i != ($2))
  1988. return 1;
  1989. fprintf (f, "%lu", i);
  1990. }
  1991. /* Do not output a trailing newline, as this causes \r\n confusion
  1992. on some platforms. */
  1993. return ferror (f) || fclose (f) != 0;
  1994. ;
  1995. return 0;
  1996. }
  1997. _ACEOF
  1998. if ac_fn_c_try_run "$LINENO"; then :
  1999. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2000. else
  2001. ac_retval=1
  2002. fi
  2003. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2004. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2005. rm -f conftest.val
  2006. fi
  2007. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2008. as_fn_set_status $ac_retval
  2009. } # ac_fn_c_compute_int
  2010. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2011. # -------------------------------------------------------
  2012. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2013. # the include files in INCLUDES and setting the cache variable VAR
  2014. # accordingly.
  2015. ac_fn_c_check_header_mongrel ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2020. $as_echo_n "checking for $2... " >&6; }
  2021. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2022. $as_echo_n "(cached) " >&6
  2023. fi
  2024. eval ac_res=\$$3
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2026. $as_echo "$ac_res" >&6; }
  2027. else
  2028. # Is the header compilable?
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2030. $as_echo_n "checking $2 usability... " >&6; }
  2031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2032. /* end confdefs.h. */
  2033. $4
  2034. #include <$2>
  2035. _ACEOF
  2036. if ac_fn_c_try_compile "$LINENO"; then :
  2037. ac_header_compiler=yes
  2038. else
  2039. ac_header_compiler=no
  2040. fi
  2041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2043. $as_echo "$ac_header_compiler" >&6; }
  2044. # Is the header present?
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2046. $as_echo_n "checking $2 presence... " >&6; }
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. #include <$2>
  2050. _ACEOF
  2051. if ac_fn_c_try_cpp "$LINENO"; then :
  2052. ac_header_preproc=yes
  2053. else
  2054. ac_header_preproc=no
  2055. fi
  2056. rm -f conftest.err conftest.$ac_ext
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2058. $as_echo "$ac_header_preproc" >&6; }
  2059. # So? What about this header?
  2060. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2061. yes:no: )
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2063. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2065. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2066. ;;
  2067. no:yes:* )
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2069. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2071. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2073. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2075. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2077. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2078. ( cat <<\_ASBOX
  2079. ## ---------------------------------------------------------- ##
  2080. ## Report this to gmckerrell at users dot sourceforge dot net ##
  2081. ## ---------------------------------------------------------- ##
  2082. _ASBOX
  2083. ) | sed "s/^/$as_me: WARNING: /" >&2
  2084. ;;
  2085. esac
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2087. $as_echo_n "checking for $2... " >&6; }
  2088. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2089. $as_echo_n "(cached) " >&6
  2090. else
  2091. eval "$3=\$ac_header_compiler"
  2092. fi
  2093. eval ac_res=\$$3
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2095. $as_echo "$ac_res" >&6; }
  2096. fi
  2097. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2098. } # ac_fn_c_check_header_mongrel
  2099. cat >config.log <<_ACEOF
  2100. This file contains any messages produced by compilers while
  2101. running configure, to aid debugging if configure makes a mistake.
  2102. It was created by clish $as_me 0.7.4alpha, which was
  2103. generated by GNU Autoconf 2.65. Invocation command line was
  2104. $ $0 $@
  2105. _ACEOF
  2106. exec 5>>config.log
  2107. {
  2108. cat <<_ASUNAME
  2109. ## --------- ##
  2110. ## Platform. ##
  2111. ## --------- ##
  2112. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2113. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2114. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2115. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2116. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2117. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2118. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2119. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2120. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2121. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2122. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2123. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2124. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2125. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2126. _ASUNAME
  2127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2128. for as_dir in $PATH
  2129. do
  2130. IFS=$as_save_IFS
  2131. test -z "$as_dir" && as_dir=.
  2132. $as_echo "PATH: $as_dir"
  2133. done
  2134. IFS=$as_save_IFS
  2135. } >&5
  2136. cat >&5 <<_ACEOF
  2137. ## ----------- ##
  2138. ## Core tests. ##
  2139. ## ----------- ##
  2140. _ACEOF
  2141. # Keep a trace of the command line.
  2142. # Strip out --no-create and --no-recursion so they do not pile up.
  2143. # Strip out --silent because we don't want to record it for future runs.
  2144. # Also quote any args containing shell meta-characters.
  2145. # Make two passes to allow for proper duplicate-argument suppression.
  2146. ac_configure_args=
  2147. ac_configure_args0=
  2148. ac_configure_args1=
  2149. ac_must_keep_next=false
  2150. for ac_pass in 1 2
  2151. do
  2152. for ac_arg
  2153. do
  2154. case $ac_arg in
  2155. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2156. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2157. | -silent | --silent | --silen | --sile | --sil)
  2158. continue ;;
  2159. *\'*)
  2160. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2161. esac
  2162. case $ac_pass in
  2163. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2164. 2)
  2165. as_fn_append ac_configure_args1 " '$ac_arg'"
  2166. if test $ac_must_keep_next = true; then
  2167. ac_must_keep_next=false # Got value, back to normal.
  2168. else
  2169. case $ac_arg in
  2170. *=* | --config-cache | -C | -disable-* | --disable-* \
  2171. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2172. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2173. | -with-* | --with-* | -without-* | --without-* | --x)
  2174. case "$ac_configure_args0 " in
  2175. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2176. esac
  2177. ;;
  2178. -* ) ac_must_keep_next=true ;;
  2179. esac
  2180. fi
  2181. as_fn_append ac_configure_args " '$ac_arg'"
  2182. ;;
  2183. esac
  2184. done
  2185. done
  2186. { ac_configure_args0=; unset ac_configure_args0;}
  2187. { ac_configure_args1=; unset ac_configure_args1;}
  2188. # When interrupted or exit'd, cleanup temporary files, and complete
  2189. # config.log. We remove comments because anyway the quotes in there
  2190. # would cause problems or look ugly.
  2191. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2192. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2193. trap 'exit_status=$?
  2194. # Save into config.log some information that might help in debugging.
  2195. {
  2196. echo
  2197. cat <<\_ASBOX
  2198. ## ---------------- ##
  2199. ## Cache variables. ##
  2200. ## ---------------- ##
  2201. _ASBOX
  2202. echo
  2203. # The following way of writing the cache mishandles newlines in values,
  2204. (
  2205. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2206. eval ac_val=\$$ac_var
  2207. case $ac_val in #(
  2208. *${as_nl}*)
  2209. case $ac_var in #(
  2210. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2211. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2212. esac
  2213. case $ac_var in #(
  2214. _ | IFS | as_nl) ;; #(
  2215. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2216. *) { eval $ac_var=; unset $ac_var;} ;;
  2217. esac ;;
  2218. esac
  2219. done
  2220. (set) 2>&1 |
  2221. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2222. *${as_nl}ac_space=\ *)
  2223. sed -n \
  2224. "s/'\''/'\''\\\\'\'''\''/g;
  2225. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2226. ;; #(
  2227. *)
  2228. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2229. ;;
  2230. esac |
  2231. sort
  2232. )
  2233. echo
  2234. cat <<\_ASBOX
  2235. ## ----------------- ##
  2236. ## Output variables. ##
  2237. ## ----------------- ##
  2238. _ASBOX
  2239. echo
  2240. for ac_var in $ac_subst_vars
  2241. do
  2242. eval ac_val=\$$ac_var
  2243. case $ac_val in
  2244. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2245. esac
  2246. $as_echo "$ac_var='\''$ac_val'\''"
  2247. done | sort
  2248. echo
  2249. if test -n "$ac_subst_files"; then
  2250. cat <<\_ASBOX
  2251. ## ------------------- ##
  2252. ## File substitutions. ##
  2253. ## ------------------- ##
  2254. _ASBOX
  2255. echo
  2256. for ac_var in $ac_subst_files
  2257. do
  2258. eval ac_val=\$$ac_var
  2259. case $ac_val in
  2260. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2261. esac
  2262. $as_echo "$ac_var='\''$ac_val'\''"
  2263. done | sort
  2264. echo
  2265. fi
  2266. if test -s confdefs.h; then
  2267. cat <<\_ASBOX
  2268. ## ----------- ##
  2269. ## confdefs.h. ##
  2270. ## ----------- ##
  2271. _ASBOX
  2272. echo
  2273. cat confdefs.h
  2274. echo
  2275. fi
  2276. test "$ac_signal" != 0 &&
  2277. $as_echo "$as_me: caught signal $ac_signal"
  2278. $as_echo "$as_me: exit $exit_status"
  2279. } >&5
  2280. rm -f core *.core core.conftest.* &&
  2281. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2282. exit $exit_status
  2283. ' 0
  2284. for ac_signal in 1 2 13 15; do
  2285. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2286. done
  2287. ac_signal=0
  2288. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2289. rm -f -r conftest* confdefs.h
  2290. $as_echo "/* confdefs.h */" > confdefs.h
  2291. # Predefined preprocessor variables.
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE_NAME "$PACKAGE_NAME"
  2294. _ACEOF
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2297. _ACEOF
  2298. cat >>confdefs.h <<_ACEOF
  2299. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2300. _ACEOF
  2301. cat >>confdefs.h <<_ACEOF
  2302. #define PACKAGE_STRING "$PACKAGE_STRING"
  2303. _ACEOF
  2304. cat >>confdefs.h <<_ACEOF
  2305. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2306. _ACEOF
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define PACKAGE_URL "$PACKAGE_URL"
  2309. _ACEOF
  2310. # Let the site file select an alternate cache file if it wants to.
  2311. # Prefer an explicitly selected file to automatically selected ones.
  2312. ac_site_file1=NONE
  2313. ac_site_file2=NONE
  2314. if test -n "$CONFIG_SITE"; then
  2315. ac_site_file1=$CONFIG_SITE
  2316. elif test "x$prefix" != xNONE; then
  2317. ac_site_file1=$prefix/share/config.site
  2318. ac_site_file2=$prefix/etc/config.site
  2319. else
  2320. ac_site_file1=$ac_default_prefix/share/config.site
  2321. ac_site_file2=$ac_default_prefix/etc/config.site
  2322. fi
  2323. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2324. do
  2325. test "x$ac_site_file" = xNONE && continue
  2326. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2328. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2329. sed 's/^/| /' "$ac_site_file" >&5
  2330. . "$ac_site_file"
  2331. fi
  2332. done
  2333. if test -r "$cache_file"; then
  2334. # Some versions of bash will fail to source /dev/null (special files
  2335. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2336. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2338. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2339. case $cache_file in
  2340. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2341. *) . "./$cache_file";;
  2342. esac
  2343. fi
  2344. else
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2346. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2347. >$cache_file
  2348. fi
  2349. # Check that the precious variables saved in the cache have kept the same
  2350. # value.
  2351. ac_cache_corrupted=false
  2352. for ac_var in $ac_precious_vars; do
  2353. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2354. eval ac_new_set=\$ac_env_${ac_var}_set
  2355. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2356. eval ac_new_val=\$ac_env_${ac_var}_value
  2357. case $ac_old_set,$ac_new_set in
  2358. set,)
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2360. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2361. ac_cache_corrupted=: ;;
  2362. ,set)
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2364. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2365. ac_cache_corrupted=: ;;
  2366. ,);;
  2367. *)
  2368. if test "x$ac_old_val" != "x$ac_new_val"; then
  2369. # differences in whitespace do not lead to failure.
  2370. ac_old_val_w=`echo x $ac_old_val`
  2371. ac_new_val_w=`echo x $ac_new_val`
  2372. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2374. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2375. ac_cache_corrupted=:
  2376. else
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2378. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2379. eval $ac_var=\$ac_old_val
  2380. fi
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2382. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2384. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2385. fi;;
  2386. esac
  2387. # Pass precious variables to config.status.
  2388. if test "$ac_new_set" = set; then
  2389. case $ac_new_val in
  2390. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2391. *) ac_arg=$ac_var=$ac_new_val ;;
  2392. esac
  2393. case " $ac_configure_args " in
  2394. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2395. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2396. esac
  2397. fi
  2398. done
  2399. if $ac_cache_corrupted; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2401. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2403. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2404. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2405. fi
  2406. ## -------------------- ##
  2407. ## Main body of script. ##
  2408. ## -------------------- ##
  2409. ac_ext=c
  2410. ac_cpp='$CPP $CPPFLAGS'
  2411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2414. ac_aux_dir=
  2415. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2416. for ac_t in install-sh install.sh shtool; do
  2417. if test -f "$ac_dir/$ac_t"; then
  2418. ac_aux_dir=$ac_dir
  2419. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. if test -z "$ac_aux_dir"; then
  2425. as_fn_error "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2426. fi
  2427. # These three variables are undocumented and unsupported,
  2428. # and are intended to be withdrawn in a future Autoconf release.
  2429. # They can cause serious problems if a builder's source tree is in a directory
  2430. # whose full name contains unusual characters.
  2431. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2432. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2433. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2434. # Checks for programs.
  2435. ac_ext=c
  2436. ac_cpp='$CPP $CPPFLAGS'
  2437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2440. if test -n "$ac_tool_prefix"; then
  2441. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2442. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2444. $as_echo_n "checking for $ac_word... " >&6; }
  2445. if test "${ac_cv_prog_CC+set}" = set; then :
  2446. $as_echo_n "(cached) " >&6
  2447. else
  2448. if test -n "$CC"; then
  2449. ac_cv_prog_CC="$CC" # Let the user override the test.
  2450. else
  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. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. fi
  2466. fi
  2467. CC=$ac_cv_prog_CC
  2468. if test -n "$CC"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2470. $as_echo "$CC" >&6; }
  2471. else
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. fi
  2475. fi
  2476. if test -z "$ac_cv_prog_CC"; then
  2477. ac_ct_CC=$CC
  2478. # Extract the first word of "gcc", so it can be a program name with args.
  2479. set dummy gcc; ac_word=$2
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2481. $as_echo_n "checking for $ac_word... " >&6; }
  2482. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if test -n "$ac_ct_CC"; then
  2486. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2487. else
  2488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2489. for as_dir in $PATH
  2490. do
  2491. IFS=$as_save_IFS
  2492. test -z "$as_dir" && as_dir=.
  2493. for ac_exec_ext in '' $ac_executable_extensions; do
  2494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2495. ac_cv_prog_ac_ct_CC="gcc"
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2497. break 2
  2498. fi
  2499. done
  2500. done
  2501. IFS=$as_save_IFS
  2502. fi
  2503. fi
  2504. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2505. if test -n "$ac_ct_CC"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2507. $as_echo "$ac_ct_CC" >&6; }
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2510. $as_echo "no" >&6; }
  2511. fi
  2512. if test "x$ac_ct_CC" = x; then
  2513. CC=""
  2514. else
  2515. case $cross_compiling:$ac_tool_warned in
  2516. yes:)
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2519. ac_tool_warned=yes ;;
  2520. esac
  2521. CC=$ac_ct_CC
  2522. fi
  2523. else
  2524. CC="$ac_cv_prog_CC"
  2525. fi
  2526. if test -z "$CC"; then
  2527. if test -n "$ac_tool_prefix"; then
  2528. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2529. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2531. $as_echo_n "checking for $ac_word... " >&6; }
  2532. if test "${ac_cv_prog_CC+set}" = set; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test -n "$CC"; then
  2536. ac_cv_prog_CC="$CC" # Let the user override the test.
  2537. else
  2538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2539. for as_dir in $PATH
  2540. do
  2541. IFS=$as_save_IFS
  2542. test -z "$as_dir" && as_dir=.
  2543. for ac_exec_ext in '' $ac_executable_extensions; do
  2544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2545. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2547. break 2
  2548. fi
  2549. done
  2550. done
  2551. IFS=$as_save_IFS
  2552. fi
  2553. fi
  2554. CC=$ac_cv_prog_CC
  2555. if test -n "$CC"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2557. $as_echo "$CC" >&6; }
  2558. else
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2560. $as_echo "no" >&6; }
  2561. fi
  2562. fi
  2563. fi
  2564. if test -z "$CC"; then
  2565. # Extract the first word of "cc", so it can be a program name with args.
  2566. set dummy cc; ac_word=$2
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if test "${ac_cv_prog_CC+set}" = set; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. ac_prog_rejected=no
  2576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2577. for as_dir in $PATH
  2578. do
  2579. IFS=$as_save_IFS
  2580. test -z "$as_dir" && as_dir=.
  2581. for ac_exec_ext in '' $ac_executable_extensions; do
  2582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2583. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2584. ac_prog_rejected=yes
  2585. continue
  2586. fi
  2587. ac_cv_prog_CC="cc"
  2588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589. break 2
  2590. fi
  2591. done
  2592. done
  2593. IFS=$as_save_IFS
  2594. if test $ac_prog_rejected = yes; then
  2595. # We found a bogon in the path, so make sure we never use it.
  2596. set dummy $ac_cv_prog_CC
  2597. shift
  2598. if test $# != 0; then
  2599. # We chose a different compiler from the bogus one.
  2600. # However, it has the same basename, so the bogon will be chosen
  2601. # first if we set CC to just the basename; use the full file name.
  2602. shift
  2603. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2604. fi
  2605. fi
  2606. fi
  2607. fi
  2608. CC=$ac_cv_prog_CC
  2609. if test -n "$CC"; then
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2611. $as_echo "$CC" >&6; }
  2612. else
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2614. $as_echo "no" >&6; }
  2615. fi
  2616. fi
  2617. if test -z "$CC"; then
  2618. if test -n "$ac_tool_prefix"; then
  2619. for ac_prog in cl.exe
  2620. do
  2621. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2622. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2624. $as_echo_n "checking for $ac_word... " >&6; }
  2625. if test "${ac_cv_prog_CC+set}" = set; then :
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. if test -n "$CC"; then
  2629. ac_cv_prog_CC="$CC" # Let the user override the test.
  2630. else
  2631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2632. for as_dir in $PATH
  2633. do
  2634. IFS=$as_save_IFS
  2635. test -z "$as_dir" && as_dir=.
  2636. for ac_exec_ext in '' $ac_executable_extensions; do
  2637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2638. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2640. break 2
  2641. fi
  2642. done
  2643. done
  2644. IFS=$as_save_IFS
  2645. fi
  2646. fi
  2647. CC=$ac_cv_prog_CC
  2648. if test -n "$CC"; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2650. $as_echo "$CC" >&6; }
  2651. else
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. test -n "$CC" && break
  2656. done
  2657. fi
  2658. if test -z "$CC"; then
  2659. ac_ct_CC=$CC
  2660. for ac_prog in cl.exe
  2661. do
  2662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2663. set dummy $ac_prog; ac_word=$2
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2665. $as_echo_n "checking for $ac_word... " >&6; }
  2666. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test -n "$ac_ct_CC"; then
  2670. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2671. else
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2679. ac_cv_prog_ac_ct_CC="$ac_prog"
  2680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. IFS=$as_save_IFS
  2686. fi
  2687. fi
  2688. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2689. if test -n "$ac_ct_CC"; then
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2691. $as_echo "$ac_ct_CC" >&6; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2694. $as_echo "no" >&6; }
  2695. fi
  2696. test -n "$ac_ct_CC" && break
  2697. done
  2698. if test "x$ac_ct_CC" = x; then
  2699. CC=""
  2700. else
  2701. case $cross_compiling:$ac_tool_warned in
  2702. yes:)
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2705. ac_tool_warned=yes ;;
  2706. esac
  2707. CC=$ac_ct_CC
  2708. fi
  2709. fi
  2710. fi
  2711. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2713. as_fn_error "no acceptable C compiler found in \$PATH
  2714. See \`config.log' for more details." "$LINENO" 5; }
  2715. # Provide some information about the compiler.
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2717. set X $ac_compile
  2718. ac_compiler=$2
  2719. for ac_option in --version -v -V -qversion; do
  2720. { { ac_try="$ac_compiler $ac_option >&5"
  2721. case "(($ac_try" in
  2722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2723. *) ac_try_echo=$ac_try;;
  2724. esac
  2725. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2726. $as_echo "$ac_try_echo"; } >&5
  2727. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2728. ac_status=$?
  2729. if test -s conftest.err; then
  2730. sed '10a\
  2731. ... rest of stderr output deleted ...
  2732. 10q' conftest.err >conftest.er1
  2733. cat conftest.er1 >&5
  2734. fi
  2735. rm -f conftest.er1 conftest.err
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2737. test $ac_status = 0; }
  2738. done
  2739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. ac_clean_files_save=$ac_clean_files
  2749. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2750. # Try to create an executable without -o first, disregard a.out.
  2751. # It will help us diagnose broken compilers, and finding out an intuition
  2752. # of exeext.
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2754. $as_echo_n "checking whether the C compiler works... " >&6; }
  2755. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2756. # The possible output files:
  2757. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2758. ac_rmfiles=
  2759. for ac_file in $ac_files
  2760. do
  2761. case $ac_file in
  2762. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2763. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2764. esac
  2765. done
  2766. rm -f $ac_rmfiles
  2767. if { { ac_try="$ac_link_default"
  2768. case "(($ac_try" in
  2769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2770. *) ac_try_echo=$ac_try;;
  2771. esac
  2772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2773. $as_echo "$ac_try_echo"; } >&5
  2774. (eval "$ac_link_default") 2>&5
  2775. ac_status=$?
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2777. test $ac_status = 0; }; then :
  2778. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2779. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2780. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2781. # so that the user can short-circuit this test for compilers unknown to
  2782. # Autoconf.
  2783. for ac_file in $ac_files ''
  2784. do
  2785. test -f "$ac_file" || continue
  2786. case $ac_file in
  2787. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2788. ;;
  2789. [ab].out )
  2790. # We found the default executable, but exeext='' is most
  2791. # certainly right.
  2792. break;;
  2793. *.* )
  2794. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2795. then :; else
  2796. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2797. fi
  2798. # We set ac_cv_exeext here because the later test for it is not
  2799. # safe: cross compilers may not add the suffix if given an `-o'
  2800. # argument, so we may need to know it at that point already.
  2801. # Even if this section looks crufty: it has the advantage of
  2802. # actually working.
  2803. break;;
  2804. * )
  2805. break;;
  2806. esac
  2807. done
  2808. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2809. else
  2810. ac_file=''
  2811. fi
  2812. if test -z "$ac_file"; then :
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. $as_echo "$as_me: failed program was:" >&5
  2816. sed 's/^/| /' conftest.$ac_ext >&5
  2817. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2818. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2819. { as_fn_set_status 77
  2820. as_fn_error "C compiler cannot create executables
  2821. See \`config.log' for more details." "$LINENO" 5; }; }
  2822. else
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2824. $as_echo "yes" >&6; }
  2825. fi
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2827. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2829. $as_echo "$ac_file" >&6; }
  2830. ac_exeext=$ac_cv_exeext
  2831. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2832. ac_clean_files=$ac_clean_files_save
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2834. $as_echo_n "checking for suffix of executables... " >&6; }
  2835. if { { ac_try="$ac_link"
  2836. case "(($ac_try" in
  2837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2838. *) ac_try_echo=$ac_try;;
  2839. esac
  2840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2841. $as_echo "$ac_try_echo"; } >&5
  2842. (eval "$ac_link") 2>&5
  2843. ac_status=$?
  2844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2845. test $ac_status = 0; }; then :
  2846. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2847. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2848. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2849. # `rm'.
  2850. for ac_file in conftest.exe conftest conftest.*; do
  2851. test -f "$ac_file" || continue
  2852. case $ac_file in
  2853. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2854. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2855. break;;
  2856. * ) break;;
  2857. esac
  2858. done
  2859. else
  2860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2862. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2863. See \`config.log' for more details." "$LINENO" 5; }
  2864. fi
  2865. rm -f conftest conftest$ac_cv_exeext
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2867. $as_echo "$ac_cv_exeext" >&6; }
  2868. rm -f conftest.$ac_ext
  2869. EXEEXT=$ac_cv_exeext
  2870. ac_exeext=$EXEEXT
  2871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2872. /* end confdefs.h. */
  2873. #include <stdio.h>
  2874. int
  2875. main ()
  2876. {
  2877. FILE *f = fopen ("conftest.out", "w");
  2878. return ferror (f) || fclose (f) != 0;
  2879. ;
  2880. return 0;
  2881. }
  2882. _ACEOF
  2883. ac_clean_files="$ac_clean_files conftest.out"
  2884. # Check that the compiler produces executables we can run. If not, either
  2885. # the compiler is broken, or we cross compile.
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2887. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2888. if test "$cross_compiling" != yes; then
  2889. { { ac_try="$ac_link"
  2890. case "(($ac_try" in
  2891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2892. *) ac_try_echo=$ac_try;;
  2893. esac
  2894. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2895. $as_echo "$ac_try_echo"; } >&5
  2896. (eval "$ac_link") 2>&5
  2897. ac_status=$?
  2898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2899. test $ac_status = 0; }
  2900. if { ac_try='./conftest$ac_cv_exeext'
  2901. { { case "(($ac_try" in
  2902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903. *) ac_try_echo=$ac_try;;
  2904. esac
  2905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2906. $as_echo "$ac_try_echo"; } >&5
  2907. (eval "$ac_try") 2>&5
  2908. ac_status=$?
  2909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2910. test $ac_status = 0; }; }; then
  2911. cross_compiling=no
  2912. else
  2913. if test "$cross_compiling" = maybe; then
  2914. cross_compiling=yes
  2915. else
  2916. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2918. as_fn_error "cannot run C compiled programs.
  2919. If you meant to cross compile, use \`--host'.
  2920. See \`config.log' for more details." "$LINENO" 5; }
  2921. fi
  2922. fi
  2923. fi
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2925. $as_echo "$cross_compiling" >&6; }
  2926. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2927. ac_clean_files=$ac_clean_files_save
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2929. $as_echo_n "checking for suffix of object files... " >&6; }
  2930. if test "${ac_cv_objext+set}" = set; then :
  2931. $as_echo_n "(cached) " >&6
  2932. else
  2933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2934. /* end confdefs.h. */
  2935. int
  2936. main ()
  2937. {
  2938. ;
  2939. return 0;
  2940. }
  2941. _ACEOF
  2942. rm -f conftest.o conftest.obj
  2943. if { { ac_try="$ac_compile"
  2944. case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2949. $as_echo "$ac_try_echo"; } >&5
  2950. (eval "$ac_compile") 2>&5
  2951. ac_status=$?
  2952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2953. test $ac_status = 0; }; then :
  2954. for ac_file in conftest.o conftest.obj conftest.*; do
  2955. test -f "$ac_file" || continue;
  2956. case $ac_file in
  2957. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2958. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2959. break;;
  2960. esac
  2961. done
  2962. else
  2963. $as_echo "$as_me: failed program was:" >&5
  2964. sed 's/^/| /' conftest.$ac_ext >&5
  2965. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2966. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2967. as_fn_error "cannot compute suffix of object files: cannot compile
  2968. See \`config.log' for more details." "$LINENO" 5; }
  2969. fi
  2970. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2973. $as_echo "$ac_cv_objext" >&6; }
  2974. OBJEXT=$ac_cv_objext
  2975. ac_objext=$OBJEXT
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2977. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2978. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2982. /* end confdefs.h. */
  2983. int
  2984. main ()
  2985. {
  2986. #ifndef __GNUC__
  2987. choke me
  2988. #endif
  2989. ;
  2990. return 0;
  2991. }
  2992. _ACEOF
  2993. if ac_fn_c_try_compile "$LINENO"; then :
  2994. ac_compiler_gnu=yes
  2995. else
  2996. ac_compiler_gnu=no
  2997. fi
  2998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2999. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3000. fi
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3002. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3003. if test $ac_compiler_gnu = yes; then
  3004. GCC=yes
  3005. else
  3006. GCC=
  3007. fi
  3008. ac_test_CFLAGS=${CFLAGS+set}
  3009. ac_save_CFLAGS=$CFLAGS
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3011. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3012. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3013. $as_echo_n "(cached) " >&6
  3014. else
  3015. ac_save_c_werror_flag=$ac_c_werror_flag
  3016. ac_c_werror_flag=yes
  3017. ac_cv_prog_cc_g=no
  3018. CFLAGS="-g"
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. if ac_fn_c_try_compile "$LINENO"; then :
  3029. ac_cv_prog_cc_g=yes
  3030. else
  3031. CFLAGS=""
  3032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. /* end confdefs.h. */
  3034. int
  3035. main ()
  3036. {
  3037. ;
  3038. return 0;
  3039. }
  3040. _ACEOF
  3041. if ac_fn_c_try_compile "$LINENO"; then :
  3042. else
  3043. ac_c_werror_flag=$ac_save_c_werror_flag
  3044. CFLAGS="-g"
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. if ac_fn_c_try_compile "$LINENO"; then :
  3055. ac_cv_prog_cc_g=yes
  3056. fi
  3057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3058. fi
  3059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3060. fi
  3061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3062. ac_c_werror_flag=$ac_save_c_werror_flag
  3063. fi
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3065. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3066. if test "$ac_test_CFLAGS" = set; then
  3067. CFLAGS=$ac_save_CFLAGS
  3068. elif test $ac_cv_prog_cc_g = yes; then
  3069. if test "$GCC" = yes; then
  3070. CFLAGS="-g -O2"
  3071. else
  3072. CFLAGS="-g"
  3073. fi
  3074. else
  3075. if test "$GCC" = yes; then
  3076. CFLAGS="-O2"
  3077. else
  3078. CFLAGS=
  3079. fi
  3080. fi
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3082. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3083. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. ac_cv_prog_cc_c89=no
  3087. ac_save_CC=$CC
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. #include <stdarg.h>
  3091. #include <stdio.h>
  3092. #include <sys/types.h>
  3093. #include <sys/stat.h>
  3094. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3095. struct buf { int x; };
  3096. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3097. static char *e (p, i)
  3098. char **p;
  3099. int i;
  3100. {
  3101. return p[i];
  3102. }
  3103. static char *f (char * (*g) (char **, int), char **p, ...)
  3104. {
  3105. char *s;
  3106. va_list v;
  3107. va_start (v,p);
  3108. s = g (p, va_arg (v,int));
  3109. va_end (v);
  3110. return s;
  3111. }
  3112. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3113. function prototypes and stuff, but not '\xHH' hex character constants.
  3114. These don't provoke an error unfortunately, instead are silently treated
  3115. as 'x'. The following induces an error, until -std is added to get
  3116. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3117. array size at least. It's necessary to write '\x00'==0 to get something
  3118. that's true only with -std. */
  3119. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3120. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3121. inside strings and character constants. */
  3122. #define FOO(x) 'x'
  3123. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3124. int test (int i, double x);
  3125. struct s1 {int (*f) (int a);};
  3126. struct s2 {int (*f) (double a);};
  3127. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3128. int argc;
  3129. char **argv;
  3130. int
  3131. main ()
  3132. {
  3133. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3134. ;
  3135. return 0;
  3136. }
  3137. _ACEOF
  3138. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3139. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3140. do
  3141. CC="$ac_save_CC $ac_arg"
  3142. if ac_fn_c_try_compile "$LINENO"; then :
  3143. ac_cv_prog_cc_c89=$ac_arg
  3144. fi
  3145. rm -f core conftest.err conftest.$ac_objext
  3146. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3147. done
  3148. rm -f conftest.$ac_ext
  3149. CC=$ac_save_CC
  3150. fi
  3151. # AC_CACHE_VAL
  3152. case "x$ac_cv_prog_cc_c89" in
  3153. x)
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3155. $as_echo "none needed" >&6; } ;;
  3156. xno)
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3158. $as_echo "unsupported" >&6; } ;;
  3159. *)
  3160. CC="$CC $ac_cv_prog_cc_c89"
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3162. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3163. esac
  3164. if test "x$ac_cv_prog_cc_c89" != xno; then :
  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. ac_ext=cpp
  3172. ac_cpp='$CXXCPP $CPPFLAGS'
  3173. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3174. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3175. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3176. if test -z "$CXX"; then
  3177. if test -n "$CCC"; then
  3178. CXX=$CCC
  3179. else
  3180. if test -n "$ac_tool_prefix"; then
  3181. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3182. do
  3183. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3184. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3186. $as_echo_n "checking for $ac_word... " >&6; }
  3187. if test "${ac_cv_prog_CXX+set}" = set; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. if test -n "$CXX"; then
  3191. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3192. else
  3193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3194. for as_dir in $PATH
  3195. do
  3196. IFS=$as_save_IFS
  3197. test -z "$as_dir" && as_dir=.
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3200. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. IFS=$as_save_IFS
  3207. fi
  3208. fi
  3209. CXX=$ac_cv_prog_CXX
  3210. if test -n "$CXX"; then
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3212. $as_echo "$CXX" >&6; }
  3213. else
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3215. $as_echo "no" >&6; }
  3216. fi
  3217. test -n "$CXX" && break
  3218. done
  3219. fi
  3220. if test -z "$CXX"; then
  3221. ac_ct_CXX=$CXX
  3222. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3223. do
  3224. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3225. set dummy $ac_prog; ac_word=$2
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3227. $as_echo_n "checking for $ac_word... " >&6; }
  3228. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if test -n "$ac_ct_CXX"; then
  3232. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3233. else
  3234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3235. for as_dir in $PATH
  3236. do
  3237. IFS=$as_save_IFS
  3238. test -z "$as_dir" && as_dir=.
  3239. for ac_exec_ext in '' $ac_executable_extensions; do
  3240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3241. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3243. break 2
  3244. fi
  3245. done
  3246. done
  3247. IFS=$as_save_IFS
  3248. fi
  3249. fi
  3250. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3251. if test -n "$ac_ct_CXX"; then
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3253. $as_echo "$ac_ct_CXX" >&6; }
  3254. else
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3256. $as_echo "no" >&6; }
  3257. fi
  3258. test -n "$ac_ct_CXX" && break
  3259. done
  3260. if test "x$ac_ct_CXX" = x; then
  3261. CXX="g++"
  3262. else
  3263. case $cross_compiling:$ac_tool_warned in
  3264. yes:)
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3266. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3267. ac_tool_warned=yes ;;
  3268. esac
  3269. CXX=$ac_ct_CXX
  3270. fi
  3271. fi
  3272. fi
  3273. fi
  3274. # Provide some information about the compiler.
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3276. set X $ac_compile
  3277. ac_compiler=$2
  3278. for ac_option in --version -v -V -qversion; do
  3279. { { ac_try="$ac_compiler $ac_option >&5"
  3280. case "(($ac_try" in
  3281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3282. *) ac_try_echo=$ac_try;;
  3283. esac
  3284. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3285. $as_echo "$ac_try_echo"; } >&5
  3286. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3287. ac_status=$?
  3288. if test -s conftest.err; then
  3289. sed '10a\
  3290. ... rest of stderr output deleted ...
  3291. 10q' conftest.err >conftest.er1
  3292. cat conftest.er1 >&5
  3293. fi
  3294. rm -f conftest.er1 conftest.err
  3295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3296. test $ac_status = 0; }
  3297. done
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3299. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3300. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3301. $as_echo_n "(cached) " >&6
  3302. else
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. int
  3306. main ()
  3307. {
  3308. #ifndef __GNUC__
  3309. choke me
  3310. #endif
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. if ac_fn_cxx_try_compile "$LINENO"; then :
  3316. ac_compiler_gnu=yes
  3317. else
  3318. ac_compiler_gnu=no
  3319. fi
  3320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3321. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3322. fi
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3324. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3325. if test $ac_compiler_gnu = yes; then
  3326. GXX=yes
  3327. else
  3328. GXX=
  3329. fi
  3330. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3331. ac_save_CXXFLAGS=$CXXFLAGS
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3333. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3334. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3335. $as_echo_n "(cached) " >&6
  3336. else
  3337. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3338. ac_cxx_werror_flag=yes
  3339. ac_cv_prog_cxx_g=no
  3340. CXXFLAGS="-g"
  3341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3342. /* end confdefs.h. */
  3343. int
  3344. main ()
  3345. {
  3346. ;
  3347. return 0;
  3348. }
  3349. _ACEOF
  3350. if ac_fn_cxx_try_compile "$LINENO"; then :
  3351. ac_cv_prog_cxx_g=yes
  3352. else
  3353. CXXFLAGS=""
  3354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3355. /* end confdefs.h. */
  3356. int
  3357. main ()
  3358. {
  3359. ;
  3360. return 0;
  3361. }
  3362. _ACEOF
  3363. if ac_fn_cxx_try_compile "$LINENO"; then :
  3364. else
  3365. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3366. CXXFLAGS="-g"
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_cxx_try_compile "$LINENO"; then :
  3377. ac_cv_prog_cxx_g=yes
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. fi
  3383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3384. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3387. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3388. if test "$ac_test_CXXFLAGS" = set; then
  3389. CXXFLAGS=$ac_save_CXXFLAGS
  3390. elif test $ac_cv_prog_cxx_g = yes; then
  3391. if test "$GXX" = yes; then
  3392. CXXFLAGS="-g -O2"
  3393. else
  3394. CXXFLAGS="-g"
  3395. fi
  3396. else
  3397. if test "$GXX" = yes; then
  3398. CXXFLAGS="-O2"
  3399. else
  3400. CXXFLAGS=
  3401. fi
  3402. fi
  3403. ac_ext=c
  3404. ac_cpp='$CPP $CPPFLAGS'
  3405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3408. # Make sure we can run config.sub.
  3409. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3410. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3412. $as_echo_n "checking build system type... " >&6; }
  3413. if test "${ac_cv_build+set}" = set; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. ac_build_alias=$build_alias
  3417. test "x$ac_build_alias" = x &&
  3418. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3419. test "x$ac_build_alias" = x &&
  3420. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3421. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3422. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3423. fi
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3425. $as_echo "$ac_cv_build" >&6; }
  3426. case $ac_cv_build in
  3427. *-*-*) ;;
  3428. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3429. esac
  3430. build=$ac_cv_build
  3431. ac_save_IFS=$IFS; IFS='-'
  3432. set x $ac_cv_build
  3433. shift
  3434. build_cpu=$1
  3435. build_vendor=$2
  3436. shift; shift
  3437. # Remember, the first character of IFS is used to create $*,
  3438. # except with old shells:
  3439. build_os=$*
  3440. IFS=$ac_save_IFS
  3441. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3443. $as_echo_n "checking host system type... " >&6; }
  3444. if test "${ac_cv_host+set}" = set; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. if test "x$host_alias" = x; then
  3448. ac_cv_host=$ac_cv_build
  3449. else
  3450. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3451. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3455. $as_echo "$ac_cv_host" >&6; }
  3456. case $ac_cv_host in
  3457. *-*-*) ;;
  3458. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3459. esac
  3460. host=$ac_cv_host
  3461. ac_save_IFS=$IFS; IFS='-'
  3462. set x $ac_cv_host
  3463. shift
  3464. host_cpu=$1
  3465. host_vendor=$2
  3466. shift; shift
  3467. # Remember, the first character of IFS is used to create $*,
  3468. # except with old shells:
  3469. host_os=$*
  3470. IFS=$ac_save_IFS
  3471. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3472. enable_win32_dll=yes
  3473. case $host in
  3474. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3475. if test -n "$ac_tool_prefix"; then
  3476. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3477. set dummy ${ac_tool_prefix}as; ac_word=$2
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3479. $as_echo_n "checking for $ac_word... " >&6; }
  3480. if test "${ac_cv_prog_AS+set}" = set; then :
  3481. $as_echo_n "(cached) " >&6
  3482. else
  3483. if test -n "$AS"; then
  3484. ac_cv_prog_AS="$AS" # Let the user override the test.
  3485. else
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3493. ac_cv_prog_AS="${ac_tool_prefix}as"
  3494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3495. break 2
  3496. fi
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. fi
  3501. fi
  3502. AS=$ac_cv_prog_AS
  3503. if test -n "$AS"; then
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3505. $as_echo "$AS" >&6; }
  3506. else
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3508. $as_echo "no" >&6; }
  3509. fi
  3510. fi
  3511. if test -z "$ac_cv_prog_AS"; then
  3512. ac_ct_AS=$AS
  3513. # Extract the first word of "as", so it can be a program name with args.
  3514. set dummy as; ac_word=$2
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3516. $as_echo_n "checking for $ac_word... " >&6; }
  3517. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -n "$ac_ct_AS"; then
  3521. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3522. else
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. for as_dir in $PATH
  3525. do
  3526. IFS=$as_save_IFS
  3527. test -z "$as_dir" && as_dir=.
  3528. for ac_exec_ext in '' $ac_executable_extensions; do
  3529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3530. ac_cv_prog_ac_ct_AS="as"
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3532. break 2
  3533. fi
  3534. done
  3535. done
  3536. IFS=$as_save_IFS
  3537. fi
  3538. fi
  3539. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3540. if test -n "$ac_ct_AS"; then
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3542. $as_echo "$ac_ct_AS" >&6; }
  3543. else
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3545. $as_echo "no" >&6; }
  3546. fi
  3547. if test "x$ac_ct_AS" = x; then
  3548. AS="false"
  3549. else
  3550. case $cross_compiling:$ac_tool_warned in
  3551. yes:)
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3553. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3554. ac_tool_warned=yes ;;
  3555. esac
  3556. AS=$ac_ct_AS
  3557. fi
  3558. else
  3559. AS="$ac_cv_prog_AS"
  3560. fi
  3561. if test -n "$ac_tool_prefix"; then
  3562. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3563. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3565. $as_echo_n "checking for $ac_word... " >&6; }
  3566. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3567. $as_echo_n "(cached) " >&6
  3568. else
  3569. if test -n "$DLLTOOL"; then
  3570. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3571. else
  3572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3573. for as_dir in $PATH
  3574. do
  3575. IFS=$as_save_IFS
  3576. test -z "$as_dir" && as_dir=.
  3577. for ac_exec_ext in '' $ac_executable_extensions; do
  3578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3579. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3581. break 2
  3582. fi
  3583. done
  3584. done
  3585. IFS=$as_save_IFS
  3586. fi
  3587. fi
  3588. DLLTOOL=$ac_cv_prog_DLLTOOL
  3589. if test -n "$DLLTOOL"; then
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3591. $as_echo "$DLLTOOL" >&6; }
  3592. else
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3594. $as_echo "no" >&6; }
  3595. fi
  3596. fi
  3597. if test -z "$ac_cv_prog_DLLTOOL"; then
  3598. ac_ct_DLLTOOL=$DLLTOOL
  3599. # Extract the first word of "dlltool", so it can be a program name with args.
  3600. set dummy dlltool; ac_word=$2
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3602. $as_echo_n "checking for $ac_word... " >&6; }
  3603. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3604. $as_echo_n "(cached) " >&6
  3605. else
  3606. if test -n "$ac_ct_DLLTOOL"; then
  3607. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3608. else
  3609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3610. for as_dir in $PATH
  3611. do
  3612. IFS=$as_save_IFS
  3613. test -z "$as_dir" && as_dir=.
  3614. for ac_exec_ext in '' $ac_executable_extensions; do
  3615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3616. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3618. break 2
  3619. fi
  3620. done
  3621. done
  3622. IFS=$as_save_IFS
  3623. fi
  3624. fi
  3625. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3626. if test -n "$ac_ct_DLLTOOL"; then
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3628. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3629. else
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. $as_echo "no" >&6; }
  3632. fi
  3633. if test "x$ac_ct_DLLTOOL" = x; then
  3634. DLLTOOL="false"
  3635. else
  3636. case $cross_compiling:$ac_tool_warned in
  3637. yes:)
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3640. ac_tool_warned=yes ;;
  3641. esac
  3642. DLLTOOL=$ac_ct_DLLTOOL
  3643. fi
  3644. else
  3645. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3646. fi
  3647. if test -n "$ac_tool_prefix"; then
  3648. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3649. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3651. $as_echo_n "checking for $ac_word... " >&6; }
  3652. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. if test -n "$OBJDUMP"; then
  3656. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3657. else
  3658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3659. for as_dir in $PATH
  3660. do
  3661. IFS=$as_save_IFS
  3662. test -z "$as_dir" && as_dir=.
  3663. for ac_exec_ext in '' $ac_executable_extensions; do
  3664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3665. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3667. break 2
  3668. fi
  3669. done
  3670. done
  3671. IFS=$as_save_IFS
  3672. fi
  3673. fi
  3674. OBJDUMP=$ac_cv_prog_OBJDUMP
  3675. if test -n "$OBJDUMP"; then
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3677. $as_echo "$OBJDUMP" >&6; }
  3678. else
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3680. $as_echo "no" >&6; }
  3681. fi
  3682. fi
  3683. if test -z "$ac_cv_prog_OBJDUMP"; then
  3684. ac_ct_OBJDUMP=$OBJDUMP
  3685. # Extract the first word of "objdump", so it can be a program name with args.
  3686. set dummy objdump; ac_word=$2
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. $as_echo_n "checking for $ac_word... " >&6; }
  3689. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. if test -n "$ac_ct_OBJDUMP"; then
  3693. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3694. else
  3695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3696. for as_dir in $PATH
  3697. do
  3698. IFS=$as_save_IFS
  3699. test -z "$as_dir" && as_dir=.
  3700. for ac_exec_ext in '' $ac_executable_extensions; do
  3701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3702. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3704. break 2
  3705. fi
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. fi
  3710. fi
  3711. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3712. if test -n "$ac_ct_OBJDUMP"; then
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3714. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3715. else
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3717. $as_echo "no" >&6; }
  3718. fi
  3719. if test "x$ac_ct_OBJDUMP" = x; then
  3720. OBJDUMP="false"
  3721. else
  3722. case $cross_compiling:$ac_tool_warned in
  3723. yes:)
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3726. ac_tool_warned=yes ;;
  3727. esac
  3728. OBJDUMP=$ac_ct_OBJDUMP
  3729. fi
  3730. else
  3731. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3732. fi
  3733. ;;
  3734. esac
  3735. test -z "$AS" && AS=as
  3736. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3737. test -z "$OBJDUMP" && OBJDUMP=objdump
  3738. case `pwd` in
  3739. *\ * | *\ *)
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3741. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3742. esac
  3743. macro_version='2.2.6b'
  3744. macro_revision='1.3017'
  3745. ltmain="$ac_aux_dir/ltmain.sh"
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3747. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3748. if test "${ac_cv_path_SED+set}" = set; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3752. for ac_i in 1 2 3 4 5 6 7; do
  3753. ac_script="$ac_script$as_nl$ac_script"
  3754. done
  3755. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3756. { ac_script=; unset ac_script;}
  3757. if test -z "$SED"; then
  3758. ac_path_SED_found=false
  3759. # Loop through the user's path and test for each of PROGNAME-LIST
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_prog in sed gsed; do
  3766. for ac_exec_ext in '' $ac_executable_extensions; do
  3767. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3768. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3769. # Check for GNU ac_path_SED and select it if it is found.
  3770. # Check for GNU $ac_path_SED
  3771. case `"$ac_path_SED" --version 2>&1` in
  3772. *GNU*)
  3773. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3774. *)
  3775. ac_count=0
  3776. $as_echo_n 0123456789 >"conftest.in"
  3777. while :
  3778. do
  3779. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3780. mv "conftest.tmp" "conftest.in"
  3781. cp "conftest.in" "conftest.nl"
  3782. $as_echo '' >> "conftest.nl"
  3783. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3784. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3785. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3786. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3787. # Best one so far, save it but keep looking for a better one
  3788. ac_cv_path_SED="$ac_path_SED"
  3789. ac_path_SED_max=$ac_count
  3790. fi
  3791. # 10*(2^10) chars as input seems more than enough
  3792. test $ac_count -gt 10 && break
  3793. done
  3794. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3795. esac
  3796. $ac_path_SED_found && break 3
  3797. done
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. if test -z "$ac_cv_path_SED"; then
  3802. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3803. fi
  3804. else
  3805. ac_cv_path_SED=$SED
  3806. fi
  3807. fi
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3809. $as_echo "$ac_cv_path_SED" >&6; }
  3810. SED="$ac_cv_path_SED"
  3811. rm -f conftest.sed
  3812. test -z "$SED" && SED=sed
  3813. Xsed="$SED -e 1s/^X//"
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3815. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3816. if test "${ac_cv_path_GREP+set}" = set; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -z "$GREP"; then
  3820. ac_path_GREP_found=false
  3821. # Loop through the user's path and test for each of PROGNAME-LIST
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_prog in grep ggrep; do
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3830. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3831. # Check for GNU ac_path_GREP and select it if it is found.
  3832. # Check for GNU $ac_path_GREP
  3833. case `"$ac_path_GREP" --version 2>&1` in
  3834. *GNU*)
  3835. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3836. *)
  3837. ac_count=0
  3838. $as_echo_n 0123456789 >"conftest.in"
  3839. while :
  3840. do
  3841. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3842. mv "conftest.tmp" "conftest.in"
  3843. cp "conftest.in" "conftest.nl"
  3844. $as_echo 'GREP' >> "conftest.nl"
  3845. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3846. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3847. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3848. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3849. # Best one so far, save it but keep looking for a better one
  3850. ac_cv_path_GREP="$ac_path_GREP"
  3851. ac_path_GREP_max=$ac_count
  3852. fi
  3853. # 10*(2^10) chars as input seems more than enough
  3854. test $ac_count -gt 10 && break
  3855. done
  3856. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3857. esac
  3858. $ac_path_GREP_found && break 3
  3859. done
  3860. done
  3861. done
  3862. IFS=$as_save_IFS
  3863. if test -z "$ac_cv_path_GREP"; then
  3864. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3865. fi
  3866. else
  3867. ac_cv_path_GREP=$GREP
  3868. fi
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3871. $as_echo "$ac_cv_path_GREP" >&6; }
  3872. GREP="$ac_cv_path_GREP"
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3874. $as_echo_n "checking for egrep... " >&6; }
  3875. if test "${ac_cv_path_EGREP+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3879. then ac_cv_path_EGREP="$GREP -E"
  3880. else
  3881. if test -z "$EGREP"; then
  3882. ac_path_EGREP_found=false
  3883. # Loop through the user's path and test for each of PROGNAME-LIST
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_prog in egrep; do
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3892. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3893. # Check for GNU ac_path_EGREP and select it if it is found.
  3894. # Check for GNU $ac_path_EGREP
  3895. case `"$ac_path_EGREP" --version 2>&1` in
  3896. *GNU*)
  3897. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3898. *)
  3899. ac_count=0
  3900. $as_echo_n 0123456789 >"conftest.in"
  3901. while :
  3902. do
  3903. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3904. mv "conftest.tmp" "conftest.in"
  3905. cp "conftest.in" "conftest.nl"
  3906. $as_echo 'EGREP' >> "conftest.nl"
  3907. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3908. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3909. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3910. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3911. # Best one so far, save it but keep looking for a better one
  3912. ac_cv_path_EGREP="$ac_path_EGREP"
  3913. ac_path_EGREP_max=$ac_count
  3914. fi
  3915. # 10*(2^10) chars as input seems more than enough
  3916. test $ac_count -gt 10 && break
  3917. done
  3918. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3919. esac
  3920. $ac_path_EGREP_found && break 3
  3921. done
  3922. done
  3923. done
  3924. IFS=$as_save_IFS
  3925. if test -z "$ac_cv_path_EGREP"; then
  3926. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3927. fi
  3928. else
  3929. ac_cv_path_EGREP=$EGREP
  3930. fi
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3934. $as_echo "$ac_cv_path_EGREP" >&6; }
  3935. EGREP="$ac_cv_path_EGREP"
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3937. $as_echo_n "checking for fgrep... " >&6; }
  3938. if test "${ac_cv_path_FGREP+set}" = set; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3942. then ac_cv_path_FGREP="$GREP -F"
  3943. else
  3944. if test -z "$FGREP"; then
  3945. ac_path_FGREP_found=false
  3946. # Loop through the user's path and test for each of PROGNAME-LIST
  3947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3948. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3949. do
  3950. IFS=$as_save_IFS
  3951. test -z "$as_dir" && as_dir=.
  3952. for ac_prog in fgrep; do
  3953. for ac_exec_ext in '' $ac_executable_extensions; do
  3954. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3955. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3956. # Check for GNU ac_path_FGREP and select it if it is found.
  3957. # Check for GNU $ac_path_FGREP
  3958. case `"$ac_path_FGREP" --version 2>&1` in
  3959. *GNU*)
  3960. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3961. *)
  3962. ac_count=0
  3963. $as_echo_n 0123456789 >"conftest.in"
  3964. while :
  3965. do
  3966. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3967. mv "conftest.tmp" "conftest.in"
  3968. cp "conftest.in" "conftest.nl"
  3969. $as_echo 'FGREP' >> "conftest.nl"
  3970. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3971. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3972. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3973. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3974. # Best one so far, save it but keep looking for a better one
  3975. ac_cv_path_FGREP="$ac_path_FGREP"
  3976. ac_path_FGREP_max=$ac_count
  3977. fi
  3978. # 10*(2^10) chars as input seems more than enough
  3979. test $ac_count -gt 10 && break
  3980. done
  3981. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3982. esac
  3983. $ac_path_FGREP_found && break 3
  3984. done
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. if test -z "$ac_cv_path_FGREP"; then
  3989. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3990. fi
  3991. else
  3992. ac_cv_path_FGREP=$FGREP
  3993. fi
  3994. fi
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3997. $as_echo "$ac_cv_path_FGREP" >&6; }
  3998. FGREP="$ac_cv_path_FGREP"
  3999. test -z "$GREP" && GREP=grep
  4000. # Check whether --with-gnu-ld was given.
  4001. if test "${with_gnu_ld+set}" = set; then :
  4002. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4003. else
  4004. with_gnu_ld=no
  4005. fi
  4006. ac_prog=ld
  4007. if test "$GCC" = yes; then
  4008. # Check if gcc -print-prog-name=ld gives a path.
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4010. $as_echo_n "checking for ld used by $CC... " >&6; }
  4011. case $host in
  4012. *-*-mingw*)
  4013. # gcc leaves a trailing carriage return which upsets mingw
  4014. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4015. *)
  4016. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4017. esac
  4018. case $ac_prog in
  4019. # Accept absolute paths.
  4020. [\\/]* | ?:[\\/]*)
  4021. re_direlt='/[^/][^/]*/\.\./'
  4022. # Canonicalize the pathname of ld
  4023. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4024. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4025. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4026. done
  4027. test -z "$LD" && LD="$ac_prog"
  4028. ;;
  4029. "")
  4030. # If it fails, then pretend we aren't using GCC.
  4031. ac_prog=ld
  4032. ;;
  4033. *)
  4034. # If it is relative, then search for the first ld in PATH.
  4035. with_gnu_ld=unknown
  4036. ;;
  4037. esac
  4038. elif test "$with_gnu_ld" = yes; then
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4040. $as_echo_n "checking for GNU ld... " >&6; }
  4041. else
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4043. $as_echo_n "checking for non-GNU ld... " >&6; }
  4044. fi
  4045. if test "${lt_cv_path_LD+set}" = set; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. if test -z "$LD"; then
  4049. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4050. for ac_dir in $PATH; do
  4051. IFS="$lt_save_ifs"
  4052. test -z "$ac_dir" && ac_dir=.
  4053. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4054. lt_cv_path_LD="$ac_dir/$ac_prog"
  4055. # Check to see if the program is GNU ld. I'd rather use --version,
  4056. # but apparently some variants of GNU ld only accept -v.
  4057. # Break only if it was the GNU/non-GNU ld that we prefer.
  4058. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4059. *GNU* | *'with BFD'*)
  4060. test "$with_gnu_ld" != no && break
  4061. ;;
  4062. *)
  4063. test "$with_gnu_ld" != yes && break
  4064. ;;
  4065. esac
  4066. fi
  4067. done
  4068. IFS="$lt_save_ifs"
  4069. else
  4070. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4071. fi
  4072. fi
  4073. LD="$lt_cv_path_LD"
  4074. if test -n "$LD"; then
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4076. $as_echo "$LD" >&6; }
  4077. else
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4079. $as_echo "no" >&6; }
  4080. fi
  4081. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4083. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4084. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4088. case `$LD -v 2>&1 </dev/null` in
  4089. *GNU* | *'with BFD'*)
  4090. lt_cv_prog_gnu_ld=yes
  4091. ;;
  4092. *)
  4093. lt_cv_prog_gnu_ld=no
  4094. ;;
  4095. esac
  4096. fi
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4098. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4099. with_gnu_ld=$lt_cv_prog_gnu_ld
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4101. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4102. if test "${lt_cv_path_NM+set}" = set; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. if test -n "$NM"; then
  4106. # Let the user override the test.
  4107. lt_cv_path_NM="$NM"
  4108. else
  4109. lt_nm_to_check="${ac_tool_prefix}nm"
  4110. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4111. lt_nm_to_check="$lt_nm_to_check nm"
  4112. fi
  4113. for lt_tmp_nm in $lt_nm_to_check; do
  4114. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4115. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4116. IFS="$lt_save_ifs"
  4117. test -z "$ac_dir" && ac_dir=.
  4118. tmp_nm="$ac_dir/$lt_tmp_nm"
  4119. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4120. # Check to see if the nm accepts a BSD-compat flag.
  4121. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4122. # nm: unknown option "B" ignored
  4123. # Tru64's nm complains that /dev/null is an invalid object file
  4124. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4125. */dev/null* | *'Invalid file or object type'*)
  4126. lt_cv_path_NM="$tmp_nm -B"
  4127. break
  4128. ;;
  4129. *)
  4130. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4131. */dev/null*)
  4132. lt_cv_path_NM="$tmp_nm -p"
  4133. break
  4134. ;;
  4135. *)
  4136. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4137. continue # so that we can try to find one that supports BSD flags
  4138. ;;
  4139. esac
  4140. ;;
  4141. esac
  4142. fi
  4143. done
  4144. IFS="$lt_save_ifs"
  4145. done
  4146. : ${lt_cv_path_NM=no}
  4147. fi
  4148. fi
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4150. $as_echo "$lt_cv_path_NM" >&6; }
  4151. if test "$lt_cv_path_NM" != "no"; then
  4152. NM="$lt_cv_path_NM"
  4153. else
  4154. # Didn't find any BSD compatible name lister, look for dumpbin.
  4155. if test -n "$ac_tool_prefix"; then
  4156. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4157. do
  4158. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4159. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4161. $as_echo_n "checking for $ac_word... " >&6; }
  4162. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if test -n "$DUMPBIN"; then
  4166. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4167. else
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_exec_ext in '' $ac_executable_extensions; do
  4174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4175. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4177. break 2
  4178. fi
  4179. done
  4180. done
  4181. IFS=$as_save_IFS
  4182. fi
  4183. fi
  4184. DUMPBIN=$ac_cv_prog_DUMPBIN
  4185. if test -n "$DUMPBIN"; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4187. $as_echo "$DUMPBIN" >&6; }
  4188. else
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4190. $as_echo "no" >&6; }
  4191. fi
  4192. test -n "$DUMPBIN" && break
  4193. done
  4194. fi
  4195. if test -z "$DUMPBIN"; then
  4196. ac_ct_DUMPBIN=$DUMPBIN
  4197. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4198. do
  4199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4200. set dummy $ac_prog; ac_word=$2
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4202. $as_echo_n "checking for $ac_word... " >&6; }
  4203. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. if test -n "$ac_ct_DUMPBIN"; then
  4207. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4208. else
  4209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4210. for as_dir in $PATH
  4211. do
  4212. IFS=$as_save_IFS
  4213. test -z "$as_dir" && as_dir=.
  4214. for ac_exec_ext in '' $ac_executable_extensions; do
  4215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4216. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4218. break 2
  4219. fi
  4220. done
  4221. done
  4222. IFS=$as_save_IFS
  4223. fi
  4224. fi
  4225. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4226. if test -n "$ac_ct_DUMPBIN"; then
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4228. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4229. else
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4231. $as_echo "no" >&6; }
  4232. fi
  4233. test -n "$ac_ct_DUMPBIN" && break
  4234. done
  4235. if test "x$ac_ct_DUMPBIN" = x; then
  4236. DUMPBIN=":"
  4237. else
  4238. case $cross_compiling:$ac_tool_warned in
  4239. yes:)
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4242. ac_tool_warned=yes ;;
  4243. esac
  4244. DUMPBIN=$ac_ct_DUMPBIN
  4245. fi
  4246. fi
  4247. if test "$DUMPBIN" != ":"; then
  4248. NM="$DUMPBIN"
  4249. fi
  4250. fi
  4251. test -z "$NM" && NM=nm
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4253. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4254. if test "${lt_cv_nm_interface+set}" = set; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. lt_cv_nm_interface="BSD nm"
  4258. echo "int some_variable = 0;" > conftest.$ac_ext
  4259. (eval echo "\"\$as_me:4710: $ac_compile\"" >&5)
  4260. (eval "$ac_compile" 2>conftest.err)
  4261. cat conftest.err >&5
  4262. (eval echo "\"\$as_me:4713: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4263. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4264. cat conftest.err >&5
  4265. (eval echo "\"\$as_me:4716: output\"" >&5)
  4266. cat conftest.out >&5
  4267. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4268. lt_cv_nm_interface="MS dumpbin"
  4269. fi
  4270. rm -f conftest*
  4271. fi
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4273. $as_echo "$lt_cv_nm_interface" >&6; }
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4275. $as_echo_n "checking whether ln -s works... " >&6; }
  4276. LN_S=$as_ln_s
  4277. if test "$LN_S" = "ln -s"; then
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4279. $as_echo "yes" >&6; }
  4280. else
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4282. $as_echo "no, using $LN_S" >&6; }
  4283. fi
  4284. # find the maximum length of command line arguments
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4286. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4287. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. i=0
  4291. teststring="ABCD"
  4292. case $build_os in
  4293. msdosdjgpp*)
  4294. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4295. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4296. # during glob expansion). Even if it were fixed, the result of this
  4297. # check would be larger than it should be.
  4298. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4299. ;;
  4300. gnu*)
  4301. # Under GNU Hurd, this test is not required because there is
  4302. # no limit to the length of command line arguments.
  4303. # Libtool will interpret -1 as no limit whatsoever
  4304. lt_cv_sys_max_cmd_len=-1;
  4305. ;;
  4306. cygwin* | mingw* | cegcc*)
  4307. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4308. # about 5 minutes as the teststring grows exponentially.
  4309. # Worse, since 9x/ME are not pre-emptively multitasking,
  4310. # you end up with a "frozen" computer, even though with patience
  4311. # the test eventually succeeds (with a max line length of 256k).
  4312. # Instead, let's just punt: use the minimum linelength reported by
  4313. # all of the supported platforms: 8192 (on NT/2K/XP).
  4314. lt_cv_sys_max_cmd_len=8192;
  4315. ;;
  4316. amigaos*)
  4317. # On AmigaOS with pdksh, this test takes hours, literally.
  4318. # So we just punt and use a minimum line length of 8192.
  4319. lt_cv_sys_max_cmd_len=8192;
  4320. ;;
  4321. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4322. # This has been around since 386BSD, at least. Likely further.
  4323. if test -x /sbin/sysctl; then
  4324. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4325. elif test -x /usr/sbin/sysctl; then
  4326. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4327. else
  4328. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4329. fi
  4330. # And add a safety zone
  4331. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4332. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4333. ;;
  4334. interix*)
  4335. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4336. lt_cv_sys_max_cmd_len=196608
  4337. ;;
  4338. osf*)
  4339. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4340. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4341. # nice to cause kernel panics so lets avoid the loop below.
  4342. # First set a reasonable default.
  4343. lt_cv_sys_max_cmd_len=16384
  4344. #
  4345. if test -x /sbin/sysconfig; then
  4346. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4347. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4348. esac
  4349. fi
  4350. ;;
  4351. sco3.2v5*)
  4352. lt_cv_sys_max_cmd_len=102400
  4353. ;;
  4354. sysv5* | sco5v6* | sysv4.2uw2*)
  4355. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4356. if test -n "$kargmax"; then
  4357. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4358. else
  4359. lt_cv_sys_max_cmd_len=32768
  4360. fi
  4361. ;;
  4362. *)
  4363. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4364. if test -n "$lt_cv_sys_max_cmd_len"; then
  4365. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4367. else
  4368. # Make teststring a little bigger before we do anything with it.
  4369. # a 1K string should be a reasonable start.
  4370. for i in 1 2 3 4 5 6 7 8 ; do
  4371. teststring=$teststring$teststring
  4372. done
  4373. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4374. # If test is not a shell built-in, we'll probably end up computing a
  4375. # maximum length that is only half of the actual maximum length, but
  4376. # we can't tell.
  4377. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4378. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4379. test $i != 17 # 1/2 MB should be enough
  4380. do
  4381. i=`expr $i + 1`
  4382. teststring=$teststring$teststring
  4383. done
  4384. # Only check the string length outside the loop.
  4385. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4386. teststring=
  4387. # Add a significant safety factor because C++ compilers can tack on
  4388. # massive amounts of additional arguments before passing them to the
  4389. # linker. It appears as though 1/2 is a usable value.
  4390. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4391. fi
  4392. ;;
  4393. esac
  4394. fi
  4395. if test -n $lt_cv_sys_max_cmd_len ; then
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4397. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4398. else
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4400. $as_echo "none" >&6; }
  4401. fi
  4402. max_cmd_len=$lt_cv_sys_max_cmd_len
  4403. : ${CP="cp -f"}
  4404. : ${MV="mv -f"}
  4405. : ${RM="rm -f"}
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4407. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4408. # Try some XSI features
  4409. xsi_shell=no
  4410. ( _lt_dummy="a/b/c"
  4411. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4412. = c,a/b,, \
  4413. && eval 'test $(( 1 + 1 )) -eq 2 \
  4414. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4415. && xsi_shell=yes
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4417. $as_echo "$xsi_shell" >&6; }
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4419. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4420. lt_shell_append=no
  4421. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4422. >/dev/null 2>&1 \
  4423. && lt_shell_append=yes
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4425. $as_echo "$lt_shell_append" >&6; }
  4426. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4427. lt_unset=unset
  4428. else
  4429. lt_unset=false
  4430. fi
  4431. # test EBCDIC or ASCII
  4432. case `echo X|tr X '\101'` in
  4433. A) # ASCII based system
  4434. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4435. lt_SP2NL='tr \040 \012'
  4436. lt_NL2SP='tr \015\012 \040\040'
  4437. ;;
  4438. *) # EBCDIC based system
  4439. lt_SP2NL='tr \100 \n'
  4440. lt_NL2SP='tr \r\n \100\100'
  4441. ;;
  4442. esac
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4444. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4445. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. lt_cv_ld_reload_flag='-r'
  4449. fi
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4451. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4452. reload_flag=$lt_cv_ld_reload_flag
  4453. case $reload_flag in
  4454. "" | " "*) ;;
  4455. *) reload_flag=" $reload_flag" ;;
  4456. esac
  4457. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4458. case $host_os in
  4459. darwin*)
  4460. if test "$GCC" = yes; then
  4461. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4462. else
  4463. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4464. fi
  4465. ;;
  4466. esac
  4467. if test -n "$ac_tool_prefix"; then
  4468. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4469. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4471. $as_echo_n "checking for $ac_word... " >&6; }
  4472. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4473. $as_echo_n "(cached) " >&6
  4474. else
  4475. if test -n "$OBJDUMP"; then
  4476. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4477. else
  4478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4479. for as_dir in $PATH
  4480. do
  4481. IFS=$as_save_IFS
  4482. test -z "$as_dir" && as_dir=.
  4483. for ac_exec_ext in '' $ac_executable_extensions; do
  4484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4485. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4487. break 2
  4488. fi
  4489. done
  4490. done
  4491. IFS=$as_save_IFS
  4492. fi
  4493. fi
  4494. OBJDUMP=$ac_cv_prog_OBJDUMP
  4495. if test -n "$OBJDUMP"; then
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4497. $as_echo "$OBJDUMP" >&6; }
  4498. else
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4500. $as_echo "no" >&6; }
  4501. fi
  4502. fi
  4503. if test -z "$ac_cv_prog_OBJDUMP"; then
  4504. ac_ct_OBJDUMP=$OBJDUMP
  4505. # Extract the first word of "objdump", so it can be a program name with args.
  4506. set dummy objdump; ac_word=$2
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4508. $as_echo_n "checking for $ac_word... " >&6; }
  4509. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4510. $as_echo_n "(cached) " >&6
  4511. else
  4512. if test -n "$ac_ct_OBJDUMP"; then
  4513. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4514. else
  4515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4516. for as_dir in $PATH
  4517. do
  4518. IFS=$as_save_IFS
  4519. test -z "$as_dir" && as_dir=.
  4520. for ac_exec_ext in '' $ac_executable_extensions; do
  4521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4522. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4524. break 2
  4525. fi
  4526. done
  4527. done
  4528. IFS=$as_save_IFS
  4529. fi
  4530. fi
  4531. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4532. if test -n "$ac_ct_OBJDUMP"; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4534. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4535. else
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4537. $as_echo "no" >&6; }
  4538. fi
  4539. if test "x$ac_ct_OBJDUMP" = x; then
  4540. OBJDUMP="false"
  4541. else
  4542. case $cross_compiling:$ac_tool_warned in
  4543. yes:)
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4546. ac_tool_warned=yes ;;
  4547. esac
  4548. OBJDUMP=$ac_ct_OBJDUMP
  4549. fi
  4550. else
  4551. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4552. fi
  4553. test -z "$OBJDUMP" && OBJDUMP=objdump
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4555. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4556. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4560. lt_cv_file_magic_test_file=
  4561. lt_cv_deplibs_check_method='unknown'
  4562. # Need to set the preceding variable on all platforms that support
  4563. # interlibrary dependencies.
  4564. # 'none' -- dependencies not supported.
  4565. # `unknown' -- same as none, but documents that we really don't know.
  4566. # 'pass_all' -- all dependencies passed with no checks.
  4567. # 'test_compile' -- check by making test program.
  4568. # 'file_magic [[regex]]' -- check by looking for files in library path
  4569. # which responds to the $file_magic_cmd with a given extended regex.
  4570. # If you have `file' or equivalent on your system and you're not sure
  4571. # whether `pass_all' will *always* work, you probably want this one.
  4572. case $host_os in
  4573. aix[4-9]*)
  4574. lt_cv_deplibs_check_method=pass_all
  4575. ;;
  4576. beos*)
  4577. lt_cv_deplibs_check_method=pass_all
  4578. ;;
  4579. bsdi[45]*)
  4580. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4581. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4582. lt_cv_file_magic_test_file=/shlib/libc.so
  4583. ;;
  4584. cygwin*)
  4585. # func_win32_libid is a shell function defined in ltmain.sh
  4586. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4587. lt_cv_file_magic_cmd='func_win32_libid'
  4588. ;;
  4589. mingw* | pw32*)
  4590. # Base MSYS/MinGW do not provide the 'file' command needed by
  4591. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4592. # unless we find 'file', for example because we are cross-compiling.
  4593. if ( file / ) >/dev/null 2>&1; then
  4594. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4595. lt_cv_file_magic_cmd='func_win32_libid'
  4596. else
  4597. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4598. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4599. fi
  4600. ;;
  4601. cegcc)
  4602. # use the weaker test based on 'objdump'. See mingw*.
  4603. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4604. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4605. ;;
  4606. darwin* | rhapsody*)
  4607. lt_cv_deplibs_check_method=pass_all
  4608. ;;
  4609. freebsd* | dragonfly*)
  4610. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4611. case $host_cpu in
  4612. i*86 )
  4613. # Not sure whether the presence of OpenBSD here was a mistake.
  4614. # Let's accept both of them until this is cleared up.
  4615. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4616. lt_cv_file_magic_cmd=/usr/bin/file
  4617. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4618. ;;
  4619. esac
  4620. else
  4621. lt_cv_deplibs_check_method=pass_all
  4622. fi
  4623. ;;
  4624. gnu*)
  4625. lt_cv_deplibs_check_method=pass_all
  4626. ;;
  4627. hpux10.20* | hpux11*)
  4628. lt_cv_file_magic_cmd=/usr/bin/file
  4629. case $host_cpu in
  4630. ia64*)
  4631. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4632. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4633. ;;
  4634. hppa*64*)
  4635. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4636. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4637. ;;
  4638. *)
  4639. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4640. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4641. ;;
  4642. esac
  4643. ;;
  4644. interix[3-9]*)
  4645. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4646. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4647. ;;
  4648. irix5* | irix6* | nonstopux*)
  4649. case $LD in
  4650. *-32|*"-32 ") libmagic=32-bit;;
  4651. *-n32|*"-n32 ") libmagic=N32;;
  4652. *-64|*"-64 ") libmagic=64-bit;;
  4653. *) libmagic=never-match;;
  4654. esac
  4655. lt_cv_deplibs_check_method=pass_all
  4656. ;;
  4657. # This must be Linux ELF.
  4658. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4659. lt_cv_deplibs_check_method=pass_all
  4660. ;;
  4661. netbsd* | netbsdelf*-gnu)
  4662. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4663. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4664. else
  4665. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4666. fi
  4667. ;;
  4668. newos6*)
  4669. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4670. lt_cv_file_magic_cmd=/usr/bin/file
  4671. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4672. ;;
  4673. *nto* | *qnx*)
  4674. lt_cv_deplibs_check_method=pass_all
  4675. ;;
  4676. openbsd*)
  4677. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4678. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4679. else
  4680. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4681. fi
  4682. ;;
  4683. osf3* | osf4* | osf5*)
  4684. lt_cv_deplibs_check_method=pass_all
  4685. ;;
  4686. rdos*)
  4687. lt_cv_deplibs_check_method=pass_all
  4688. ;;
  4689. solaris*)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4693. lt_cv_deplibs_check_method=pass_all
  4694. ;;
  4695. sysv4 | sysv4.3*)
  4696. case $host_vendor in
  4697. motorola)
  4698. 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]'
  4699. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4700. ;;
  4701. ncr)
  4702. lt_cv_deplibs_check_method=pass_all
  4703. ;;
  4704. sequent)
  4705. lt_cv_file_magic_cmd='/bin/file'
  4706. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4707. ;;
  4708. sni)
  4709. lt_cv_file_magic_cmd='/bin/file'
  4710. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4711. lt_cv_file_magic_test_file=/lib/libc.so
  4712. ;;
  4713. siemens)
  4714. lt_cv_deplibs_check_method=pass_all
  4715. ;;
  4716. pc)
  4717. lt_cv_deplibs_check_method=pass_all
  4718. ;;
  4719. esac
  4720. ;;
  4721. tpf*)
  4722. lt_cv_deplibs_check_method=pass_all
  4723. ;;
  4724. esac
  4725. fi
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4727. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4728. file_magic_cmd=$lt_cv_file_magic_cmd
  4729. deplibs_check_method=$lt_cv_deplibs_check_method
  4730. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4731. if test -n "$ac_tool_prefix"; then
  4732. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4733. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4735. $as_echo_n "checking for $ac_word... " >&6; }
  4736. if test "${ac_cv_prog_AR+set}" = set; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. if test -n "$AR"; then
  4740. ac_cv_prog_AR="$AR" # Let the user override the test.
  4741. else
  4742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. for as_dir in $PATH
  4744. do
  4745. IFS=$as_save_IFS
  4746. test -z "$as_dir" && as_dir=.
  4747. for ac_exec_ext in '' $ac_executable_extensions; do
  4748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4749. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4751. break 2
  4752. fi
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. fi
  4757. fi
  4758. AR=$ac_cv_prog_AR
  4759. if test -n "$AR"; then
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4761. $as_echo "$AR" >&6; }
  4762. else
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4764. $as_echo "no" >&6; }
  4765. fi
  4766. fi
  4767. if test -z "$ac_cv_prog_AR"; then
  4768. ac_ct_AR=$AR
  4769. # Extract the first word of "ar", so it can be a program name with args.
  4770. set dummy ar; ac_word=$2
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4772. $as_echo_n "checking for $ac_word... " >&6; }
  4773. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -n "$ac_ct_AR"; then
  4777. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4778. else
  4779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4780. for as_dir in $PATH
  4781. do
  4782. IFS=$as_save_IFS
  4783. test -z "$as_dir" && as_dir=.
  4784. for ac_exec_ext in '' $ac_executable_extensions; do
  4785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4786. ac_cv_prog_ac_ct_AR="ar"
  4787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4788. break 2
  4789. fi
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. fi
  4794. fi
  4795. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4796. if test -n "$ac_ct_AR"; then
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4798. $as_echo "$ac_ct_AR" >&6; }
  4799. else
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4801. $as_echo "no" >&6; }
  4802. fi
  4803. if test "x$ac_ct_AR" = x; then
  4804. AR="false"
  4805. else
  4806. case $cross_compiling:$ac_tool_warned in
  4807. yes:)
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4810. ac_tool_warned=yes ;;
  4811. esac
  4812. AR=$ac_ct_AR
  4813. fi
  4814. else
  4815. AR="$ac_cv_prog_AR"
  4816. fi
  4817. test -z "$AR" && AR=ar
  4818. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4819. if test -n "$ac_tool_prefix"; then
  4820. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4821. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4823. $as_echo_n "checking for $ac_word... " >&6; }
  4824. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. if test -n "$STRIP"; then
  4828. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4829. else
  4830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4831. for as_dir in $PATH
  4832. do
  4833. IFS=$as_save_IFS
  4834. test -z "$as_dir" && as_dir=.
  4835. for ac_exec_ext in '' $ac_executable_extensions; do
  4836. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4837. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4839. break 2
  4840. fi
  4841. done
  4842. done
  4843. IFS=$as_save_IFS
  4844. fi
  4845. fi
  4846. STRIP=$ac_cv_prog_STRIP
  4847. if test -n "$STRIP"; then
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4849. $as_echo "$STRIP" >&6; }
  4850. else
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4852. $as_echo "no" >&6; }
  4853. fi
  4854. fi
  4855. if test -z "$ac_cv_prog_STRIP"; then
  4856. ac_ct_STRIP=$STRIP
  4857. # Extract the first word of "strip", so it can be a program name with args.
  4858. set dummy strip; ac_word=$2
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4860. $as_echo_n "checking for $ac_word... " >&6; }
  4861. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. if test -n "$ac_ct_STRIP"; then
  4865. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4874. ac_cv_prog_ac_ct_STRIP="strip"
  4875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4884. if test -n "$ac_ct_STRIP"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4886. $as_echo "$ac_ct_STRIP" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4889. $as_echo "no" >&6; }
  4890. fi
  4891. if test "x$ac_ct_STRIP" = x; then
  4892. STRIP=":"
  4893. else
  4894. case $cross_compiling:$ac_tool_warned in
  4895. yes:)
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4897. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4898. ac_tool_warned=yes ;;
  4899. esac
  4900. STRIP=$ac_ct_STRIP
  4901. fi
  4902. else
  4903. STRIP="$ac_cv_prog_STRIP"
  4904. fi
  4905. test -z "$STRIP" && STRIP=:
  4906. if test -n "$ac_tool_prefix"; then
  4907. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4908. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4910. $as_echo_n "checking for $ac_word... " >&6; }
  4911. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. if test -n "$RANLIB"; then
  4915. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4916. else
  4917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4918. for as_dir in $PATH
  4919. do
  4920. IFS=$as_save_IFS
  4921. test -z "$as_dir" && as_dir=.
  4922. for ac_exec_ext in '' $ac_executable_extensions; do
  4923. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4924. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4926. break 2
  4927. fi
  4928. done
  4929. done
  4930. IFS=$as_save_IFS
  4931. fi
  4932. fi
  4933. RANLIB=$ac_cv_prog_RANLIB
  4934. if test -n "$RANLIB"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4936. $as_echo "$RANLIB" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. fi
  4942. if test -z "$ac_cv_prog_RANLIB"; then
  4943. ac_ct_RANLIB=$RANLIB
  4944. # Extract the first word of "ranlib", so it can be a program name with args.
  4945. set dummy ranlib; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$ac_ct_RANLIB"; then
  4952. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4961. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4971. if test -n "$ac_ct_RANLIB"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4973. $as_echo "$ac_ct_RANLIB" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. if test "x$ac_ct_RANLIB" = x; then
  4979. RANLIB=":"
  4980. else
  4981. case $cross_compiling:$ac_tool_warned in
  4982. yes:)
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4985. ac_tool_warned=yes ;;
  4986. esac
  4987. RANLIB=$ac_ct_RANLIB
  4988. fi
  4989. else
  4990. RANLIB="$ac_cv_prog_RANLIB"
  4991. fi
  4992. test -z "$RANLIB" && RANLIB=:
  4993. # Determine commands to create old-style static archives.
  4994. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4995. old_postinstall_cmds='chmod 644 $oldlib'
  4996. old_postuninstall_cmds=
  4997. if test -n "$RANLIB"; then
  4998. case $host_os in
  4999. openbsd*)
  5000. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5001. ;;
  5002. *)
  5003. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5004. ;;
  5005. esac
  5006. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5007. fi
  5008. # If no C compiler was specified, use CC.
  5009. LTCC=${LTCC-"$CC"}
  5010. # If no C compiler flags were specified, use CFLAGS.
  5011. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5012. # Allow CC to be a program name with arguments.
  5013. compiler=$CC
  5014. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5016. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5017. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. # These are sane defaults that work on at least a few old systems.
  5021. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5022. # Character class describing NM global symbol codes.
  5023. symcode='[BCDEGRST]'
  5024. # Regexp to match symbols that can be accessed directly from C.
  5025. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5026. # Define system-specific variables.
  5027. case $host_os in
  5028. aix*)
  5029. symcode='[BCDT]'
  5030. ;;
  5031. cygwin* | mingw* | pw32* | cegcc*)
  5032. symcode='[ABCDGISTW]'
  5033. ;;
  5034. hpux*)
  5035. if test "$host_cpu" = ia64; then
  5036. symcode='[ABCDEGRST]'
  5037. fi
  5038. ;;
  5039. irix* | nonstopux*)
  5040. symcode='[BCDEGRST]'
  5041. ;;
  5042. osf*)
  5043. symcode='[BCDEGQRST]'
  5044. ;;
  5045. solaris*)
  5046. symcode='[BDRT]'
  5047. ;;
  5048. sco3.2v5*)
  5049. symcode='[DT]'
  5050. ;;
  5051. sysv4.2uw2*)
  5052. symcode='[DT]'
  5053. ;;
  5054. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5055. symcode='[ABDT]'
  5056. ;;
  5057. sysv4)
  5058. symcode='[DFNSTU]'
  5059. ;;
  5060. esac
  5061. # If we're using GNU nm, then use its standard symbol codes.
  5062. case `$NM -V 2>&1` in
  5063. *GNU* | *'with BFD'*)
  5064. symcode='[ABCDGIRSTW]' ;;
  5065. esac
  5066. # Transform an extracted symbol line into a proper C declaration.
  5067. # Some systems (esp. on ia64) link data and code symbols differently,
  5068. # so use this general approach.
  5069. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5070. # Transform an extracted symbol line into symbol name and symbol address
  5071. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5072. 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'"
  5073. # Handle CRLF in mingw tool chain
  5074. opt_cr=
  5075. case $build_os in
  5076. mingw*)
  5077. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5078. ;;
  5079. esac
  5080. # Try without a prefix underscore, then with it.
  5081. for ac_symprfx in "" "_"; do
  5082. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5083. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5084. # Write the raw and C identifiers.
  5085. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5086. # Fake it for dumpbin and say T for any non-static function
  5087. # and D for any global variable.
  5088. # Also find C++ and __fastcall symbols from MSVC++,
  5089. # which start with @ or ?.
  5090. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5091. " {last_section=section; section=\$ 3};"\
  5092. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5093. " \$ 0!~/External *\|/{next};"\
  5094. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5095. " {if(hide[section]) next};"\
  5096. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5097. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5098. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5099. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5100. " ' prfx=^$ac_symprfx"
  5101. else
  5102. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5103. fi
  5104. # Check to see that the pipe works correctly.
  5105. pipe_works=no
  5106. rm -f conftest*
  5107. cat > conftest.$ac_ext <<_LT_EOF
  5108. #ifdef __cplusplus
  5109. extern "C" {
  5110. #endif
  5111. char nm_test_var;
  5112. void nm_test_func(void);
  5113. void nm_test_func(void){}
  5114. #ifdef __cplusplus
  5115. }
  5116. #endif
  5117. int main(){nm_test_var='a';nm_test_func();return(0);}
  5118. _LT_EOF
  5119. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5120. (eval $ac_compile) 2>&5
  5121. ac_status=$?
  5122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5123. test $ac_status = 0; }; then
  5124. # Now try to grab the symbols.
  5125. nlist=conftest.nm
  5126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5127. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5128. ac_status=$?
  5129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5130. test $ac_status = 0; } && test -s "$nlist"; then
  5131. # Try sorting and uniquifying the output.
  5132. if sort "$nlist" | uniq > "$nlist"T; then
  5133. mv -f "$nlist"T "$nlist"
  5134. else
  5135. rm -f "$nlist"T
  5136. fi
  5137. # Make sure that we snagged all the symbols we need.
  5138. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5139. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5140. cat <<_LT_EOF > conftest.$ac_ext
  5141. #ifdef __cplusplus
  5142. extern "C" {
  5143. #endif
  5144. _LT_EOF
  5145. # Now generate the symbol file.
  5146. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5147. cat <<_LT_EOF >> conftest.$ac_ext
  5148. /* The mapping between symbol names and symbols. */
  5149. const struct {
  5150. const char *name;
  5151. void *address;
  5152. }
  5153. lt__PROGRAM__LTX_preloaded_symbols[] =
  5154. {
  5155. { "@PROGRAM@", (void *) 0 },
  5156. _LT_EOF
  5157. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5158. cat <<\_LT_EOF >> conftest.$ac_ext
  5159. {0, (void *) 0}
  5160. };
  5161. /* This works around a problem in FreeBSD linker */
  5162. #ifdef FREEBSD_WORKAROUND
  5163. static const void *lt_preloaded_setup() {
  5164. return lt__PROGRAM__LTX_preloaded_symbols;
  5165. }
  5166. #endif
  5167. #ifdef __cplusplus
  5168. }
  5169. #endif
  5170. _LT_EOF
  5171. # Now try linking the two files.
  5172. mv conftest.$ac_objext conftstm.$ac_objext
  5173. lt_save_LIBS="$LIBS"
  5174. lt_save_CFLAGS="$CFLAGS"
  5175. LIBS="conftstm.$ac_objext"
  5176. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5177. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5178. (eval $ac_link) 2>&5
  5179. ac_status=$?
  5180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5181. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5182. pipe_works=yes
  5183. fi
  5184. LIBS="$lt_save_LIBS"
  5185. CFLAGS="$lt_save_CFLAGS"
  5186. else
  5187. echo "cannot find nm_test_func in $nlist" >&5
  5188. fi
  5189. else
  5190. echo "cannot find nm_test_var in $nlist" >&5
  5191. fi
  5192. else
  5193. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5194. fi
  5195. else
  5196. echo "$progname: failed program was:" >&5
  5197. cat conftest.$ac_ext >&5
  5198. fi
  5199. rm -rf conftest* conftst*
  5200. # Do not use the global_symbol_pipe unless it works.
  5201. if test "$pipe_works" = yes; then
  5202. break
  5203. else
  5204. lt_cv_sys_global_symbol_pipe=
  5205. fi
  5206. done
  5207. fi
  5208. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5209. lt_cv_sys_global_symbol_to_cdecl=
  5210. fi
  5211. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5213. $as_echo "failed" >&6; }
  5214. else
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5216. $as_echo "ok" >&6; }
  5217. fi
  5218. # Check whether --enable-libtool-lock was given.
  5219. if test "${enable_libtool_lock+set}" = set; then :
  5220. enableval=$enable_libtool_lock;
  5221. fi
  5222. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5223. # Some flags need to be propagated to the compiler or linker for good
  5224. # libtool support.
  5225. case $host in
  5226. ia64-*-hpux*)
  5227. # Find out which ABI we are using.
  5228. echo 'int i;' > conftest.$ac_ext
  5229. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5230. (eval $ac_compile) 2>&5
  5231. ac_status=$?
  5232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5233. test $ac_status = 0; }; then
  5234. case `/usr/bin/file conftest.$ac_objext` in
  5235. *ELF-32*)
  5236. HPUX_IA64_MODE="32"
  5237. ;;
  5238. *ELF-64*)
  5239. HPUX_IA64_MODE="64"
  5240. ;;
  5241. esac
  5242. fi
  5243. rm -rf conftest*
  5244. ;;
  5245. *-*-irix6*)
  5246. # Find out which ABI we are using.
  5247. echo '#line 5919 "configure"' > conftest.$ac_ext
  5248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5249. (eval $ac_compile) 2>&5
  5250. ac_status=$?
  5251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5252. test $ac_status = 0; }; then
  5253. if test "$lt_cv_prog_gnu_ld" = yes; then
  5254. case `/usr/bin/file conftest.$ac_objext` in
  5255. *32-bit*)
  5256. LD="${LD-ld} -melf32bsmip"
  5257. ;;
  5258. *N32*)
  5259. LD="${LD-ld} -melf32bmipn32"
  5260. ;;
  5261. *64-bit*)
  5262. LD="${LD-ld} -melf64bmip"
  5263. ;;
  5264. esac
  5265. else
  5266. case `/usr/bin/file conftest.$ac_objext` in
  5267. *32-bit*)
  5268. LD="${LD-ld} -32"
  5269. ;;
  5270. *N32*)
  5271. LD="${LD-ld} -n32"
  5272. ;;
  5273. *64-bit*)
  5274. LD="${LD-ld} -64"
  5275. ;;
  5276. esac
  5277. fi
  5278. fi
  5279. rm -rf conftest*
  5280. ;;
  5281. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5282. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5283. # Find out which ABI we are using.
  5284. echo 'int i;' > conftest.$ac_ext
  5285. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5286. (eval $ac_compile) 2>&5
  5287. ac_status=$?
  5288. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5289. test $ac_status = 0; }; then
  5290. case `/usr/bin/file conftest.o` in
  5291. *32-bit*)
  5292. case $host in
  5293. x86_64-*kfreebsd*-gnu)
  5294. LD="${LD-ld} -m elf_i386_fbsd"
  5295. ;;
  5296. x86_64-*linux*)
  5297. LD="${LD-ld} -m elf_i386"
  5298. ;;
  5299. ppc64-*linux*|powerpc64-*linux*)
  5300. LD="${LD-ld} -m elf32ppclinux"
  5301. ;;
  5302. s390x-*linux*)
  5303. LD="${LD-ld} -m elf_s390"
  5304. ;;
  5305. sparc64-*linux*)
  5306. LD="${LD-ld} -m elf32_sparc"
  5307. ;;
  5308. esac
  5309. ;;
  5310. *64-bit*)
  5311. case $host in
  5312. x86_64-*kfreebsd*-gnu)
  5313. LD="${LD-ld} -m elf_x86_64_fbsd"
  5314. ;;
  5315. x86_64-*linux*)
  5316. LD="${LD-ld} -m elf_x86_64"
  5317. ;;
  5318. ppc*-*linux*|powerpc*-*linux*)
  5319. LD="${LD-ld} -m elf64ppc"
  5320. ;;
  5321. s390*-*linux*|s390*-*tpf*)
  5322. LD="${LD-ld} -m elf64_s390"
  5323. ;;
  5324. sparc*-*linux*)
  5325. LD="${LD-ld} -m elf64_sparc"
  5326. ;;
  5327. esac
  5328. ;;
  5329. esac
  5330. fi
  5331. rm -rf conftest*
  5332. ;;
  5333. *-*-sco3.2v5*)
  5334. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5335. SAVE_CFLAGS="$CFLAGS"
  5336. CFLAGS="$CFLAGS -belf"
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5338. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5339. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. ac_ext=c
  5343. ac_cpp='$CPP $CPPFLAGS'
  5344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5348. /* end confdefs.h. */
  5349. int
  5350. main ()
  5351. {
  5352. ;
  5353. return 0;
  5354. }
  5355. _ACEOF
  5356. if ac_fn_c_try_link "$LINENO"; then :
  5357. lt_cv_cc_needs_belf=yes
  5358. else
  5359. lt_cv_cc_needs_belf=no
  5360. fi
  5361. rm -f core conftest.err conftest.$ac_objext \
  5362. conftest$ac_exeext conftest.$ac_ext
  5363. ac_ext=c
  5364. ac_cpp='$CPP $CPPFLAGS'
  5365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5368. fi
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5370. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5371. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5372. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5373. CFLAGS="$SAVE_CFLAGS"
  5374. fi
  5375. ;;
  5376. sparc*-*solaris*)
  5377. # Find out which ABI we are using.
  5378. echo 'int i;' > conftest.$ac_ext
  5379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5380. (eval $ac_compile) 2>&5
  5381. ac_status=$?
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5383. test $ac_status = 0; }; then
  5384. case `/usr/bin/file conftest.o` in
  5385. *64-bit*)
  5386. case $lt_cv_prog_gnu_ld in
  5387. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5388. *)
  5389. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5390. LD="${LD-ld} -64"
  5391. fi
  5392. ;;
  5393. esac
  5394. ;;
  5395. esac
  5396. fi
  5397. rm -rf conftest*
  5398. ;;
  5399. esac
  5400. need_locks="$enable_libtool_lock"
  5401. case $host_os in
  5402. rhapsody* | darwin*)
  5403. if test -n "$ac_tool_prefix"; then
  5404. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5405. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5407. $as_echo_n "checking for $ac_word... " >&6; }
  5408. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5409. $as_echo_n "(cached) " >&6
  5410. else
  5411. if test -n "$DSYMUTIL"; then
  5412. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5413. else
  5414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5415. for as_dir in $PATH
  5416. do
  5417. IFS=$as_save_IFS
  5418. test -z "$as_dir" && as_dir=.
  5419. for ac_exec_ext in '' $ac_executable_extensions; do
  5420. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5421. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5423. break 2
  5424. fi
  5425. done
  5426. done
  5427. IFS=$as_save_IFS
  5428. fi
  5429. fi
  5430. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5431. if test -n "$DSYMUTIL"; then
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5433. $as_echo "$DSYMUTIL" >&6; }
  5434. else
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5436. $as_echo "no" >&6; }
  5437. fi
  5438. fi
  5439. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5440. ac_ct_DSYMUTIL=$DSYMUTIL
  5441. # Extract the first word of "dsymutil", so it can be a program name with args.
  5442. set dummy dsymutil; ac_word=$2
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5444. $as_echo_n "checking for $ac_word... " >&6; }
  5445. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. if test -n "$ac_ct_DSYMUTIL"; then
  5449. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5450. else
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5458. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. fi
  5466. fi
  5467. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5468. if test -n "$ac_ct_DSYMUTIL"; then
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5470. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5471. else
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5473. $as_echo "no" >&6; }
  5474. fi
  5475. if test "x$ac_ct_DSYMUTIL" = x; then
  5476. DSYMUTIL=":"
  5477. else
  5478. case $cross_compiling:$ac_tool_warned in
  5479. yes:)
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5482. ac_tool_warned=yes ;;
  5483. esac
  5484. DSYMUTIL=$ac_ct_DSYMUTIL
  5485. fi
  5486. else
  5487. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5488. fi
  5489. if test -n "$ac_tool_prefix"; then
  5490. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5491. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5493. $as_echo_n "checking for $ac_word... " >&6; }
  5494. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. if test -n "$NMEDIT"; then
  5498. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5507. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. NMEDIT=$ac_cv_prog_NMEDIT
  5517. if test -n "$NMEDIT"; then
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5519. $as_echo "$NMEDIT" >&6; }
  5520. else
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5522. $as_echo "no" >&6; }
  5523. fi
  5524. fi
  5525. if test -z "$ac_cv_prog_NMEDIT"; then
  5526. ac_ct_NMEDIT=$NMEDIT
  5527. # Extract the first word of "nmedit", so it can be a program name with args.
  5528. set dummy nmedit; ac_word=$2
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5530. $as_echo_n "checking for $ac_word... " >&6; }
  5531. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5532. $as_echo_n "(cached) " >&6
  5533. else
  5534. if test -n "$ac_ct_NMEDIT"; then
  5535. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. test -z "$as_dir" && as_dir=.
  5542. for ac_exec_ext in '' $ac_executable_extensions; do
  5543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5544. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5546. break 2
  5547. fi
  5548. done
  5549. done
  5550. IFS=$as_save_IFS
  5551. fi
  5552. fi
  5553. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5554. if test -n "$ac_ct_NMEDIT"; then
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5556. $as_echo "$ac_ct_NMEDIT" >&6; }
  5557. else
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5559. $as_echo "no" >&6; }
  5560. fi
  5561. if test "x$ac_ct_NMEDIT" = x; then
  5562. NMEDIT=":"
  5563. else
  5564. case $cross_compiling:$ac_tool_warned in
  5565. yes:)
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5568. ac_tool_warned=yes ;;
  5569. esac
  5570. NMEDIT=$ac_ct_NMEDIT
  5571. fi
  5572. else
  5573. NMEDIT="$ac_cv_prog_NMEDIT"
  5574. fi
  5575. if test -n "$ac_tool_prefix"; then
  5576. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5577. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5579. $as_echo_n "checking for $ac_word... " >&6; }
  5580. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. if test -n "$LIPO"; then
  5584. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5585. else
  5586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5587. for as_dir in $PATH
  5588. do
  5589. IFS=$as_save_IFS
  5590. test -z "$as_dir" && as_dir=.
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5593. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5595. break 2
  5596. fi
  5597. done
  5598. done
  5599. IFS=$as_save_IFS
  5600. fi
  5601. fi
  5602. LIPO=$ac_cv_prog_LIPO
  5603. if test -n "$LIPO"; then
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5605. $as_echo "$LIPO" >&6; }
  5606. else
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. fi
  5610. fi
  5611. if test -z "$ac_cv_prog_LIPO"; then
  5612. ac_ct_LIPO=$LIPO
  5613. # Extract the first word of "lipo", so it can be a program name with args.
  5614. set dummy lipo; ac_word=$2
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5616. $as_echo_n "checking for $ac_word... " >&6; }
  5617. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5618. $as_echo_n "(cached) " >&6
  5619. else
  5620. if test -n "$ac_ct_LIPO"; then
  5621. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. test -z "$as_dir" && as_dir=.
  5628. for ac_exec_ext in '' $ac_executable_extensions; do
  5629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5630. ac_cv_prog_ac_ct_LIPO="lipo"
  5631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5632. break 2
  5633. fi
  5634. done
  5635. done
  5636. IFS=$as_save_IFS
  5637. fi
  5638. fi
  5639. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5640. if test -n "$ac_ct_LIPO"; then
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5642. $as_echo "$ac_ct_LIPO" >&6; }
  5643. else
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5645. $as_echo "no" >&6; }
  5646. fi
  5647. if test "x$ac_ct_LIPO" = x; then
  5648. LIPO=":"
  5649. else
  5650. case $cross_compiling:$ac_tool_warned in
  5651. yes:)
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5654. ac_tool_warned=yes ;;
  5655. esac
  5656. LIPO=$ac_ct_LIPO
  5657. fi
  5658. else
  5659. LIPO="$ac_cv_prog_LIPO"
  5660. fi
  5661. if test -n "$ac_tool_prefix"; then
  5662. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5663. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5665. $as_echo_n "checking for $ac_word... " >&6; }
  5666. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. if test -n "$OTOOL"; then
  5670. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. test -z "$as_dir" && as_dir=.
  5677. for ac_exec_ext in '' $ac_executable_extensions; do
  5678. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5679. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5681. break 2
  5682. fi
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. fi
  5687. fi
  5688. OTOOL=$ac_cv_prog_OTOOL
  5689. if test -n "$OTOOL"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5691. $as_echo "$OTOOL" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. fi
  5697. if test -z "$ac_cv_prog_OTOOL"; then
  5698. ac_ct_OTOOL=$OTOOL
  5699. # Extract the first word of "otool", so it can be a program name with args.
  5700. set dummy otool; ac_word=$2
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5702. $as_echo_n "checking for $ac_word... " >&6; }
  5703. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5704. $as_echo_n "(cached) " >&6
  5705. else
  5706. if test -n "$ac_ct_OTOOL"; then
  5707. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5708. else
  5709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5710. for as_dir in $PATH
  5711. do
  5712. IFS=$as_save_IFS
  5713. test -z "$as_dir" && as_dir=.
  5714. for ac_exec_ext in '' $ac_executable_extensions; do
  5715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5716. ac_cv_prog_ac_ct_OTOOL="otool"
  5717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5718. break 2
  5719. fi
  5720. done
  5721. done
  5722. IFS=$as_save_IFS
  5723. fi
  5724. fi
  5725. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5726. if test -n "$ac_ct_OTOOL"; then
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5728. $as_echo "$ac_ct_OTOOL" >&6; }
  5729. else
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5731. $as_echo "no" >&6; }
  5732. fi
  5733. if test "x$ac_ct_OTOOL" = x; then
  5734. OTOOL=":"
  5735. else
  5736. case $cross_compiling:$ac_tool_warned in
  5737. yes:)
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5739. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5740. ac_tool_warned=yes ;;
  5741. esac
  5742. OTOOL=$ac_ct_OTOOL
  5743. fi
  5744. else
  5745. OTOOL="$ac_cv_prog_OTOOL"
  5746. fi
  5747. if test -n "$ac_tool_prefix"; then
  5748. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5749. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5751. $as_echo_n "checking for $ac_word... " >&6; }
  5752. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5753. $as_echo_n "(cached) " >&6
  5754. else
  5755. if test -n "$OTOOL64"; then
  5756. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5757. else
  5758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5759. for as_dir in $PATH
  5760. do
  5761. IFS=$as_save_IFS
  5762. test -z "$as_dir" && as_dir=.
  5763. for ac_exec_ext in '' $ac_executable_extensions; do
  5764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5765. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5767. break 2
  5768. fi
  5769. done
  5770. done
  5771. IFS=$as_save_IFS
  5772. fi
  5773. fi
  5774. OTOOL64=$ac_cv_prog_OTOOL64
  5775. if test -n "$OTOOL64"; then
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5777. $as_echo "$OTOOL64" >&6; }
  5778. else
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5780. $as_echo "no" >&6; }
  5781. fi
  5782. fi
  5783. if test -z "$ac_cv_prog_OTOOL64"; then
  5784. ac_ct_OTOOL64=$OTOOL64
  5785. # Extract the first word of "otool64", so it can be a program name with args.
  5786. set dummy otool64; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. if test -n "$ac_ct_OTOOL64"; then
  5793. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5794. else
  5795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5796. for as_dir in $PATH
  5797. do
  5798. IFS=$as_save_IFS
  5799. test -z "$as_dir" && as_dir=.
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5802. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5812. if test -n "$ac_ct_OTOOL64"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5814. $as_echo "$ac_ct_OTOOL64" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. if test "x$ac_ct_OTOOL64" = x; then
  5820. OTOOL64=":"
  5821. else
  5822. case $cross_compiling:$ac_tool_warned in
  5823. yes:)
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5826. ac_tool_warned=yes ;;
  5827. esac
  5828. OTOOL64=$ac_ct_OTOOL64
  5829. fi
  5830. else
  5831. OTOOL64="$ac_cv_prog_OTOOL64"
  5832. fi
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5834. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5835. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. lt_cv_apple_cc_single_mod=no
  5839. if test -z "${LT_MULTI_MODULE}"; then
  5840. # By default we will add the -single_module flag. You can override
  5841. # by either setting the environment variable LT_MULTI_MODULE
  5842. # non-empty at configure time, or by adding -multi_module to the
  5843. # link flags.
  5844. rm -rf libconftest.dylib*
  5845. echo "int foo(void){return 1;}" > conftest.c
  5846. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5847. -dynamiclib -Wl,-single_module conftest.c" >&5
  5848. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5849. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5850. _lt_result=$?
  5851. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5852. lt_cv_apple_cc_single_mod=yes
  5853. else
  5854. cat conftest.err >&5
  5855. fi
  5856. rm -rf libconftest.dylib*
  5857. rm -f conftest.*
  5858. fi
  5859. fi
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5861. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5863. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5864. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. lt_cv_ld_exported_symbols_list=no
  5868. save_LDFLAGS=$LDFLAGS
  5869. echo "_main" > conftest.sym
  5870. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5872. /* end confdefs.h. */
  5873. int
  5874. main ()
  5875. {
  5876. ;
  5877. return 0;
  5878. }
  5879. _ACEOF
  5880. if ac_fn_c_try_link "$LINENO"; then :
  5881. lt_cv_ld_exported_symbols_list=yes
  5882. else
  5883. lt_cv_ld_exported_symbols_list=no
  5884. fi
  5885. rm -f core conftest.err conftest.$ac_objext \
  5886. conftest$ac_exeext conftest.$ac_ext
  5887. LDFLAGS="$save_LDFLAGS"
  5888. fi
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5890. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5891. case $host_os in
  5892. rhapsody* | darwin1.[012])
  5893. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5894. darwin1.*)
  5895. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5896. darwin*) # darwin 5.x on
  5897. # if running on 10.5 or later, the deployment target defaults
  5898. # to the OS version, if on x86, and 10.4, the deployment
  5899. # target defaults to 10.4. Don't you love it?
  5900. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5901. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5902. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5903. 10.[012]*)
  5904. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5905. 10.*)
  5906. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5907. esac
  5908. ;;
  5909. esac
  5910. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5911. _lt_dar_single_mod='$single_module'
  5912. fi
  5913. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5914. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5915. else
  5916. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5917. fi
  5918. if test "$DSYMUTIL" != ":"; then
  5919. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5920. else
  5921. _lt_dsymutil=
  5922. fi
  5923. ;;
  5924. esac
  5925. ac_ext=c
  5926. ac_cpp='$CPP $CPPFLAGS'
  5927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5931. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5932. # On Suns, sometimes $CPP names a directory.
  5933. if test -n "$CPP" && test -d "$CPP"; then
  5934. CPP=
  5935. fi
  5936. if test -z "$CPP"; then
  5937. if test "${ac_cv_prog_CPP+set}" = set; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. # Double quotes because CPP needs to be expanded
  5941. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5942. do
  5943. ac_preproc_ok=false
  5944. for ac_c_preproc_warn_flag in '' yes
  5945. do
  5946. # Use a header file that comes with gcc, so configuring glibc
  5947. # with a fresh cross-compiler works.
  5948. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5949. # <limits.h> exists even on freestanding compilers.
  5950. # On the NeXT, cc -E runs the code through the compiler's parser,
  5951. # not just through cpp. "Syntax error" is here to catch this case.
  5952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5953. /* end confdefs.h. */
  5954. #ifdef __STDC__
  5955. # include <limits.h>
  5956. #else
  5957. # include <assert.h>
  5958. #endif
  5959. Syntax error
  5960. _ACEOF
  5961. if ac_fn_c_try_cpp "$LINENO"; then :
  5962. else
  5963. # Broken: fails on valid input.
  5964. continue
  5965. fi
  5966. rm -f conftest.err conftest.$ac_ext
  5967. # OK, works on sane cases. Now check whether nonexistent headers
  5968. # can be detected and how.
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. #include <ac_nonexistent.h>
  5972. _ACEOF
  5973. if ac_fn_c_try_cpp "$LINENO"; then :
  5974. # Broken: success on invalid input.
  5975. continue
  5976. else
  5977. # Passes both tests.
  5978. ac_preproc_ok=:
  5979. break
  5980. fi
  5981. rm -f conftest.err conftest.$ac_ext
  5982. done
  5983. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5984. rm -f conftest.err conftest.$ac_ext
  5985. if $ac_preproc_ok; then :
  5986. break
  5987. fi
  5988. done
  5989. ac_cv_prog_CPP=$CPP
  5990. fi
  5991. CPP=$ac_cv_prog_CPP
  5992. else
  5993. ac_cv_prog_CPP=$CPP
  5994. fi
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5996. $as_echo "$CPP" >&6; }
  5997. ac_preproc_ok=false
  5998. for ac_c_preproc_warn_flag in '' yes
  5999. do
  6000. # Use a header file that comes with gcc, so configuring glibc
  6001. # with a fresh cross-compiler works.
  6002. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6003. # <limits.h> exists even on freestanding compilers.
  6004. # On the NeXT, cc -E runs the code through the compiler's parser,
  6005. # not just through cpp. "Syntax error" is here to catch this case.
  6006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6007. /* end confdefs.h. */
  6008. #ifdef __STDC__
  6009. # include <limits.h>
  6010. #else
  6011. # include <assert.h>
  6012. #endif
  6013. Syntax error
  6014. _ACEOF
  6015. if ac_fn_c_try_cpp "$LINENO"; then :
  6016. else
  6017. # Broken: fails on valid input.
  6018. continue
  6019. fi
  6020. rm -f conftest.err conftest.$ac_ext
  6021. # OK, works on sane cases. Now check whether nonexistent headers
  6022. # can be detected and how.
  6023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6024. /* end confdefs.h. */
  6025. #include <ac_nonexistent.h>
  6026. _ACEOF
  6027. if ac_fn_c_try_cpp "$LINENO"; then :
  6028. # Broken: success on invalid input.
  6029. continue
  6030. else
  6031. # Passes both tests.
  6032. ac_preproc_ok=:
  6033. break
  6034. fi
  6035. rm -f conftest.err conftest.$ac_ext
  6036. done
  6037. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6038. rm -f conftest.err conftest.$ac_ext
  6039. if $ac_preproc_ok; then :
  6040. else
  6041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6043. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6044. See \`config.log' for more details." "$LINENO" 5; }
  6045. fi
  6046. ac_ext=c
  6047. ac_cpp='$CPP $CPPFLAGS'
  6048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6052. $as_echo_n "checking for ANSI C header files... " >&6; }
  6053. if test "${ac_cv_header_stdc+set}" = set; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6057. /* end confdefs.h. */
  6058. #include <stdlib.h>
  6059. #include <stdarg.h>
  6060. #include <string.h>
  6061. #include <float.h>
  6062. int
  6063. main ()
  6064. {
  6065. ;
  6066. return 0;
  6067. }
  6068. _ACEOF
  6069. if ac_fn_c_try_compile "$LINENO"; then :
  6070. ac_cv_header_stdc=yes
  6071. else
  6072. ac_cv_header_stdc=no
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6075. if test $ac_cv_header_stdc = yes; then
  6076. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6078. /* end confdefs.h. */
  6079. #include <string.h>
  6080. _ACEOF
  6081. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6082. $EGREP "memchr" >/dev/null 2>&1; then :
  6083. else
  6084. ac_cv_header_stdc=no
  6085. fi
  6086. rm -f conftest*
  6087. fi
  6088. if test $ac_cv_header_stdc = yes; then
  6089. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. #include <stdlib.h>
  6093. _ACEOF
  6094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6095. $EGREP "free" >/dev/null 2>&1; then :
  6096. else
  6097. ac_cv_header_stdc=no
  6098. fi
  6099. rm -f conftest*
  6100. fi
  6101. if test $ac_cv_header_stdc = yes; then
  6102. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6103. if test "$cross_compiling" = yes; then :
  6104. :
  6105. else
  6106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6107. /* end confdefs.h. */
  6108. #include <ctype.h>
  6109. #include <stdlib.h>
  6110. #if ((' ' & 0x0FF) == 0x020)
  6111. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6112. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6113. #else
  6114. # define ISLOWER(c) \
  6115. (('a' <= (c) && (c) <= 'i') \
  6116. || ('j' <= (c) && (c) <= 'r') \
  6117. || ('s' <= (c) && (c) <= 'z'))
  6118. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6119. #endif
  6120. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6121. int
  6122. main ()
  6123. {
  6124. int i;
  6125. for (i = 0; i < 256; i++)
  6126. if (XOR (islower (i), ISLOWER (i))
  6127. || toupper (i) != TOUPPER (i))
  6128. return 2;
  6129. return 0;
  6130. }
  6131. _ACEOF
  6132. if ac_fn_c_try_run "$LINENO"; then :
  6133. else
  6134. ac_cv_header_stdc=no
  6135. fi
  6136. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6137. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6138. fi
  6139. fi
  6140. fi
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6142. $as_echo "$ac_cv_header_stdc" >&6; }
  6143. if test $ac_cv_header_stdc = yes; then
  6144. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6145. fi
  6146. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6147. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6148. inttypes.h stdint.h unistd.h
  6149. do :
  6150. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6151. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6152. "
  6153. eval as_val=\$$as_ac_Header
  6154. if test "x$as_val" = x""yes; then :
  6155. cat >>confdefs.h <<_ACEOF
  6156. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6157. _ACEOF
  6158. fi
  6159. done
  6160. for ac_header in dlfcn.h
  6161. do :
  6162. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6163. "
  6164. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6165. cat >>confdefs.h <<_ACEOF
  6166. #define HAVE_DLFCN_H 1
  6167. _ACEOF
  6168. fi
  6169. done
  6170. ac_ext=cpp
  6171. ac_cpp='$CXXCPP $CPPFLAGS'
  6172. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6173. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6174. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6175. if test -z "$CXX"; then
  6176. if test -n "$CCC"; then
  6177. CXX=$CCC
  6178. else
  6179. if test -n "$ac_tool_prefix"; then
  6180. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6181. do
  6182. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6183. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6185. $as_echo_n "checking for $ac_word... " >&6; }
  6186. if test "${ac_cv_prog_CXX+set}" = set; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. if test -n "$CXX"; then
  6190. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6191. else
  6192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6193. for as_dir in $PATH
  6194. do
  6195. IFS=$as_save_IFS
  6196. test -z "$as_dir" && as_dir=.
  6197. for ac_exec_ext in '' $ac_executable_extensions; do
  6198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6199. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6201. break 2
  6202. fi
  6203. done
  6204. done
  6205. IFS=$as_save_IFS
  6206. fi
  6207. fi
  6208. CXX=$ac_cv_prog_CXX
  6209. if test -n "$CXX"; then
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6211. $as_echo "$CXX" >&6; }
  6212. else
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. fi
  6216. test -n "$CXX" && break
  6217. done
  6218. fi
  6219. if test -z "$CXX"; then
  6220. ac_ct_CXX=$CXX
  6221. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6222. do
  6223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6224. set dummy $ac_prog; ac_word=$2
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6226. $as_echo_n "checking for $ac_word... " >&6; }
  6227. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. if test -n "$ac_ct_CXX"; then
  6231. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6232. else
  6233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6234. for as_dir in $PATH
  6235. do
  6236. IFS=$as_save_IFS
  6237. test -z "$as_dir" && as_dir=.
  6238. for ac_exec_ext in '' $ac_executable_extensions; do
  6239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6240. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6242. break 2
  6243. fi
  6244. done
  6245. done
  6246. IFS=$as_save_IFS
  6247. fi
  6248. fi
  6249. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6250. if test -n "$ac_ct_CXX"; then
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6252. $as_echo "$ac_ct_CXX" >&6; }
  6253. else
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6255. $as_echo "no" >&6; }
  6256. fi
  6257. test -n "$ac_ct_CXX" && break
  6258. done
  6259. if test "x$ac_ct_CXX" = x; then
  6260. CXX="g++"
  6261. else
  6262. case $cross_compiling:$ac_tool_warned in
  6263. yes:)
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6266. ac_tool_warned=yes ;;
  6267. esac
  6268. CXX=$ac_ct_CXX
  6269. fi
  6270. fi
  6271. fi
  6272. fi
  6273. # Provide some information about the compiler.
  6274. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6275. set X $ac_compile
  6276. ac_compiler=$2
  6277. for ac_option in --version -v -V -qversion; do
  6278. { { ac_try="$ac_compiler $ac_option >&5"
  6279. case "(($ac_try" in
  6280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6281. *) ac_try_echo=$ac_try;;
  6282. esac
  6283. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6284. $as_echo "$ac_try_echo"; } >&5
  6285. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6286. ac_status=$?
  6287. if test -s conftest.err; then
  6288. sed '10a\
  6289. ... rest of stderr output deleted ...
  6290. 10q' conftest.err >conftest.er1
  6291. cat conftest.er1 >&5
  6292. fi
  6293. rm -f conftest.er1 conftest.err
  6294. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6295. test $ac_status = 0; }
  6296. done
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6298. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6299. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. int
  6305. main ()
  6306. {
  6307. #ifndef __GNUC__
  6308. choke me
  6309. #endif
  6310. ;
  6311. return 0;
  6312. }
  6313. _ACEOF
  6314. if ac_fn_cxx_try_compile "$LINENO"; then :
  6315. ac_compiler_gnu=yes
  6316. else
  6317. ac_compiler_gnu=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6320. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6321. fi
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6323. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6324. if test $ac_compiler_gnu = yes; then
  6325. GXX=yes
  6326. else
  6327. GXX=
  6328. fi
  6329. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6330. ac_save_CXXFLAGS=$CXXFLAGS
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6332. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6333. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6337. ac_cxx_werror_flag=yes
  6338. ac_cv_prog_cxx_g=no
  6339. CXXFLAGS="-g"
  6340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6341. /* end confdefs.h. */
  6342. int
  6343. main ()
  6344. {
  6345. ;
  6346. return 0;
  6347. }
  6348. _ACEOF
  6349. if ac_fn_cxx_try_compile "$LINENO"; then :
  6350. ac_cv_prog_cxx_g=yes
  6351. else
  6352. CXXFLAGS=""
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. int
  6356. main ()
  6357. {
  6358. ;
  6359. return 0;
  6360. }
  6361. _ACEOF
  6362. if ac_fn_cxx_try_compile "$LINENO"; then :
  6363. else
  6364. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6365. CXXFLAGS="-g"
  6366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6367. /* end confdefs.h. */
  6368. int
  6369. main ()
  6370. {
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. if ac_fn_cxx_try_compile "$LINENO"; then :
  6376. ac_cv_prog_cxx_g=yes
  6377. fi
  6378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6381. fi
  6382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6383. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6384. fi
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6386. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6387. if test "$ac_test_CXXFLAGS" = set; then
  6388. CXXFLAGS=$ac_save_CXXFLAGS
  6389. elif test $ac_cv_prog_cxx_g = yes; then
  6390. if test "$GXX" = yes; then
  6391. CXXFLAGS="-g -O2"
  6392. else
  6393. CXXFLAGS="-g"
  6394. fi
  6395. else
  6396. if test "$GXX" = yes; then
  6397. CXXFLAGS="-O2"
  6398. else
  6399. CXXFLAGS=
  6400. fi
  6401. fi
  6402. ac_ext=c
  6403. ac_cpp='$CPP $CPPFLAGS'
  6404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6407. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6408. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6409. (test "X$CXX" != "Xg++"))) ; then
  6410. ac_ext=cpp
  6411. ac_cpp='$CXXCPP $CPPFLAGS'
  6412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6416. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6417. if test -z "$CXXCPP"; then
  6418. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. # Double quotes because CXXCPP needs to be expanded
  6422. for CXXCPP in "$CXX -E" "/lib/cpp"
  6423. do
  6424. ac_preproc_ok=false
  6425. for ac_cxx_preproc_warn_flag in '' yes
  6426. do
  6427. # Use a header file that comes with gcc, so configuring glibc
  6428. # with a fresh cross-compiler works.
  6429. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6430. # <limits.h> exists even on freestanding compilers.
  6431. # On the NeXT, cc -E runs the code through the compiler's parser,
  6432. # not just through cpp. "Syntax error" is here to catch this case.
  6433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6434. /* end confdefs.h. */
  6435. #ifdef __STDC__
  6436. # include <limits.h>
  6437. #else
  6438. # include <assert.h>
  6439. #endif
  6440. Syntax error
  6441. _ACEOF
  6442. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6443. else
  6444. # Broken: fails on valid input.
  6445. continue
  6446. fi
  6447. rm -f conftest.err conftest.$ac_ext
  6448. # OK, works on sane cases. Now check whether nonexistent headers
  6449. # can be detected and how.
  6450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6451. /* end confdefs.h. */
  6452. #include <ac_nonexistent.h>
  6453. _ACEOF
  6454. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6455. # Broken: success on invalid input.
  6456. continue
  6457. else
  6458. # Passes both tests.
  6459. ac_preproc_ok=:
  6460. break
  6461. fi
  6462. rm -f conftest.err conftest.$ac_ext
  6463. done
  6464. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6465. rm -f conftest.err conftest.$ac_ext
  6466. if $ac_preproc_ok; then :
  6467. break
  6468. fi
  6469. done
  6470. ac_cv_prog_CXXCPP=$CXXCPP
  6471. fi
  6472. CXXCPP=$ac_cv_prog_CXXCPP
  6473. else
  6474. ac_cv_prog_CXXCPP=$CXXCPP
  6475. fi
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6477. $as_echo "$CXXCPP" >&6; }
  6478. ac_preproc_ok=false
  6479. for ac_cxx_preproc_warn_flag in '' yes
  6480. do
  6481. # Use a header file that comes with gcc, so configuring glibc
  6482. # with a fresh cross-compiler works.
  6483. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6484. # <limits.h> exists even on freestanding compilers.
  6485. # On the NeXT, cc -E runs the code through the compiler's parser,
  6486. # not just through cpp. "Syntax error" is here to catch this case.
  6487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6488. /* end confdefs.h. */
  6489. #ifdef __STDC__
  6490. # include <limits.h>
  6491. #else
  6492. # include <assert.h>
  6493. #endif
  6494. Syntax error
  6495. _ACEOF
  6496. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6497. else
  6498. # Broken: fails on valid input.
  6499. continue
  6500. fi
  6501. rm -f conftest.err conftest.$ac_ext
  6502. # OK, works on sane cases. Now check whether nonexistent headers
  6503. # can be detected and how.
  6504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6505. /* end confdefs.h. */
  6506. #include <ac_nonexistent.h>
  6507. _ACEOF
  6508. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6509. # Broken: success on invalid input.
  6510. continue
  6511. else
  6512. # Passes both tests.
  6513. ac_preproc_ok=:
  6514. break
  6515. fi
  6516. rm -f conftest.err conftest.$ac_ext
  6517. done
  6518. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6519. rm -f conftest.err conftest.$ac_ext
  6520. if $ac_preproc_ok; then :
  6521. else
  6522. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6523. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6524. _lt_caught_CXX_error=yes; }
  6525. fi
  6526. ac_ext=c
  6527. ac_cpp='$CPP $CPPFLAGS'
  6528. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6529. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6530. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6531. else
  6532. _lt_caught_CXX_error=yes
  6533. fi
  6534. # Set options
  6535. enable_dlopen=no
  6536. # Check whether --enable-shared was given.
  6537. if test "${enable_shared+set}" = set; then :
  6538. enableval=$enable_shared; p=${PACKAGE-default}
  6539. case $enableval in
  6540. yes) enable_shared=yes ;;
  6541. no) enable_shared=no ;;
  6542. *)
  6543. enable_shared=no
  6544. # Look at the argument we got. We use all the common list separators.
  6545. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6546. for pkg in $enableval; do
  6547. IFS="$lt_save_ifs"
  6548. if test "X$pkg" = "X$p"; then
  6549. enable_shared=yes
  6550. fi
  6551. done
  6552. IFS="$lt_save_ifs"
  6553. ;;
  6554. esac
  6555. else
  6556. enable_shared=yes
  6557. fi
  6558. # Check whether --enable-static was given.
  6559. if test "${enable_static+set}" = set; then :
  6560. enableval=$enable_static; p=${PACKAGE-default}
  6561. case $enableval in
  6562. yes) enable_static=yes ;;
  6563. no) enable_static=no ;;
  6564. *)
  6565. enable_static=no
  6566. # Look at the argument we got. We use all the common list separators.
  6567. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6568. for pkg in $enableval; do
  6569. IFS="$lt_save_ifs"
  6570. if test "X$pkg" = "X$p"; then
  6571. enable_static=yes
  6572. fi
  6573. done
  6574. IFS="$lt_save_ifs"
  6575. ;;
  6576. esac
  6577. else
  6578. enable_static=yes
  6579. fi
  6580. # Check whether --with-pic was given.
  6581. if test "${with_pic+set}" = set; then :
  6582. withval=$with_pic; pic_mode="$withval"
  6583. else
  6584. pic_mode=default
  6585. fi
  6586. test -z "$pic_mode" && pic_mode=default
  6587. # Check whether --enable-fast-install was given.
  6588. if test "${enable_fast_install+set}" = set; then :
  6589. enableval=$enable_fast_install; p=${PACKAGE-default}
  6590. case $enableval in
  6591. yes) enable_fast_install=yes ;;
  6592. no) enable_fast_install=no ;;
  6593. *)
  6594. enable_fast_install=no
  6595. # Look at the argument we got. We use all the common list separators.
  6596. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6597. for pkg in $enableval; do
  6598. IFS="$lt_save_ifs"
  6599. if test "X$pkg" = "X$p"; then
  6600. enable_fast_install=yes
  6601. fi
  6602. done
  6603. IFS="$lt_save_ifs"
  6604. ;;
  6605. esac
  6606. else
  6607. enable_fast_install=yes
  6608. fi
  6609. # This can be used to rebuild libtool when needed
  6610. LIBTOOL_DEPS="$ltmain"
  6611. # Always use our own libtool.
  6612. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6613. test -z "$LN_S" && LN_S="ln -s"
  6614. if test -n "${ZSH_VERSION+set}" ; then
  6615. setopt NO_GLOB_SUBST
  6616. fi
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6618. $as_echo_n "checking for objdir... " >&6; }
  6619. if test "${lt_cv_objdir+set}" = set; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. rm -f .libs 2>/dev/null
  6623. mkdir .libs 2>/dev/null
  6624. if test -d .libs; then
  6625. lt_cv_objdir=.libs
  6626. else
  6627. # MS-DOS does not allow filenames that begin with a dot.
  6628. lt_cv_objdir=_libs
  6629. fi
  6630. rmdir .libs 2>/dev/null
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6633. $as_echo "$lt_cv_objdir" >&6; }
  6634. objdir=$lt_cv_objdir
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define LT_OBJDIR "$lt_cv_objdir/"
  6637. _ACEOF
  6638. case $host_os in
  6639. aix3*)
  6640. # AIX sometimes has problems with the GCC collect2 program. For some
  6641. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6642. # vanish in a puff of smoke.
  6643. if test "X${COLLECT_NAMES+set}" != Xset; then
  6644. COLLECT_NAMES=
  6645. export COLLECT_NAMES
  6646. fi
  6647. ;;
  6648. esac
  6649. # Sed substitution that helps us do robust quoting. It backslashifies
  6650. # metacharacters that are still active within double-quoted strings.
  6651. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6652. # Same as above, but do not quote variable references.
  6653. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6654. # Sed substitution to delay expansion of an escaped shell variable in a
  6655. # double_quote_subst'ed string.
  6656. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6657. # Sed substitution to delay expansion of an escaped single quote.
  6658. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6659. # Sed substitution to avoid accidental globbing in evaled expressions
  6660. no_glob_subst='s/\*/\\\*/g'
  6661. # Global variables:
  6662. ofile=libtool
  6663. can_build_shared=yes
  6664. # All known linkers require a `.a' archive for static linking (except MSVC,
  6665. # which needs '.lib').
  6666. libext=a
  6667. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6668. old_CC="$CC"
  6669. old_CFLAGS="$CFLAGS"
  6670. # Set sane defaults for various variables
  6671. test -z "$CC" && CC=cc
  6672. test -z "$LTCC" && LTCC=$CC
  6673. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6674. test -z "$LD" && LD=ld
  6675. test -z "$ac_objext" && ac_objext=o
  6676. for cc_temp in $compiler""; do
  6677. case $cc_temp in
  6678. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6679. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6680. \-*) ;;
  6681. *) break;;
  6682. esac
  6683. done
  6684. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6685. # Only perform the check for file, if the check method requires it
  6686. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6687. case $deplibs_check_method in
  6688. file_magic*)
  6689. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6691. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6692. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6693. $as_echo_n "(cached) " >&6
  6694. else
  6695. case $MAGIC_CMD in
  6696. [\\/*] | ?:[\\/]*)
  6697. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6698. ;;
  6699. *)
  6700. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6701. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6702. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6703. for ac_dir in $ac_dummy; do
  6704. IFS="$lt_save_ifs"
  6705. test -z "$ac_dir" && ac_dir=.
  6706. if test -f $ac_dir/${ac_tool_prefix}file; then
  6707. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6708. if test -n "$file_magic_test_file"; then
  6709. case $deplibs_check_method in
  6710. "file_magic "*)
  6711. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6712. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6713. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6714. $EGREP "$file_magic_regex" > /dev/null; then
  6715. :
  6716. else
  6717. cat <<_LT_EOF 1>&2
  6718. *** Warning: the command libtool uses to detect shared libraries,
  6719. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6720. *** The result is that libtool may fail to recognize shared libraries
  6721. *** as such. This will affect the creation of libtool libraries that
  6722. *** depend on shared libraries, but programs linked with such libtool
  6723. *** libraries will work regardless of this problem. Nevertheless, you
  6724. *** may want to report the problem to your system manager and/or to
  6725. *** bug-libtool@gnu.org
  6726. _LT_EOF
  6727. fi ;;
  6728. esac
  6729. fi
  6730. break
  6731. fi
  6732. done
  6733. IFS="$lt_save_ifs"
  6734. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6735. ;;
  6736. esac
  6737. fi
  6738. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6739. if test -n "$MAGIC_CMD"; then
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6741. $as_echo "$MAGIC_CMD" >&6; }
  6742. else
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6744. $as_echo "no" >&6; }
  6745. fi
  6746. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6747. if test -n "$ac_tool_prefix"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6749. $as_echo_n "checking for file... " >&6; }
  6750. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6751. $as_echo_n "(cached) " >&6
  6752. else
  6753. case $MAGIC_CMD in
  6754. [\\/*] | ?:[\\/]*)
  6755. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6756. ;;
  6757. *)
  6758. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6759. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6760. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6761. for ac_dir in $ac_dummy; do
  6762. IFS="$lt_save_ifs"
  6763. test -z "$ac_dir" && ac_dir=.
  6764. if test -f $ac_dir/file; then
  6765. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6766. if test -n "$file_magic_test_file"; then
  6767. case $deplibs_check_method in
  6768. "file_magic "*)
  6769. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6770. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6771. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6772. $EGREP "$file_magic_regex" > /dev/null; then
  6773. :
  6774. else
  6775. cat <<_LT_EOF 1>&2
  6776. *** Warning: the command libtool uses to detect shared libraries,
  6777. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6778. *** The result is that libtool may fail to recognize shared libraries
  6779. *** as such. This will affect the creation of libtool libraries that
  6780. *** depend on shared libraries, but programs linked with such libtool
  6781. *** libraries will work regardless of this problem. Nevertheless, you
  6782. *** may want to report the problem to your system manager and/or to
  6783. *** bug-libtool@gnu.org
  6784. _LT_EOF
  6785. fi ;;
  6786. esac
  6787. fi
  6788. break
  6789. fi
  6790. done
  6791. IFS="$lt_save_ifs"
  6792. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6793. ;;
  6794. esac
  6795. fi
  6796. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6797. if test -n "$MAGIC_CMD"; then
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6799. $as_echo "$MAGIC_CMD" >&6; }
  6800. else
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6802. $as_echo "no" >&6; }
  6803. fi
  6804. else
  6805. MAGIC_CMD=:
  6806. fi
  6807. fi
  6808. fi
  6809. ;;
  6810. esac
  6811. # Use C for the default configuration in the libtool script
  6812. lt_save_CC="$CC"
  6813. ac_ext=c
  6814. ac_cpp='$CPP $CPPFLAGS'
  6815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6818. # Source file extension for C test sources.
  6819. ac_ext=c
  6820. # Object file extension for compiled C test sources.
  6821. objext=o
  6822. objext=$objext
  6823. # Code to be used in simple compile tests
  6824. lt_simple_compile_test_code="int some_variable = 0;"
  6825. # Code to be used in simple link tests
  6826. lt_simple_link_test_code='int main(){return(0);}'
  6827. # If no C compiler was specified, use CC.
  6828. LTCC=${LTCC-"$CC"}
  6829. # If no C compiler flags were specified, use CFLAGS.
  6830. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6831. # Allow CC to be a program name with arguments.
  6832. compiler=$CC
  6833. # Save the default compiler, since it gets overwritten when the other
  6834. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6835. compiler_DEFAULT=$CC
  6836. # save warnings/boilerplate of simple test code
  6837. ac_outfile=conftest.$ac_objext
  6838. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6839. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6840. _lt_compiler_boilerplate=`cat conftest.err`
  6841. $RM conftest*
  6842. ac_outfile=conftest.$ac_objext
  6843. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6844. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6845. _lt_linker_boilerplate=`cat conftest.err`
  6846. $RM -r conftest*
  6847. if test -n "$compiler"; then
  6848. lt_prog_compiler_no_builtin_flag=
  6849. if test "$GCC" = yes; then
  6850. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6852. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6853. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. lt_cv_prog_compiler_rtti_exceptions=no
  6857. ac_outfile=conftest.$ac_objext
  6858. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6859. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6860. # Insert the option either (1) after the last *FLAGS variable, or
  6861. # (2) before a word containing "conftest.", or (3) at the end.
  6862. # Note that $ac_compile itself does not contain backslashes and begins
  6863. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6864. # The option is referenced via a variable to avoid confusing sed.
  6865. lt_compile=`echo "$ac_compile" | $SED \
  6866. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6867. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6868. -e 's:$: $lt_compiler_flag:'`
  6869. (eval echo "\"\$as_me:7843: $lt_compile\"" >&5)
  6870. (eval "$lt_compile" 2>conftest.err)
  6871. ac_status=$?
  6872. cat conftest.err >&5
  6873. echo "$as_me:7847: \$? = $ac_status" >&5
  6874. if (exit $ac_status) && test -s "$ac_outfile"; then
  6875. # The compiler can only warn and ignore the option if not recognized
  6876. # So say no if there are warnings other than the usual output.
  6877. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6878. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6879. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6880. lt_cv_prog_compiler_rtti_exceptions=yes
  6881. fi
  6882. fi
  6883. $RM conftest*
  6884. fi
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6886. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6887. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6888. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6889. else
  6890. :
  6891. fi
  6892. fi
  6893. lt_prog_compiler_wl=
  6894. lt_prog_compiler_pic=
  6895. lt_prog_compiler_static=
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6897. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6898. if test "$GCC" = yes; then
  6899. lt_prog_compiler_wl='-Wl,'
  6900. lt_prog_compiler_static='-static'
  6901. case $host_os in
  6902. aix*)
  6903. # All AIX code is PIC.
  6904. if test "$host_cpu" = ia64; then
  6905. # AIX 5 now supports IA64 processor
  6906. lt_prog_compiler_static='-Bstatic'
  6907. fi
  6908. ;;
  6909. amigaos*)
  6910. case $host_cpu in
  6911. powerpc)
  6912. # see comment about AmigaOS4 .so support
  6913. lt_prog_compiler_pic='-fPIC'
  6914. ;;
  6915. m68k)
  6916. # FIXME: we need at least 68020 code to build shared libraries, but
  6917. # adding the `-m68020' flag to GCC prevents building anything better,
  6918. # like `-m68040'.
  6919. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6920. ;;
  6921. esac
  6922. ;;
  6923. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6924. # PIC is the default for these OSes.
  6925. ;;
  6926. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6927. # This hack is so that the source file can tell whether it is being
  6928. # built for inclusion in a dll (and should export symbols for example).
  6929. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6930. # (--disable-auto-import) libraries
  6931. lt_prog_compiler_pic='-DDLL_EXPORT'
  6932. ;;
  6933. darwin* | rhapsody*)
  6934. # PIC is the default on this platform
  6935. # Common symbols not allowed in MH_DYLIB files
  6936. lt_prog_compiler_pic='-fno-common'
  6937. ;;
  6938. hpux*)
  6939. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6940. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6941. # sets the default TLS model and affects inlining.
  6942. case $host_cpu in
  6943. hppa*64*)
  6944. # +Z the default
  6945. ;;
  6946. *)
  6947. lt_prog_compiler_pic='-fPIC'
  6948. ;;
  6949. esac
  6950. ;;
  6951. interix[3-9]*)
  6952. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6953. # Instead, we relocate shared libraries at runtime.
  6954. ;;
  6955. msdosdjgpp*)
  6956. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6957. # on systems that don't support them.
  6958. lt_prog_compiler_can_build_shared=no
  6959. enable_shared=no
  6960. ;;
  6961. *nto* | *qnx*)
  6962. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6963. # it will coredump.
  6964. lt_prog_compiler_pic='-fPIC -shared'
  6965. ;;
  6966. sysv4*MP*)
  6967. if test -d /usr/nec; then
  6968. lt_prog_compiler_pic=-Kconform_pic
  6969. fi
  6970. ;;
  6971. *)
  6972. lt_prog_compiler_pic='-fPIC'
  6973. ;;
  6974. esac
  6975. else
  6976. # PORTME Check for flag to pass linker flags through the system compiler.
  6977. case $host_os in
  6978. aix*)
  6979. lt_prog_compiler_wl='-Wl,'
  6980. if test "$host_cpu" = ia64; then
  6981. # AIX 5 now supports IA64 processor
  6982. lt_prog_compiler_static='-Bstatic'
  6983. else
  6984. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6985. fi
  6986. ;;
  6987. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6988. # This hack is so that the source file can tell whether it is being
  6989. # built for inclusion in a dll (and should export symbols for example).
  6990. lt_prog_compiler_pic='-DDLL_EXPORT'
  6991. ;;
  6992. hpux9* | hpux10* | hpux11*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6995. # not for PA HP-UX.
  6996. case $host_cpu in
  6997. hppa*64*|ia64*)
  6998. # +Z the default
  6999. ;;
  7000. *)
  7001. lt_prog_compiler_pic='+Z'
  7002. ;;
  7003. esac
  7004. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7005. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7006. ;;
  7007. irix5* | irix6* | nonstopux*)
  7008. lt_prog_compiler_wl='-Wl,'
  7009. # PIC (with -KPIC) is the default.
  7010. lt_prog_compiler_static='-non_shared'
  7011. ;;
  7012. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7013. case $cc_basename in
  7014. # old Intel for x86_64 which still supported -KPIC.
  7015. ecc*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. lt_prog_compiler_pic='-KPIC'
  7018. lt_prog_compiler_static='-static'
  7019. ;;
  7020. # icc used to be incompatible with GCC.
  7021. # ICC 10 doesn't accept -KPIC any more.
  7022. icc* | ifort*)
  7023. lt_prog_compiler_wl='-Wl,'
  7024. lt_prog_compiler_pic='-fPIC'
  7025. lt_prog_compiler_static='-static'
  7026. ;;
  7027. # Lahey Fortran 8.1.
  7028. lf95*)
  7029. lt_prog_compiler_wl='-Wl,'
  7030. lt_prog_compiler_pic='--shared'
  7031. lt_prog_compiler_static='--static'
  7032. ;;
  7033. pgcc* | pgf77* | pgf90* | pgf95*)
  7034. # Portland Group compilers (*not* the Pentium gcc compiler,
  7035. # which looks to be a dead project)
  7036. lt_prog_compiler_wl='-Wl,'
  7037. lt_prog_compiler_pic='-fpic'
  7038. lt_prog_compiler_static='-Bstatic'
  7039. ;;
  7040. ccc*)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. # All Alpha code is PIC.
  7043. lt_prog_compiler_static='-non_shared'
  7044. ;;
  7045. xl*)
  7046. # IBM XL C 8.0/Fortran 10.1 on PPC
  7047. lt_prog_compiler_wl='-Wl,'
  7048. lt_prog_compiler_pic='-qpic'
  7049. lt_prog_compiler_static='-qstaticlink'
  7050. ;;
  7051. *)
  7052. case `$CC -V 2>&1 | sed 5q` in
  7053. *Sun\ C*)
  7054. # Sun C 5.9
  7055. lt_prog_compiler_pic='-KPIC'
  7056. lt_prog_compiler_static='-Bstatic'
  7057. lt_prog_compiler_wl='-Wl,'
  7058. ;;
  7059. *Sun\ F*)
  7060. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7061. lt_prog_compiler_pic='-KPIC'
  7062. lt_prog_compiler_static='-Bstatic'
  7063. lt_prog_compiler_wl=''
  7064. ;;
  7065. esac
  7066. ;;
  7067. esac
  7068. ;;
  7069. newsos6)
  7070. lt_prog_compiler_pic='-KPIC'
  7071. lt_prog_compiler_static='-Bstatic'
  7072. ;;
  7073. *nto* | *qnx*)
  7074. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7075. # it will coredump.
  7076. lt_prog_compiler_pic='-fPIC -shared'
  7077. ;;
  7078. osf3* | osf4* | osf5*)
  7079. lt_prog_compiler_wl='-Wl,'
  7080. # All OSF/1 code is PIC.
  7081. lt_prog_compiler_static='-non_shared'
  7082. ;;
  7083. rdos*)
  7084. lt_prog_compiler_static='-non_shared'
  7085. ;;
  7086. solaris*)
  7087. lt_prog_compiler_pic='-KPIC'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. case $cc_basename in
  7090. f77* | f90* | f95*)
  7091. lt_prog_compiler_wl='-Qoption ld ';;
  7092. *)
  7093. lt_prog_compiler_wl='-Wl,';;
  7094. esac
  7095. ;;
  7096. sunos4*)
  7097. lt_prog_compiler_wl='-Qoption ld '
  7098. lt_prog_compiler_pic='-PIC'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. ;;
  7101. sysv4 | sysv4.2uw2* | sysv4.3*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. lt_prog_compiler_pic='-KPIC'
  7104. lt_prog_compiler_static='-Bstatic'
  7105. ;;
  7106. sysv4*MP*)
  7107. if test -d /usr/nec ;then
  7108. lt_prog_compiler_pic='-Kconform_pic'
  7109. lt_prog_compiler_static='-Bstatic'
  7110. fi
  7111. ;;
  7112. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7113. lt_prog_compiler_wl='-Wl,'
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. ;;
  7117. unicos*)
  7118. lt_prog_compiler_wl='-Wl,'
  7119. lt_prog_compiler_can_build_shared=no
  7120. ;;
  7121. uts4*)
  7122. lt_prog_compiler_pic='-pic'
  7123. lt_prog_compiler_static='-Bstatic'
  7124. ;;
  7125. *)
  7126. lt_prog_compiler_can_build_shared=no
  7127. ;;
  7128. esac
  7129. fi
  7130. case $host_os in
  7131. # For platforms which do not support PIC, -DPIC is meaningless:
  7132. *djgpp*)
  7133. lt_prog_compiler_pic=
  7134. ;;
  7135. *)
  7136. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7137. ;;
  7138. esac
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7140. $as_echo "$lt_prog_compiler_pic" >&6; }
  7141. #
  7142. # Check to make sure the PIC flag actually works.
  7143. #
  7144. if test -n "$lt_prog_compiler_pic"; then
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7146. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7147. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. lt_cv_prog_compiler_pic_works=no
  7151. ac_outfile=conftest.$ac_objext
  7152. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7153. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7154. # Insert the option either (1) after the last *FLAGS variable, or
  7155. # (2) before a word containing "conftest.", or (3) at the end.
  7156. # Note that $ac_compile itself does not contain backslashes and begins
  7157. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7158. # The option is referenced via a variable to avoid confusing sed.
  7159. lt_compile=`echo "$ac_compile" | $SED \
  7160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7162. -e 's:$: $lt_compiler_flag:'`
  7163. (eval echo "\"\$as_me:8182: $lt_compile\"" >&5)
  7164. (eval "$lt_compile" 2>conftest.err)
  7165. ac_status=$?
  7166. cat conftest.err >&5
  7167. echo "$as_me:8186: \$? = $ac_status" >&5
  7168. if (exit $ac_status) && test -s "$ac_outfile"; then
  7169. # The compiler can only warn and ignore the option if not recognized
  7170. # So say no if there are warnings other than the usual output.
  7171. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7173. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7174. lt_cv_prog_compiler_pic_works=yes
  7175. fi
  7176. fi
  7177. $RM conftest*
  7178. fi
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7180. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7181. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7182. case $lt_prog_compiler_pic in
  7183. "" | " "*) ;;
  7184. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7185. esac
  7186. else
  7187. lt_prog_compiler_pic=
  7188. lt_prog_compiler_can_build_shared=no
  7189. fi
  7190. fi
  7191. #
  7192. # Check to make sure the static flag actually works.
  7193. #
  7194. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7196. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7197. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. lt_cv_prog_compiler_static_works=no
  7201. save_LDFLAGS="$LDFLAGS"
  7202. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7203. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7204. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7205. # The linker can only warn and ignore the option if not recognized
  7206. # So say no if there are warnings
  7207. if test -s conftest.err; then
  7208. # Append any errors to the config.log.
  7209. cat conftest.err 1>&5
  7210. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7211. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7212. if diff conftest.exp conftest.er2 >/dev/null; then
  7213. lt_cv_prog_compiler_static_works=yes
  7214. fi
  7215. else
  7216. lt_cv_prog_compiler_static_works=yes
  7217. fi
  7218. fi
  7219. $RM -r conftest*
  7220. LDFLAGS="$save_LDFLAGS"
  7221. fi
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7223. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7224. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7225. :
  7226. else
  7227. lt_prog_compiler_static=
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7230. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7231. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. lt_cv_prog_compiler_c_o=no
  7235. $RM -r conftest 2>/dev/null
  7236. mkdir conftest
  7237. cd conftest
  7238. mkdir out
  7239. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7240. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7241. # Insert the option either (1) after the last *FLAGS variable, or
  7242. # (2) before a word containing "conftest.", or (3) at the end.
  7243. # Note that $ac_compile itself does not contain backslashes and begins
  7244. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7245. lt_compile=`echo "$ac_compile" | $SED \
  7246. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7247. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7248. -e 's:$: $lt_compiler_flag:'`
  7249. (eval echo "\"\$as_me:8287: $lt_compile\"" >&5)
  7250. (eval "$lt_compile" 2>out/conftest.err)
  7251. ac_status=$?
  7252. cat out/conftest.err >&5
  7253. echo "$as_me:8291: \$? = $ac_status" >&5
  7254. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7255. then
  7256. # The compiler can only warn and ignore the option if not recognized
  7257. # So say no if there are warnings
  7258. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7259. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7260. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7261. lt_cv_prog_compiler_c_o=yes
  7262. fi
  7263. fi
  7264. chmod u+w . 2>&5
  7265. $RM conftest*
  7266. # SGI C++ compiler will create directory out/ii_files/ for
  7267. # template instantiation
  7268. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7269. $RM out/* && rmdir out
  7270. cd ..
  7271. $RM -r conftest
  7272. $RM conftest*
  7273. fi
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7275. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7277. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7278. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7279. $as_echo_n "(cached) " >&6
  7280. else
  7281. lt_cv_prog_compiler_c_o=no
  7282. $RM -r conftest 2>/dev/null
  7283. mkdir conftest
  7284. cd conftest
  7285. mkdir out
  7286. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7287. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7288. # Insert the option either (1) after the last *FLAGS variable, or
  7289. # (2) before a word containing "conftest.", or (3) at the end.
  7290. # Note that $ac_compile itself does not contain backslashes and begins
  7291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7292. lt_compile=`echo "$ac_compile" | $SED \
  7293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7295. -e 's:$: $lt_compiler_flag:'`
  7296. (eval echo "\"\$as_me:8342: $lt_compile\"" >&5)
  7297. (eval "$lt_compile" 2>out/conftest.err)
  7298. ac_status=$?
  7299. cat out/conftest.err >&5
  7300. echo "$as_me:8346: \$? = $ac_status" >&5
  7301. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7302. then
  7303. # The compiler can only warn and ignore the option if not recognized
  7304. # So say no if there are warnings
  7305. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7306. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7307. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7308. lt_cv_prog_compiler_c_o=yes
  7309. fi
  7310. fi
  7311. chmod u+w . 2>&5
  7312. $RM conftest*
  7313. # SGI C++ compiler will create directory out/ii_files/ for
  7314. # template instantiation
  7315. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7316. $RM out/* && rmdir out
  7317. cd ..
  7318. $RM -r conftest
  7319. $RM conftest*
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7322. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7323. hard_links="nottested"
  7324. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7325. # do not overwrite the value of need_locks provided by the user
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7327. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7328. hard_links=yes
  7329. $RM conftest*
  7330. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7331. touch conftest.a
  7332. ln conftest.a conftest.b 2>&5 || hard_links=no
  7333. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7335. $as_echo "$hard_links" >&6; }
  7336. if test "$hard_links" = no; then
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7338. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7339. need_locks=warn
  7340. fi
  7341. else
  7342. need_locks=no
  7343. fi
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7345. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7346. runpath_var=
  7347. allow_undefined_flag=
  7348. always_export_symbols=no
  7349. archive_cmds=
  7350. archive_expsym_cmds=
  7351. compiler_needs_object=no
  7352. enable_shared_with_static_runtimes=no
  7353. export_dynamic_flag_spec=
  7354. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7355. hardcode_automatic=no
  7356. hardcode_direct=no
  7357. hardcode_direct_absolute=no
  7358. hardcode_libdir_flag_spec=
  7359. hardcode_libdir_flag_spec_ld=
  7360. hardcode_libdir_separator=
  7361. hardcode_minus_L=no
  7362. hardcode_shlibpath_var=unsupported
  7363. inherit_rpath=no
  7364. link_all_deplibs=unknown
  7365. module_cmds=
  7366. module_expsym_cmds=
  7367. old_archive_from_new_cmds=
  7368. old_archive_from_expsyms_cmds=
  7369. thread_safe_flag_spec=
  7370. whole_archive_flag_spec=
  7371. # include_expsyms should be a list of space-separated symbols to be *always*
  7372. # included in the symbol list
  7373. include_expsyms=
  7374. # exclude_expsyms can be an extended regexp of symbols to exclude
  7375. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7376. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7377. # as well as any symbol that contains `d'.
  7378. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7379. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7380. # platforms (ab)use it in PIC code, but their linkers get confused if
  7381. # the symbol is explicitly referenced. Since portable code cannot
  7382. # rely on this symbol name, it's probably fine to never include it in
  7383. # preloaded symbol tables.
  7384. # Exclude shared library initialization/finalization symbols.
  7385. extract_expsyms_cmds=
  7386. case $host_os in
  7387. cygwin* | mingw* | pw32* | cegcc*)
  7388. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7389. # When not using gcc, we currently assume that we are using
  7390. # Microsoft Visual C++.
  7391. if test "$GCC" != yes; then
  7392. with_gnu_ld=no
  7393. fi
  7394. ;;
  7395. interix*)
  7396. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7397. with_gnu_ld=yes
  7398. ;;
  7399. openbsd*)
  7400. with_gnu_ld=no
  7401. ;;
  7402. linux* | k*bsd*-gnu)
  7403. link_all_deplibs=no
  7404. ;;
  7405. esac
  7406. ld_shlibs=yes
  7407. if test "$with_gnu_ld" = yes; then
  7408. # If archive_cmds runs LD, not CC, wlarc should be empty
  7409. wlarc='${wl}'
  7410. # Set some defaults for GNU ld with shared library support. These
  7411. # are reset later if shared libraries are not supported. Putting them
  7412. # here allows them to be overridden if necessary.
  7413. runpath_var=LD_RUN_PATH
  7414. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7415. export_dynamic_flag_spec='${wl}--export-dynamic'
  7416. # ancient GNU ld didn't support --whole-archive et. al.
  7417. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7418. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7419. else
  7420. whole_archive_flag_spec=
  7421. fi
  7422. supports_anon_versioning=no
  7423. case `$LD -v 2>&1` in
  7424. *GNU\ gold*) supports_anon_versioning=yes ;;
  7425. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7426. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7427. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7428. *\ 2.11.*) ;; # other 2.11 versions
  7429. *) supports_anon_versioning=yes ;;
  7430. esac
  7431. # See if GNU ld supports shared libraries.
  7432. case $host_os in
  7433. aix[3-9]*)
  7434. # On AIX/PPC, the GNU linker is very broken
  7435. if test "$host_cpu" != ia64; then
  7436. ld_shlibs=no
  7437. cat <<_LT_EOF 1>&2
  7438. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7439. *** to be unable to reliably create shared libraries on AIX.
  7440. *** Therefore, libtool is disabling shared libraries support. If you
  7441. *** really care for shared libraries, you may want to modify your PATH
  7442. *** so that a non-GNU linker is found, and then restart.
  7443. _LT_EOF
  7444. fi
  7445. ;;
  7446. amigaos*)
  7447. case $host_cpu in
  7448. powerpc)
  7449. # see comment about AmigaOS4 .so support
  7450. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7451. archive_expsym_cmds=''
  7452. ;;
  7453. m68k)
  7454. 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)'
  7455. hardcode_libdir_flag_spec='-L$libdir'
  7456. hardcode_minus_L=yes
  7457. ;;
  7458. esac
  7459. ;;
  7460. beos*)
  7461. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7462. allow_undefined_flag=unsupported
  7463. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7464. # support --undefined. This deserves some investigation. FIXME
  7465. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7466. else
  7467. ld_shlibs=no
  7468. fi
  7469. ;;
  7470. cygwin* | mingw* | pw32* | cegcc*)
  7471. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7472. # as there is no search path for DLLs.
  7473. hardcode_libdir_flag_spec='-L$libdir'
  7474. allow_undefined_flag=unsupported
  7475. always_export_symbols=no
  7476. enable_shared_with_static_runtimes=yes
  7477. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7478. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7479. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7480. # If the export-symbols file already is a .def file (1st line
  7481. # is EXPORTS), use it as is; otherwise, prepend...
  7482. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7483. cp $export_symbols $output_objdir/$soname.def;
  7484. else
  7485. echo EXPORTS > $output_objdir/$soname.def;
  7486. cat $export_symbols >> $output_objdir/$soname.def;
  7487. fi~
  7488. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7489. else
  7490. ld_shlibs=no
  7491. fi
  7492. ;;
  7493. interix[3-9]*)
  7494. hardcode_direct=no
  7495. hardcode_shlibpath_var=no
  7496. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7497. export_dynamic_flag_spec='${wl}-E'
  7498. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7499. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7500. # default) and relocated if they conflict, which is a slow very memory
  7501. # consuming and fragmenting process. To avoid this, we pick a random,
  7502. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7503. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7504. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7505. 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'
  7506. ;;
  7507. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7508. tmp_diet=no
  7509. if test "$host_os" = linux-dietlibc; then
  7510. case $cc_basename in
  7511. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7512. esac
  7513. fi
  7514. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7515. && test "$tmp_diet" = no
  7516. then
  7517. tmp_addflag=
  7518. tmp_sharedflag='-shared'
  7519. case $cc_basename,$host_cpu in
  7520. pgcc*) # Portland Group C compiler
  7521. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7522. tmp_addflag=' $pic_flag'
  7523. ;;
  7524. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7525. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7526. tmp_addflag=' $pic_flag -Mnomain' ;;
  7527. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7528. tmp_addflag=' -i_dynamic' ;;
  7529. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7530. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7531. ifc* | ifort*) # Intel Fortran compiler
  7532. tmp_addflag=' -nofor_main' ;;
  7533. lf95*) # Lahey Fortran 8.1
  7534. whole_archive_flag_spec=
  7535. tmp_sharedflag='--shared' ;;
  7536. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7537. tmp_sharedflag='-qmkshrobj'
  7538. tmp_addflag= ;;
  7539. esac
  7540. case `$CC -V 2>&1 | sed 5q` in
  7541. *Sun\ C*) # Sun C 5.9
  7542. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7543. compiler_needs_object=yes
  7544. tmp_sharedflag='-G' ;;
  7545. *Sun\ F*) # Sun Fortran 8.3
  7546. tmp_sharedflag='-G' ;;
  7547. esac
  7548. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. if test "x$supports_anon_versioning" = xyes; then
  7550. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7551. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7552. echo "local: *; };" >> $output_objdir/$libname.ver~
  7553. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7554. fi
  7555. case $cc_basename in
  7556. xlf*)
  7557. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7558. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7559. hardcode_libdir_flag_spec=
  7560. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7561. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7562. if test "x$supports_anon_versioning" = xyes; then
  7563. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7564. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7565. echo "local: *; };" >> $output_objdir/$libname.ver~
  7566. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7567. fi
  7568. ;;
  7569. esac
  7570. else
  7571. ld_shlibs=no
  7572. fi
  7573. ;;
  7574. netbsd* | netbsdelf*-gnu)
  7575. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7576. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7577. wlarc=
  7578. else
  7579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7580. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7581. fi
  7582. ;;
  7583. solaris*)
  7584. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7585. ld_shlibs=no
  7586. cat <<_LT_EOF 1>&2
  7587. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7588. *** create shared libraries on Solaris systems. Therefore, libtool
  7589. *** is disabling shared libraries support. We urge you to upgrade GNU
  7590. *** binutils to release 2.9.1 or newer. Another option is to modify
  7591. *** your PATH or compiler configuration so that the native linker is
  7592. *** used, and then restart.
  7593. _LT_EOF
  7594. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7595. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7596. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7597. else
  7598. ld_shlibs=no
  7599. fi
  7600. ;;
  7601. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7602. case `$LD -v 2>&1` in
  7603. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7604. ld_shlibs=no
  7605. cat <<_LT_EOF 1>&2
  7606. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7607. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7608. *** is disabling shared libraries support. We urge you to upgrade GNU
  7609. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7610. *** your PATH or compiler configuration so that the native linker is
  7611. *** used, and then restart.
  7612. _LT_EOF
  7613. ;;
  7614. *)
  7615. # For security reasons, it is highly recommended that you always
  7616. # use absolute paths for naming shared libraries, and exclude the
  7617. # DT_RUNPATH tag from executables and libraries. But doing so
  7618. # requires that you compile everything twice, which is a pain.
  7619. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7621. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7622. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7623. else
  7624. ld_shlibs=no
  7625. fi
  7626. ;;
  7627. esac
  7628. ;;
  7629. sunos4*)
  7630. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7631. wlarc=
  7632. hardcode_direct=yes
  7633. hardcode_shlibpath_var=no
  7634. ;;
  7635. *)
  7636. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7637. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7638. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7639. else
  7640. ld_shlibs=no
  7641. fi
  7642. ;;
  7643. esac
  7644. if test "$ld_shlibs" = no; then
  7645. runpath_var=
  7646. hardcode_libdir_flag_spec=
  7647. export_dynamic_flag_spec=
  7648. whole_archive_flag_spec=
  7649. fi
  7650. else
  7651. # PORTME fill in a description of your system's linker (not GNU ld)
  7652. case $host_os in
  7653. aix3*)
  7654. allow_undefined_flag=unsupported
  7655. always_export_symbols=yes
  7656. 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'
  7657. # Note: this linker hardcodes the directories in LIBPATH if there
  7658. # are no directories specified by -L.
  7659. hardcode_minus_L=yes
  7660. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7661. # Neither direct hardcoding nor static linking is supported with a
  7662. # broken collect2.
  7663. hardcode_direct=unsupported
  7664. fi
  7665. ;;
  7666. aix[4-9]*)
  7667. if test "$host_cpu" = ia64; then
  7668. # On IA64, the linker does run time linking by default, so we don't
  7669. # have to do anything special.
  7670. aix_use_runtimelinking=no
  7671. exp_sym_flag='-Bexport'
  7672. no_entry_flag=""
  7673. else
  7674. # If we're using GNU nm, then we don't want the "-C" option.
  7675. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7676. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7677. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7678. else
  7679. 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'
  7680. fi
  7681. aix_use_runtimelinking=no
  7682. # Test if we are trying to use run time linking or normal
  7683. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7684. # need to do runtime linking.
  7685. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7686. for ld_flag in $LDFLAGS; do
  7687. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7688. aix_use_runtimelinking=yes
  7689. break
  7690. fi
  7691. done
  7692. ;;
  7693. esac
  7694. exp_sym_flag='-bexport'
  7695. no_entry_flag='-bnoentry'
  7696. fi
  7697. # When large executables or shared objects are built, AIX ld can
  7698. # have problems creating the table of contents. If linking a library
  7699. # or program results in "error TOC overflow" add -mminimal-toc to
  7700. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7701. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7702. archive_cmds=''
  7703. hardcode_direct=yes
  7704. hardcode_direct_absolute=yes
  7705. hardcode_libdir_separator=':'
  7706. link_all_deplibs=yes
  7707. file_list_spec='${wl}-f,'
  7708. if test "$GCC" = yes; then
  7709. case $host_os in aix4.[012]|aix4.[012].*)
  7710. # We only want to do this on AIX 4.2 and lower, the check
  7711. # below for broken collect2 doesn't work under 4.3+
  7712. collect2name=`${CC} -print-prog-name=collect2`
  7713. if test -f "$collect2name" &&
  7714. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7715. then
  7716. # We have reworked collect2
  7717. :
  7718. else
  7719. # We have old collect2
  7720. hardcode_direct=unsupported
  7721. # It fails to find uninstalled libraries when the uninstalled
  7722. # path is not listed in the libpath. Setting hardcode_minus_L
  7723. # to unsupported forces relinking
  7724. hardcode_minus_L=yes
  7725. hardcode_libdir_flag_spec='-L$libdir'
  7726. hardcode_libdir_separator=
  7727. fi
  7728. ;;
  7729. esac
  7730. shared_flag='-shared'
  7731. if test "$aix_use_runtimelinking" = yes; then
  7732. shared_flag="$shared_flag "'${wl}-G'
  7733. fi
  7734. link_all_deplibs=no
  7735. else
  7736. # not using gcc
  7737. if test "$host_cpu" = ia64; then
  7738. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7739. # chokes on -Wl,-G. The following line is correct:
  7740. shared_flag='-G'
  7741. else
  7742. if test "$aix_use_runtimelinking" = yes; then
  7743. shared_flag='${wl}-G'
  7744. else
  7745. shared_flag='${wl}-bM:SRE'
  7746. fi
  7747. fi
  7748. fi
  7749. export_dynamic_flag_spec='${wl}-bexpall'
  7750. # It seems that -bexpall does not export symbols beginning with
  7751. # underscore (_), so it is better to generate a list of symbols to export.
  7752. always_export_symbols=yes
  7753. if test "$aix_use_runtimelinking" = yes; then
  7754. # Warning - without using the other runtime loading flags (-brtl),
  7755. # -berok will link without error, but may produce a broken library.
  7756. allow_undefined_flag='-berok'
  7757. # Determine the default libpath from the value encoded in an
  7758. # empty executable.
  7759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7760. /* end confdefs.h. */
  7761. int
  7762. main ()
  7763. {
  7764. ;
  7765. return 0;
  7766. }
  7767. _ACEOF
  7768. if ac_fn_c_try_link "$LINENO"; then :
  7769. lt_aix_libpath_sed='
  7770. /Import File Strings/,/^$/ {
  7771. /^0/ {
  7772. s/^0 *\(.*\)$/\1/
  7773. p
  7774. }
  7775. }'
  7776. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7777. # Check for a 64-bit object if we didn't find anything.
  7778. if test -z "$aix_libpath"; then
  7779. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7780. fi
  7781. fi
  7782. rm -f core conftest.err conftest.$ac_objext \
  7783. conftest$ac_exeext conftest.$ac_ext
  7784. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7785. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7786. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7787. else
  7788. if test "$host_cpu" = ia64; then
  7789. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7790. allow_undefined_flag="-z nodefs"
  7791. 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"
  7792. else
  7793. # Determine the default libpath from the value encoded in an
  7794. # empty executable.
  7795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7796. /* end confdefs.h. */
  7797. int
  7798. main ()
  7799. {
  7800. ;
  7801. return 0;
  7802. }
  7803. _ACEOF
  7804. if ac_fn_c_try_link "$LINENO"; then :
  7805. lt_aix_libpath_sed='
  7806. /Import File Strings/,/^$/ {
  7807. /^0/ {
  7808. s/^0 *\(.*\)$/\1/
  7809. p
  7810. }
  7811. }'
  7812. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7813. # Check for a 64-bit object if we didn't find anything.
  7814. if test -z "$aix_libpath"; then
  7815. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7816. fi
  7817. fi
  7818. rm -f core conftest.err conftest.$ac_objext \
  7819. conftest$ac_exeext conftest.$ac_ext
  7820. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7821. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7822. # Warning - without using the other run time loading flags,
  7823. # -berok will link without error, but may produce a broken library.
  7824. no_undefined_flag=' ${wl}-bernotok'
  7825. allow_undefined_flag=' ${wl}-berok'
  7826. # Exported symbols can be pulled into shared objects from archives
  7827. whole_archive_flag_spec='$convenience'
  7828. archive_cmds_need_lc=yes
  7829. # This is similar to how AIX traditionally builds its shared libraries.
  7830. 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'
  7831. fi
  7832. fi
  7833. ;;
  7834. amigaos*)
  7835. case $host_cpu in
  7836. powerpc)
  7837. # see comment about AmigaOS4 .so support
  7838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7839. archive_expsym_cmds=''
  7840. ;;
  7841. m68k)
  7842. 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)'
  7843. hardcode_libdir_flag_spec='-L$libdir'
  7844. hardcode_minus_L=yes
  7845. ;;
  7846. esac
  7847. ;;
  7848. bsdi[45]*)
  7849. export_dynamic_flag_spec=-rdynamic
  7850. ;;
  7851. cygwin* | mingw* | pw32* | cegcc*)
  7852. # When not using gcc, we currently assume that we are using
  7853. # Microsoft Visual C++.
  7854. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7855. # no search path for DLLs.
  7856. hardcode_libdir_flag_spec=' '
  7857. allow_undefined_flag=unsupported
  7858. # Tell ltmain to make .lib files, not .a files.
  7859. libext=lib
  7860. # Tell ltmain to make .dll files, not .so files.
  7861. shrext_cmds=".dll"
  7862. # FIXME: Setting linknames here is a bad hack.
  7863. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7864. # The linker will automatically build a .lib file if we build a DLL.
  7865. old_archive_from_new_cmds='true'
  7866. # FIXME: Should let the user specify the lib program.
  7867. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7868. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7869. enable_shared_with_static_runtimes=yes
  7870. ;;
  7871. darwin* | rhapsody*)
  7872. archive_cmds_need_lc=no
  7873. hardcode_direct=no
  7874. hardcode_automatic=yes
  7875. hardcode_shlibpath_var=unsupported
  7876. whole_archive_flag_spec=''
  7877. link_all_deplibs=yes
  7878. allow_undefined_flag="$_lt_dar_allow_undefined"
  7879. case $cc_basename in
  7880. ifort*) _lt_dar_can_shared=yes ;;
  7881. *) _lt_dar_can_shared=$GCC ;;
  7882. esac
  7883. if test "$_lt_dar_can_shared" = "yes"; then
  7884. output_verbose_link_cmd=echo
  7885. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7886. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7887. 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}"
  7888. 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}"
  7889. else
  7890. ld_shlibs=no
  7891. fi
  7892. ;;
  7893. dgux*)
  7894. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7895. hardcode_libdir_flag_spec='-L$libdir'
  7896. hardcode_shlibpath_var=no
  7897. ;;
  7898. freebsd1*)
  7899. ld_shlibs=no
  7900. ;;
  7901. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7902. # support. Future versions do this automatically, but an explicit c++rt0.o
  7903. # does not break anything, and helps significantly (at the cost of a little
  7904. # extra space).
  7905. freebsd2.2*)
  7906. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7907. hardcode_libdir_flag_spec='-R$libdir'
  7908. hardcode_direct=yes
  7909. hardcode_shlibpath_var=no
  7910. ;;
  7911. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7912. freebsd2*)
  7913. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7914. hardcode_direct=yes
  7915. hardcode_minus_L=yes
  7916. hardcode_shlibpath_var=no
  7917. ;;
  7918. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7919. freebsd* | dragonfly*)
  7920. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7921. hardcode_libdir_flag_spec='-R$libdir'
  7922. hardcode_direct=yes
  7923. hardcode_shlibpath_var=no
  7924. ;;
  7925. hpux9*)
  7926. if test "$GCC" = yes; then
  7927. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7928. else
  7929. 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'
  7930. fi
  7931. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7932. hardcode_libdir_separator=:
  7933. hardcode_direct=yes
  7934. # hardcode_minus_L: Not really in the search PATH,
  7935. # but as the default location of the library.
  7936. hardcode_minus_L=yes
  7937. export_dynamic_flag_spec='${wl}-E'
  7938. ;;
  7939. hpux10*)
  7940. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7941. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7942. else
  7943. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7944. fi
  7945. if test "$with_gnu_ld" = no; then
  7946. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7947. hardcode_libdir_flag_spec_ld='+b $libdir'
  7948. hardcode_libdir_separator=:
  7949. hardcode_direct=yes
  7950. hardcode_direct_absolute=yes
  7951. export_dynamic_flag_spec='${wl}-E'
  7952. # hardcode_minus_L: Not really in the search PATH,
  7953. # but as the default location of the library.
  7954. hardcode_minus_L=yes
  7955. fi
  7956. ;;
  7957. hpux11*)
  7958. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7959. case $host_cpu in
  7960. hppa*64*)
  7961. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7962. ;;
  7963. ia64*)
  7964. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7965. ;;
  7966. *)
  7967. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7968. ;;
  7969. esac
  7970. else
  7971. case $host_cpu in
  7972. hppa*64*)
  7973. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7974. ;;
  7975. ia64*)
  7976. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7977. ;;
  7978. *)
  7979. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7980. ;;
  7981. esac
  7982. fi
  7983. if test "$with_gnu_ld" = no; then
  7984. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7985. hardcode_libdir_separator=:
  7986. case $host_cpu in
  7987. hppa*64*|ia64*)
  7988. hardcode_direct=no
  7989. hardcode_shlibpath_var=no
  7990. ;;
  7991. *)
  7992. hardcode_direct=yes
  7993. hardcode_direct_absolute=yes
  7994. export_dynamic_flag_spec='${wl}-E'
  7995. # hardcode_minus_L: Not really in the search PATH,
  7996. # but as the default location of the library.
  7997. hardcode_minus_L=yes
  7998. ;;
  7999. esac
  8000. fi
  8001. ;;
  8002. irix5* | irix6* | nonstopux*)
  8003. if test "$GCC" = yes; then
  8004. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8005. # Try to use the -exported_symbol ld option, if it does not
  8006. # work, assume that -exports_file does not work either and
  8007. # implicitly export all symbols.
  8008. save_LDFLAGS="$LDFLAGS"
  8009. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8011. /* end confdefs.h. */
  8012. int foo(void) {}
  8013. _ACEOF
  8014. if ac_fn_c_try_link "$LINENO"; then :
  8015. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8016. fi
  8017. rm -f core conftest.err conftest.$ac_objext \
  8018. conftest$ac_exeext conftest.$ac_ext
  8019. LDFLAGS="$save_LDFLAGS"
  8020. else
  8021. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8022. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8023. fi
  8024. archive_cmds_need_lc='no'
  8025. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8026. hardcode_libdir_separator=:
  8027. inherit_rpath=yes
  8028. link_all_deplibs=yes
  8029. ;;
  8030. netbsd* | netbsdelf*-gnu)
  8031. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8032. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8033. else
  8034. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8035. fi
  8036. hardcode_libdir_flag_spec='-R$libdir'
  8037. hardcode_direct=yes
  8038. hardcode_shlibpath_var=no
  8039. ;;
  8040. newsos6)
  8041. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8042. hardcode_direct=yes
  8043. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8044. hardcode_libdir_separator=:
  8045. hardcode_shlibpath_var=no
  8046. ;;
  8047. *nto* | *qnx*)
  8048. ;;
  8049. openbsd*)
  8050. if test -f /usr/libexec/ld.so; then
  8051. hardcode_direct=yes
  8052. hardcode_shlibpath_var=no
  8053. hardcode_direct_absolute=yes
  8054. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8055. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8056. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8057. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8058. export_dynamic_flag_spec='${wl}-E'
  8059. else
  8060. case $host_os in
  8061. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8062. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8063. hardcode_libdir_flag_spec='-R$libdir'
  8064. ;;
  8065. *)
  8066. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8067. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8068. ;;
  8069. esac
  8070. fi
  8071. else
  8072. ld_shlibs=no
  8073. fi
  8074. ;;
  8075. os2*)
  8076. hardcode_libdir_flag_spec='-L$libdir'
  8077. hardcode_minus_L=yes
  8078. allow_undefined_flag=unsupported
  8079. 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'
  8080. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8081. ;;
  8082. osf3*)
  8083. if test "$GCC" = yes; then
  8084. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8085. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8086. else
  8087. allow_undefined_flag=' -expect_unresolved \*'
  8088. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8089. fi
  8090. archive_cmds_need_lc='no'
  8091. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8092. hardcode_libdir_separator=:
  8093. ;;
  8094. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8095. if test "$GCC" = yes; then
  8096. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8097. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8098. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8099. else
  8100. allow_undefined_flag=' -expect_unresolved \*'
  8101. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8102. 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~
  8103. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8104. # Both c and cxx compiler support -rpath directly
  8105. hardcode_libdir_flag_spec='-rpath $libdir'
  8106. fi
  8107. archive_cmds_need_lc='no'
  8108. hardcode_libdir_separator=:
  8109. ;;
  8110. solaris*)
  8111. no_undefined_flag=' -z defs'
  8112. if test "$GCC" = yes; then
  8113. wlarc='${wl}'
  8114. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8115. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8116. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8117. else
  8118. case `$CC -V 2>&1` in
  8119. *"Compilers 5.0"*)
  8120. wlarc=''
  8121. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8122. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8123. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8124. ;;
  8125. *)
  8126. wlarc='${wl}'
  8127. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8128. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8129. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8130. ;;
  8131. esac
  8132. fi
  8133. hardcode_libdir_flag_spec='-R$libdir'
  8134. hardcode_shlibpath_var=no
  8135. case $host_os in
  8136. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8137. *)
  8138. # The compiler driver will combine and reorder linker options,
  8139. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8140. # but is careful enough not to reorder.
  8141. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8142. if test "$GCC" = yes; then
  8143. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8144. else
  8145. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8146. fi
  8147. ;;
  8148. esac
  8149. link_all_deplibs=yes
  8150. ;;
  8151. sunos4*)
  8152. if test "x$host_vendor" = xsequent; then
  8153. # Use $CC to link under sequent, because it throws in some extra .o
  8154. # files that make .init and .fini sections work.
  8155. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8156. else
  8157. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8158. fi
  8159. hardcode_libdir_flag_spec='-L$libdir'
  8160. hardcode_direct=yes
  8161. hardcode_minus_L=yes
  8162. hardcode_shlibpath_var=no
  8163. ;;
  8164. sysv4)
  8165. case $host_vendor in
  8166. sni)
  8167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. hardcode_direct=yes # is this really true???
  8169. ;;
  8170. siemens)
  8171. ## LD is ld it makes a PLAMLIB
  8172. ## CC just makes a GrossModule.
  8173. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8174. reload_cmds='$CC -r -o $output$reload_objs'
  8175. hardcode_direct=no
  8176. ;;
  8177. motorola)
  8178. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8179. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8180. ;;
  8181. esac
  8182. runpath_var='LD_RUN_PATH'
  8183. hardcode_shlibpath_var=no
  8184. ;;
  8185. sysv4.3*)
  8186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8187. hardcode_shlibpath_var=no
  8188. export_dynamic_flag_spec='-Bexport'
  8189. ;;
  8190. sysv4*MP*)
  8191. if test -d /usr/nec; then
  8192. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8193. hardcode_shlibpath_var=no
  8194. runpath_var=LD_RUN_PATH
  8195. hardcode_runpath_var=yes
  8196. ld_shlibs=yes
  8197. fi
  8198. ;;
  8199. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8200. no_undefined_flag='${wl}-z,text'
  8201. archive_cmds_need_lc=no
  8202. hardcode_shlibpath_var=no
  8203. runpath_var='LD_RUN_PATH'
  8204. if test "$GCC" = yes; then
  8205. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8206. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8207. else
  8208. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8209. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8210. fi
  8211. ;;
  8212. sysv5* | sco3.2v5* | sco5v6*)
  8213. # Note: We can NOT use -z defs as we might desire, because we do not
  8214. # link with -lc, and that would cause any symbols used from libc to
  8215. # always be unresolved, which means just about no library would
  8216. # ever link correctly. If we're not using GNU ld we use -z text
  8217. # though, which does catch some bad symbols but isn't as heavy-handed
  8218. # as -z defs.
  8219. no_undefined_flag='${wl}-z,text'
  8220. allow_undefined_flag='${wl}-z,nodefs'
  8221. archive_cmds_need_lc=no
  8222. hardcode_shlibpath_var=no
  8223. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8224. hardcode_libdir_separator=':'
  8225. link_all_deplibs=yes
  8226. export_dynamic_flag_spec='${wl}-Bexport'
  8227. runpath_var='LD_RUN_PATH'
  8228. if test "$GCC" = yes; then
  8229. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8230. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8231. else
  8232. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8233. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8234. fi
  8235. ;;
  8236. uts4*)
  8237. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8238. hardcode_libdir_flag_spec='-L$libdir'
  8239. hardcode_shlibpath_var=no
  8240. ;;
  8241. *)
  8242. ld_shlibs=no
  8243. ;;
  8244. esac
  8245. if test x$host_vendor = xsni; then
  8246. case $host in
  8247. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8248. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8249. ;;
  8250. esac
  8251. fi
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8254. $as_echo "$ld_shlibs" >&6; }
  8255. test "$ld_shlibs" = no && can_build_shared=no
  8256. with_gnu_ld=$with_gnu_ld
  8257. #
  8258. # Do we need to explicitly link libc?
  8259. #
  8260. case "x$archive_cmds_need_lc" in
  8261. x|xyes)
  8262. # Assume -lc should be added
  8263. archive_cmds_need_lc=yes
  8264. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8265. case $archive_cmds in
  8266. *'~'*)
  8267. # FIXME: we may have to deal with multi-command sequences.
  8268. ;;
  8269. '$CC '*)
  8270. # Test whether the compiler implicitly links with -lc since on some
  8271. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8272. # to ld, don't add -lc before -lgcc.
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8274. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8275. $RM conftest*
  8276. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8277. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8278. (eval $ac_compile) 2>&5
  8279. ac_status=$?
  8280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8281. test $ac_status = 0; } 2>conftest.err; then
  8282. soname=conftest
  8283. lib=conftest
  8284. libobjs=conftest.$ac_objext
  8285. deplibs=
  8286. wl=$lt_prog_compiler_wl
  8287. pic_flag=$lt_prog_compiler_pic
  8288. compiler_flags=-v
  8289. linker_flags=-v
  8290. verstring=
  8291. output_objdir=.
  8292. libname=conftest
  8293. lt_save_allow_undefined_flag=$allow_undefined_flag
  8294. allow_undefined_flag=
  8295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8296. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8297. ac_status=$?
  8298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8299. test $ac_status = 0; }
  8300. then
  8301. archive_cmds_need_lc=no
  8302. else
  8303. archive_cmds_need_lc=yes
  8304. fi
  8305. allow_undefined_flag=$lt_save_allow_undefined_flag
  8306. else
  8307. cat conftest.err 1>&5
  8308. fi
  8309. $RM conftest*
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8311. $as_echo "$archive_cmds_need_lc" >&6; }
  8312. ;;
  8313. esac
  8314. fi
  8315. ;;
  8316. esac
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8318. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8319. if test "$GCC" = yes; then
  8320. case $host_os in
  8321. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8322. *) lt_awk_arg="/^libraries:/" ;;
  8323. esac
  8324. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8325. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8326. # if the path contains ";" then we assume it to be the separator
  8327. # otherwise default to the standard path separator (i.e. ":") - it is
  8328. # assumed that no part of a normal pathname contains ";" but that should
  8329. # okay in the real world where ";" in dirpaths is itself problematic.
  8330. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8331. else
  8332. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8333. fi
  8334. # Ok, now we have the path, separated by spaces, we can step through it
  8335. # and add multilib dir if necessary.
  8336. lt_tmp_lt_search_path_spec=
  8337. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8338. for lt_sys_path in $lt_search_path_spec; do
  8339. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8340. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8341. else
  8342. test -d "$lt_sys_path" && \
  8343. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8344. fi
  8345. done
  8346. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8347. BEGIN {RS=" "; FS="/|\n";} {
  8348. lt_foo="";
  8349. lt_count=0;
  8350. for (lt_i = NF; lt_i > 0; lt_i--) {
  8351. if ($lt_i != "" && $lt_i != ".") {
  8352. if ($lt_i == "..") {
  8353. lt_count++;
  8354. } else {
  8355. if (lt_count == 0) {
  8356. lt_foo="/" $lt_i lt_foo;
  8357. } else {
  8358. lt_count--;
  8359. }
  8360. }
  8361. }
  8362. }
  8363. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8364. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8365. }'`
  8366. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8367. else
  8368. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8369. fi
  8370. library_names_spec=
  8371. libname_spec='lib$name'
  8372. soname_spec=
  8373. shrext_cmds=".so"
  8374. postinstall_cmds=
  8375. postuninstall_cmds=
  8376. finish_cmds=
  8377. finish_eval=
  8378. shlibpath_var=
  8379. shlibpath_overrides_runpath=unknown
  8380. version_type=none
  8381. dynamic_linker="$host_os ld.so"
  8382. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8383. need_lib_prefix=unknown
  8384. hardcode_into_libs=no
  8385. # when you set need_version to no, make sure it does not cause -set_version
  8386. # flags to be left without arguments
  8387. need_version=unknown
  8388. case $host_os in
  8389. aix3*)
  8390. version_type=linux
  8391. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8392. shlibpath_var=LIBPATH
  8393. # AIX 3 has no versioning support, so we append a major version to the name.
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. ;;
  8396. aix[4-9]*)
  8397. version_type=linux
  8398. need_lib_prefix=no
  8399. need_version=no
  8400. hardcode_into_libs=yes
  8401. if test "$host_cpu" = ia64; then
  8402. # AIX 5 supports IA64
  8403. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8404. shlibpath_var=LD_LIBRARY_PATH
  8405. else
  8406. # With GCC up to 2.95.x, collect2 would create an import file
  8407. # for dependence libraries. The import file would start with
  8408. # the line `#! .'. This would cause the generated library to
  8409. # depend on `.', always an invalid library. This was fixed in
  8410. # development snapshots of GCC prior to 3.0.
  8411. case $host_os in
  8412. aix4 | aix4.[01] | aix4.[01].*)
  8413. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8414. echo ' yes '
  8415. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8416. :
  8417. else
  8418. can_build_shared=no
  8419. fi
  8420. ;;
  8421. esac
  8422. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8423. # soname into executable. Probably we can add versioning support to
  8424. # collect2, so additional links can be useful in future.
  8425. if test "$aix_use_runtimelinking" = yes; then
  8426. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8427. # instead of lib<name>.a to let people know that these are not
  8428. # typical AIX shared libraries.
  8429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8430. else
  8431. # We preserve .a as extension for shared libraries through AIX4.2
  8432. # and later when we are not doing run time linking.
  8433. library_names_spec='${libname}${release}.a $libname.a'
  8434. soname_spec='${libname}${release}${shared_ext}$major'
  8435. fi
  8436. shlibpath_var=LIBPATH
  8437. fi
  8438. ;;
  8439. amigaos*)
  8440. case $host_cpu in
  8441. powerpc)
  8442. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8443. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8445. ;;
  8446. m68k)
  8447. library_names_spec='$libname.ixlibrary $libname.a'
  8448. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8449. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8450. ;;
  8451. esac
  8452. ;;
  8453. beos*)
  8454. library_names_spec='${libname}${shared_ext}'
  8455. dynamic_linker="$host_os ld.so"
  8456. shlibpath_var=LIBRARY_PATH
  8457. ;;
  8458. bsdi[45]*)
  8459. version_type=linux
  8460. need_version=no
  8461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8462. soname_spec='${libname}${release}${shared_ext}$major'
  8463. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8464. shlibpath_var=LD_LIBRARY_PATH
  8465. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8466. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8467. # the default ld.so.conf also contains /usr/contrib/lib and
  8468. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8469. # libtool to hard-code these into programs
  8470. ;;
  8471. cygwin* | mingw* | pw32* | cegcc*)
  8472. version_type=windows
  8473. shrext_cmds=".dll"
  8474. need_version=no
  8475. need_lib_prefix=no
  8476. case $GCC,$host_os in
  8477. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8478. library_names_spec='$libname.dll.a'
  8479. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8480. postinstall_cmds='base_file=`basename \${file}`~
  8481. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8482. dldir=$destdir/`dirname \$dlpath`~
  8483. test -d \$dldir || mkdir -p \$dldir~
  8484. $install_prog $dir/$dlname \$dldir/$dlname~
  8485. chmod a+x \$dldir/$dlname~
  8486. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8487. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8488. fi'
  8489. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8490. dlpath=$dir/\$dldll~
  8491. $RM \$dlpath'
  8492. shlibpath_overrides_runpath=yes
  8493. case $host_os in
  8494. cygwin*)
  8495. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8496. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8497. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8498. ;;
  8499. mingw* | cegcc*)
  8500. # MinGW DLLs use traditional 'lib' prefix
  8501. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8502. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8503. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8504. # It is most probably a Windows format PATH printed by
  8505. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8506. # path with ; separators, and with drive letters. We can handle the
  8507. # drive letters (cygwin fileutils understands them), so leave them,
  8508. # especially as we might pass files found there to a mingw objdump,
  8509. # which wouldn't understand a cygwinified path. Ahh.
  8510. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8511. else
  8512. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8513. fi
  8514. ;;
  8515. pw32*)
  8516. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8517. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8518. ;;
  8519. esac
  8520. ;;
  8521. *)
  8522. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8523. ;;
  8524. esac
  8525. dynamic_linker='Win32 ld.exe'
  8526. # FIXME: first we should search . and the directory the executable is in
  8527. shlibpath_var=PATH
  8528. ;;
  8529. darwin* | rhapsody*)
  8530. dynamic_linker="$host_os dyld"
  8531. version_type=darwin
  8532. need_lib_prefix=no
  8533. need_version=no
  8534. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8535. soname_spec='${libname}${release}${major}$shared_ext'
  8536. shlibpath_overrides_runpath=yes
  8537. shlibpath_var=DYLD_LIBRARY_PATH
  8538. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8539. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8540. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8541. ;;
  8542. dgux*)
  8543. version_type=linux
  8544. need_lib_prefix=no
  8545. need_version=no
  8546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8547. soname_spec='${libname}${release}${shared_ext}$major'
  8548. shlibpath_var=LD_LIBRARY_PATH
  8549. ;;
  8550. freebsd1*)
  8551. dynamic_linker=no
  8552. ;;
  8553. freebsd* | dragonfly*)
  8554. # DragonFly does not have aout. When/if they implement a new
  8555. # versioning mechanism, adjust this.
  8556. if test -x /usr/bin/objformat; then
  8557. objformat=`/usr/bin/objformat`
  8558. else
  8559. case $host_os in
  8560. freebsd[123]*) objformat=aout ;;
  8561. *) objformat=elf ;;
  8562. esac
  8563. fi
  8564. version_type=freebsd-$objformat
  8565. case $version_type in
  8566. freebsd-elf*)
  8567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8568. need_version=no
  8569. need_lib_prefix=no
  8570. ;;
  8571. freebsd-*)
  8572. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8573. need_version=yes
  8574. ;;
  8575. esac
  8576. shlibpath_var=LD_LIBRARY_PATH
  8577. case $host_os in
  8578. freebsd2*)
  8579. shlibpath_overrides_runpath=yes
  8580. ;;
  8581. freebsd3.[01]* | freebsdelf3.[01]*)
  8582. shlibpath_overrides_runpath=yes
  8583. hardcode_into_libs=yes
  8584. ;;
  8585. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8586. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8587. shlibpath_overrides_runpath=no
  8588. hardcode_into_libs=yes
  8589. ;;
  8590. *) # from 4.6 on, and DragonFly
  8591. shlibpath_overrides_runpath=yes
  8592. hardcode_into_libs=yes
  8593. ;;
  8594. esac
  8595. ;;
  8596. gnu*)
  8597. version_type=linux
  8598. need_lib_prefix=no
  8599. need_version=no
  8600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8601. soname_spec='${libname}${release}${shared_ext}$major'
  8602. shlibpath_var=LD_LIBRARY_PATH
  8603. hardcode_into_libs=yes
  8604. ;;
  8605. hpux9* | hpux10* | hpux11*)
  8606. # Give a soname corresponding to the major version so that dld.sl refuses to
  8607. # link against other versions.
  8608. version_type=sunos
  8609. need_lib_prefix=no
  8610. need_version=no
  8611. case $host_cpu in
  8612. ia64*)
  8613. shrext_cmds='.so'
  8614. hardcode_into_libs=yes
  8615. dynamic_linker="$host_os dld.so"
  8616. shlibpath_var=LD_LIBRARY_PATH
  8617. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. if test "X$HPUX_IA64_MODE" = X32; then
  8621. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8622. else
  8623. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8624. fi
  8625. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8626. ;;
  8627. hppa*64*)
  8628. shrext_cmds='.sl'
  8629. hardcode_into_libs=yes
  8630. dynamic_linker="$host_os dld.sl"
  8631. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8632. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8636. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8637. ;;
  8638. *)
  8639. shrext_cmds='.sl'
  8640. dynamic_linker="$host_os dld.sl"
  8641. shlibpath_var=SHLIB_PATH
  8642. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8643. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8644. soname_spec='${libname}${release}${shared_ext}$major'
  8645. ;;
  8646. esac
  8647. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8648. postinstall_cmds='chmod 555 $lib'
  8649. ;;
  8650. interix[3-9]*)
  8651. version_type=linux
  8652. need_lib_prefix=no
  8653. need_version=no
  8654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8655. soname_spec='${libname}${release}${shared_ext}$major'
  8656. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8657. shlibpath_var=LD_LIBRARY_PATH
  8658. shlibpath_overrides_runpath=no
  8659. hardcode_into_libs=yes
  8660. ;;
  8661. irix5* | irix6* | nonstopux*)
  8662. case $host_os in
  8663. nonstopux*) version_type=nonstopux ;;
  8664. *)
  8665. if test "$lt_cv_prog_gnu_ld" = yes; then
  8666. version_type=linux
  8667. else
  8668. version_type=irix
  8669. fi ;;
  8670. esac
  8671. need_lib_prefix=no
  8672. need_version=no
  8673. soname_spec='${libname}${release}${shared_ext}$major'
  8674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8675. case $host_os in
  8676. irix5* | nonstopux*)
  8677. libsuff= shlibsuff=
  8678. ;;
  8679. *)
  8680. case $LD in # libtool.m4 will add one of these switches to LD
  8681. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8682. libsuff= shlibsuff= libmagic=32-bit;;
  8683. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8684. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8685. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8686. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8687. *) libsuff= shlibsuff= libmagic=never-match;;
  8688. esac
  8689. ;;
  8690. esac
  8691. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8692. shlibpath_overrides_runpath=no
  8693. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8694. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8695. hardcode_into_libs=yes
  8696. ;;
  8697. # No shared lib support for Linux oldld, aout, or coff.
  8698. linux*oldld* | linux*aout* | linux*coff*)
  8699. dynamic_linker=no
  8700. ;;
  8701. # This must be Linux ELF.
  8702. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8703. version_type=linux
  8704. need_lib_prefix=no
  8705. need_version=no
  8706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8707. soname_spec='${libname}${release}${shared_ext}$major'
  8708. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8709. shlibpath_var=LD_LIBRARY_PATH
  8710. shlibpath_overrides_runpath=no
  8711. # Some binutils ld are patched to set DT_RUNPATH
  8712. save_LDFLAGS=$LDFLAGS
  8713. save_libdir=$libdir
  8714. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8715. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8717. /* end confdefs.h. */
  8718. int
  8719. main ()
  8720. {
  8721. ;
  8722. return 0;
  8723. }
  8724. _ACEOF
  8725. if ac_fn_c_try_link "$LINENO"; then :
  8726. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8727. shlibpath_overrides_runpath=yes
  8728. fi
  8729. fi
  8730. rm -f core conftest.err conftest.$ac_objext \
  8731. conftest$ac_exeext conftest.$ac_ext
  8732. LDFLAGS=$save_LDFLAGS
  8733. libdir=$save_libdir
  8734. # This implies no fast_install, which is unacceptable.
  8735. # Some rework will be needed to allow for fast_install
  8736. # before this can be enabled.
  8737. hardcode_into_libs=yes
  8738. # Append ld.so.conf contents to the search path
  8739. if test -f /etc/ld.so.conf; then
  8740. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8741. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8742. fi
  8743. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8744. # powerpc, because MkLinux only supported shared libraries with the
  8745. # GNU dynamic linker. Since this was broken with cross compilers,
  8746. # most powerpc-linux boxes support dynamic linking these days and
  8747. # people can always --disable-shared, the test was removed, and we
  8748. # assume the GNU/Linux dynamic linker is in use.
  8749. dynamic_linker='GNU/Linux ld.so'
  8750. ;;
  8751. netbsdelf*-gnu)
  8752. version_type=linux
  8753. need_lib_prefix=no
  8754. need_version=no
  8755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. shlibpath_var=LD_LIBRARY_PATH
  8758. shlibpath_overrides_runpath=no
  8759. hardcode_into_libs=yes
  8760. dynamic_linker='NetBSD ld.elf_so'
  8761. ;;
  8762. netbsd*)
  8763. version_type=sunos
  8764. need_lib_prefix=no
  8765. need_version=no
  8766. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8768. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8769. dynamic_linker='NetBSD (a.out) ld.so'
  8770. else
  8771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8772. soname_spec='${libname}${release}${shared_ext}$major'
  8773. dynamic_linker='NetBSD ld.elf_so'
  8774. fi
  8775. shlibpath_var=LD_LIBRARY_PATH
  8776. shlibpath_overrides_runpath=yes
  8777. hardcode_into_libs=yes
  8778. ;;
  8779. newsos6)
  8780. version_type=linux
  8781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8782. shlibpath_var=LD_LIBRARY_PATH
  8783. shlibpath_overrides_runpath=yes
  8784. ;;
  8785. *nto* | *qnx*)
  8786. version_type=qnx
  8787. need_lib_prefix=no
  8788. need_version=no
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. shlibpath_overrides_runpath=no
  8793. hardcode_into_libs=yes
  8794. dynamic_linker='ldqnx.so'
  8795. ;;
  8796. openbsd*)
  8797. version_type=sunos
  8798. sys_lib_dlsearch_path_spec="/usr/lib"
  8799. need_lib_prefix=no
  8800. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8801. case $host_os in
  8802. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8803. *) need_version=no ;;
  8804. esac
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8806. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8809. case $host_os in
  8810. openbsd2.[89] | openbsd2.[89].*)
  8811. shlibpath_overrides_runpath=no
  8812. ;;
  8813. *)
  8814. shlibpath_overrides_runpath=yes
  8815. ;;
  8816. esac
  8817. else
  8818. shlibpath_overrides_runpath=yes
  8819. fi
  8820. ;;
  8821. os2*)
  8822. libname_spec='$name'
  8823. shrext_cmds=".dll"
  8824. need_lib_prefix=no
  8825. library_names_spec='$libname${shared_ext} $libname.a'
  8826. dynamic_linker='OS/2 ld.exe'
  8827. shlibpath_var=LIBPATH
  8828. ;;
  8829. osf3* | osf4* | osf5*)
  8830. version_type=osf
  8831. need_lib_prefix=no
  8832. need_version=no
  8833. soname_spec='${libname}${release}${shared_ext}$major'
  8834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8835. shlibpath_var=LD_LIBRARY_PATH
  8836. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8837. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8838. ;;
  8839. rdos*)
  8840. dynamic_linker=no
  8841. ;;
  8842. solaris*)
  8843. version_type=linux
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. shlibpath_overrides_runpath=yes
  8850. hardcode_into_libs=yes
  8851. # ldd complains unless libraries are executable
  8852. postinstall_cmds='chmod +x $lib'
  8853. ;;
  8854. sunos4*)
  8855. version_type=sunos
  8856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8857. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8858. shlibpath_var=LD_LIBRARY_PATH
  8859. shlibpath_overrides_runpath=yes
  8860. if test "$with_gnu_ld" = yes; then
  8861. need_lib_prefix=no
  8862. fi
  8863. need_version=yes
  8864. ;;
  8865. sysv4 | sysv4.3*)
  8866. version_type=linux
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8868. soname_spec='${libname}${release}${shared_ext}$major'
  8869. shlibpath_var=LD_LIBRARY_PATH
  8870. case $host_vendor in
  8871. sni)
  8872. shlibpath_overrides_runpath=no
  8873. need_lib_prefix=no
  8874. runpath_var=LD_RUN_PATH
  8875. ;;
  8876. siemens)
  8877. need_lib_prefix=no
  8878. ;;
  8879. motorola)
  8880. need_lib_prefix=no
  8881. need_version=no
  8882. shlibpath_overrides_runpath=no
  8883. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8884. ;;
  8885. esac
  8886. ;;
  8887. sysv4*MP*)
  8888. if test -d /usr/nec ;then
  8889. version_type=linux
  8890. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8891. soname_spec='$libname${shared_ext}.$major'
  8892. shlibpath_var=LD_LIBRARY_PATH
  8893. fi
  8894. ;;
  8895. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8896. version_type=freebsd-elf
  8897. need_lib_prefix=no
  8898. need_version=no
  8899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8900. soname_spec='${libname}${release}${shared_ext}$major'
  8901. shlibpath_var=LD_LIBRARY_PATH
  8902. shlibpath_overrides_runpath=yes
  8903. hardcode_into_libs=yes
  8904. if test "$with_gnu_ld" = yes; then
  8905. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8906. else
  8907. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8908. case $host_os in
  8909. sco3.2v5*)
  8910. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8911. ;;
  8912. esac
  8913. fi
  8914. sys_lib_dlsearch_path_spec='/usr/lib'
  8915. ;;
  8916. tpf*)
  8917. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8918. version_type=linux
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=no
  8924. hardcode_into_libs=yes
  8925. ;;
  8926. uts4*)
  8927. version_type=linux
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. shlibpath_var=LD_LIBRARY_PATH
  8931. ;;
  8932. *)
  8933. dynamic_linker=no
  8934. ;;
  8935. esac
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8937. $as_echo "$dynamic_linker" >&6; }
  8938. test "$dynamic_linker" = no && can_build_shared=no
  8939. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8940. if test "$GCC" = yes; then
  8941. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8942. fi
  8943. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8944. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8945. fi
  8946. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8947. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8948. fi
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8950. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8951. hardcode_action=
  8952. if test -n "$hardcode_libdir_flag_spec" ||
  8953. test -n "$runpath_var" ||
  8954. test "X$hardcode_automatic" = "Xyes" ; then
  8955. # We can hardcode non-existent directories.
  8956. if test "$hardcode_direct" != no &&
  8957. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8958. # have to relink, otherwise we might link with an installed library
  8959. # when we should be linking with a yet-to-be-installed one
  8960. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8961. test "$hardcode_minus_L" != no; then
  8962. # Linking always hardcodes the temporary library directory.
  8963. hardcode_action=relink
  8964. else
  8965. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8966. hardcode_action=immediate
  8967. fi
  8968. else
  8969. # We cannot hardcode anything, or else we can only hardcode existing
  8970. # directories.
  8971. hardcode_action=unsupported
  8972. fi
  8973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8974. $as_echo "$hardcode_action" >&6; }
  8975. if test "$hardcode_action" = relink ||
  8976. test "$inherit_rpath" = yes; then
  8977. # Fast installation is not supported
  8978. enable_fast_install=no
  8979. elif test "$shlibpath_overrides_runpath" = yes ||
  8980. test "$enable_shared" = no; then
  8981. # Fast installation is not necessary
  8982. enable_fast_install=needless
  8983. fi
  8984. if test "x$enable_dlopen" != xyes; then
  8985. enable_dlopen=unknown
  8986. enable_dlopen_self=unknown
  8987. enable_dlopen_self_static=unknown
  8988. else
  8989. lt_cv_dlopen=no
  8990. lt_cv_dlopen_libs=
  8991. case $host_os in
  8992. beos*)
  8993. lt_cv_dlopen="load_add_on"
  8994. lt_cv_dlopen_libs=
  8995. lt_cv_dlopen_self=yes
  8996. ;;
  8997. mingw* | pw32* | cegcc*)
  8998. lt_cv_dlopen="LoadLibrary"
  8999. lt_cv_dlopen_libs=
  9000. ;;
  9001. cygwin*)
  9002. lt_cv_dlopen="dlopen"
  9003. lt_cv_dlopen_libs=
  9004. ;;
  9005. darwin*)
  9006. # if libdl is installed we need to link against it
  9007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9008. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9009. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. ac_check_lib_save_LIBS=$LIBS
  9013. LIBS="-ldl $LIBS"
  9014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9015. /* end confdefs.h. */
  9016. /* Override any GCC internal prototype to avoid an error.
  9017. Use char because int might match the return type of a GCC
  9018. builtin and then its argument prototype would still apply. */
  9019. #ifdef __cplusplus
  9020. extern "C"
  9021. #endif
  9022. char dlopen ();
  9023. int
  9024. main ()
  9025. {
  9026. return dlopen ();
  9027. ;
  9028. return 0;
  9029. }
  9030. _ACEOF
  9031. if ac_fn_c_try_link "$LINENO"; then :
  9032. ac_cv_lib_dl_dlopen=yes
  9033. else
  9034. ac_cv_lib_dl_dlopen=no
  9035. fi
  9036. rm -f core conftest.err conftest.$ac_objext \
  9037. conftest$ac_exeext conftest.$ac_ext
  9038. LIBS=$ac_check_lib_save_LIBS
  9039. fi
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9041. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9042. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9043. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9044. else
  9045. lt_cv_dlopen="dyld"
  9046. lt_cv_dlopen_libs=
  9047. lt_cv_dlopen_self=yes
  9048. fi
  9049. ;;
  9050. *)
  9051. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9052. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9053. lt_cv_dlopen="shl_load"
  9054. else
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9056. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9057. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9058. $as_echo_n "(cached) " >&6
  9059. else
  9060. ac_check_lib_save_LIBS=$LIBS
  9061. LIBS="-ldld $LIBS"
  9062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9063. /* end confdefs.h. */
  9064. /* Override any GCC internal prototype to avoid an error.
  9065. Use char because int might match the return type of a GCC
  9066. builtin and then its argument prototype would still apply. */
  9067. #ifdef __cplusplus
  9068. extern "C"
  9069. #endif
  9070. char shl_load ();
  9071. int
  9072. main ()
  9073. {
  9074. return shl_load ();
  9075. ;
  9076. return 0;
  9077. }
  9078. _ACEOF
  9079. if ac_fn_c_try_link "$LINENO"; then :
  9080. ac_cv_lib_dld_shl_load=yes
  9081. else
  9082. ac_cv_lib_dld_shl_load=no
  9083. fi
  9084. rm -f core conftest.err conftest.$ac_objext \
  9085. conftest$ac_exeext conftest.$ac_ext
  9086. LIBS=$ac_check_lib_save_LIBS
  9087. fi
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9089. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9090. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9091. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9092. else
  9093. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9094. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9095. lt_cv_dlopen="dlopen"
  9096. else
  9097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9098. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9099. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9100. $as_echo_n "(cached) " >&6
  9101. else
  9102. ac_check_lib_save_LIBS=$LIBS
  9103. LIBS="-ldl $LIBS"
  9104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9105. /* end confdefs.h. */
  9106. /* Override any GCC internal prototype to avoid an error.
  9107. Use char because int might match the return type of a GCC
  9108. builtin and then its argument prototype would still apply. */
  9109. #ifdef __cplusplus
  9110. extern "C"
  9111. #endif
  9112. char dlopen ();
  9113. int
  9114. main ()
  9115. {
  9116. return dlopen ();
  9117. ;
  9118. return 0;
  9119. }
  9120. _ACEOF
  9121. if ac_fn_c_try_link "$LINENO"; then :
  9122. ac_cv_lib_dl_dlopen=yes
  9123. else
  9124. ac_cv_lib_dl_dlopen=no
  9125. fi
  9126. rm -f core conftest.err conftest.$ac_objext \
  9127. conftest$ac_exeext conftest.$ac_ext
  9128. LIBS=$ac_check_lib_save_LIBS
  9129. fi
  9130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9131. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9132. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9133. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9134. else
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9136. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9137. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9138. $as_echo_n "(cached) " >&6
  9139. else
  9140. ac_check_lib_save_LIBS=$LIBS
  9141. LIBS="-lsvld $LIBS"
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. /* Override any GCC internal prototype to avoid an error.
  9145. Use char because int might match the return type of a GCC
  9146. builtin and then its argument prototype would still apply. */
  9147. #ifdef __cplusplus
  9148. extern "C"
  9149. #endif
  9150. char dlopen ();
  9151. int
  9152. main ()
  9153. {
  9154. return dlopen ();
  9155. ;
  9156. return 0;
  9157. }
  9158. _ACEOF
  9159. if ac_fn_c_try_link "$LINENO"; then :
  9160. ac_cv_lib_svld_dlopen=yes
  9161. else
  9162. ac_cv_lib_svld_dlopen=no
  9163. fi
  9164. rm -f core conftest.err conftest.$ac_objext \
  9165. conftest$ac_exeext conftest.$ac_ext
  9166. LIBS=$ac_check_lib_save_LIBS
  9167. fi
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9169. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9170. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9171. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9172. else
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9174. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9175. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. ac_check_lib_save_LIBS=$LIBS
  9179. LIBS="-ldld $LIBS"
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. /* Override any GCC internal prototype to avoid an error.
  9183. Use char because int might match the return type of a GCC
  9184. builtin and then its argument prototype would still apply. */
  9185. #ifdef __cplusplus
  9186. extern "C"
  9187. #endif
  9188. char dld_link ();
  9189. int
  9190. main ()
  9191. {
  9192. return dld_link ();
  9193. ;
  9194. return 0;
  9195. }
  9196. _ACEOF
  9197. if ac_fn_c_try_link "$LINENO"; then :
  9198. ac_cv_lib_dld_dld_link=yes
  9199. else
  9200. ac_cv_lib_dld_dld_link=no
  9201. fi
  9202. rm -f core conftest.err conftest.$ac_objext \
  9203. conftest$ac_exeext conftest.$ac_ext
  9204. LIBS=$ac_check_lib_save_LIBS
  9205. fi
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9207. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9208. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9209. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9210. fi
  9211. fi
  9212. fi
  9213. fi
  9214. fi
  9215. fi
  9216. ;;
  9217. esac
  9218. if test "x$lt_cv_dlopen" != xno; then
  9219. enable_dlopen=yes
  9220. else
  9221. enable_dlopen=no
  9222. fi
  9223. case $lt_cv_dlopen in
  9224. dlopen)
  9225. save_CPPFLAGS="$CPPFLAGS"
  9226. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9227. save_LDFLAGS="$LDFLAGS"
  9228. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9229. save_LIBS="$LIBS"
  9230. LIBS="$lt_cv_dlopen_libs $LIBS"
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9232. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9233. if test "${lt_cv_dlopen_self+set}" = set; then :
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. if test "$cross_compiling" = yes; then :
  9237. lt_cv_dlopen_self=cross
  9238. else
  9239. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9240. lt_status=$lt_dlunknown
  9241. cat > conftest.$ac_ext <<_LT_EOF
  9242. #line 10726 "configure"
  9243. #include "confdefs.h"
  9244. #if HAVE_DLFCN_H
  9245. #include <dlfcn.h>
  9246. #endif
  9247. #include <stdio.h>
  9248. #ifdef RTLD_GLOBAL
  9249. # define LT_DLGLOBAL RTLD_GLOBAL
  9250. #else
  9251. # ifdef DL_GLOBAL
  9252. # define LT_DLGLOBAL DL_GLOBAL
  9253. # else
  9254. # define LT_DLGLOBAL 0
  9255. # endif
  9256. #endif
  9257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9258. find out it does not work in some platform. */
  9259. #ifndef LT_DLLAZY_OR_NOW
  9260. # ifdef RTLD_LAZY
  9261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9262. # else
  9263. # ifdef DL_LAZY
  9264. # define LT_DLLAZY_OR_NOW DL_LAZY
  9265. # else
  9266. # ifdef RTLD_NOW
  9267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9268. # else
  9269. # ifdef DL_NOW
  9270. # define LT_DLLAZY_OR_NOW DL_NOW
  9271. # else
  9272. # define LT_DLLAZY_OR_NOW 0
  9273. # endif
  9274. # endif
  9275. # endif
  9276. # endif
  9277. #endif
  9278. void fnord() { int i=42;}
  9279. int main ()
  9280. {
  9281. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9282. int status = $lt_dlunknown;
  9283. if (self)
  9284. {
  9285. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9286. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9287. /* dlclose (self); */
  9288. }
  9289. else
  9290. puts (dlerror ());
  9291. return status;
  9292. }
  9293. _LT_EOF
  9294. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9295. (eval $ac_link) 2>&5
  9296. ac_status=$?
  9297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9298. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9299. (./conftest; exit; ) >&5 2>/dev/null
  9300. lt_status=$?
  9301. case x$lt_status in
  9302. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9303. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9304. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9305. esac
  9306. else :
  9307. # compilation failed
  9308. lt_cv_dlopen_self=no
  9309. fi
  9310. fi
  9311. rm -fr conftest*
  9312. fi
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9314. $as_echo "$lt_cv_dlopen_self" >&6; }
  9315. if test "x$lt_cv_dlopen_self" = xyes; then
  9316. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9318. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9319. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9320. $as_echo_n "(cached) " >&6
  9321. else
  9322. if test "$cross_compiling" = yes; then :
  9323. lt_cv_dlopen_self_static=cross
  9324. else
  9325. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9326. lt_status=$lt_dlunknown
  9327. cat > conftest.$ac_ext <<_LT_EOF
  9328. #line 10822 "configure"
  9329. #include "confdefs.h"
  9330. #if HAVE_DLFCN_H
  9331. #include <dlfcn.h>
  9332. #endif
  9333. #include <stdio.h>
  9334. #ifdef RTLD_GLOBAL
  9335. # define LT_DLGLOBAL RTLD_GLOBAL
  9336. #else
  9337. # ifdef DL_GLOBAL
  9338. # define LT_DLGLOBAL DL_GLOBAL
  9339. # else
  9340. # define LT_DLGLOBAL 0
  9341. # endif
  9342. #endif
  9343. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9344. find out it does not work in some platform. */
  9345. #ifndef LT_DLLAZY_OR_NOW
  9346. # ifdef RTLD_LAZY
  9347. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9348. # else
  9349. # ifdef DL_LAZY
  9350. # define LT_DLLAZY_OR_NOW DL_LAZY
  9351. # else
  9352. # ifdef RTLD_NOW
  9353. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9354. # else
  9355. # ifdef DL_NOW
  9356. # define LT_DLLAZY_OR_NOW DL_NOW
  9357. # else
  9358. # define LT_DLLAZY_OR_NOW 0
  9359. # endif
  9360. # endif
  9361. # endif
  9362. # endif
  9363. #endif
  9364. void fnord() { int i=42;}
  9365. int main ()
  9366. {
  9367. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9368. int status = $lt_dlunknown;
  9369. if (self)
  9370. {
  9371. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9372. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9373. /* dlclose (self); */
  9374. }
  9375. else
  9376. puts (dlerror ());
  9377. return status;
  9378. }
  9379. _LT_EOF
  9380. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9381. (eval $ac_link) 2>&5
  9382. ac_status=$?
  9383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9384. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9385. (./conftest; exit; ) >&5 2>/dev/null
  9386. lt_status=$?
  9387. case x$lt_status in
  9388. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9389. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9390. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9391. esac
  9392. else :
  9393. # compilation failed
  9394. lt_cv_dlopen_self_static=no
  9395. fi
  9396. fi
  9397. rm -fr conftest*
  9398. fi
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9400. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9401. fi
  9402. CPPFLAGS="$save_CPPFLAGS"
  9403. LDFLAGS="$save_LDFLAGS"
  9404. LIBS="$save_LIBS"
  9405. ;;
  9406. esac
  9407. case $lt_cv_dlopen_self in
  9408. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9409. *) enable_dlopen_self=unknown ;;
  9410. esac
  9411. case $lt_cv_dlopen_self_static in
  9412. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9413. *) enable_dlopen_self_static=unknown ;;
  9414. esac
  9415. fi
  9416. striplib=
  9417. old_striplib=
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9419. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9420. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9421. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9422. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9424. $as_echo "yes" >&6; }
  9425. else
  9426. # FIXME - insert some real tests, host_os isn't really good enough
  9427. case $host_os in
  9428. darwin*)
  9429. if test -n "$STRIP" ; then
  9430. striplib="$STRIP -x"
  9431. old_striplib="$STRIP -S"
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9433. $as_echo "yes" >&6; }
  9434. else
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9436. $as_echo "no" >&6; }
  9437. fi
  9438. ;;
  9439. *)
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9441. $as_echo "no" >&6; }
  9442. ;;
  9443. esac
  9444. fi
  9445. # Report which library types will actually be built
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9447. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9449. $as_echo "$can_build_shared" >&6; }
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9451. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9452. test "$can_build_shared" = "no" && enable_shared=no
  9453. # On AIX, shared libraries and static libraries use the same namespace, and
  9454. # are all built from PIC.
  9455. case $host_os in
  9456. aix3*)
  9457. test "$enable_shared" = yes && enable_static=no
  9458. if test -n "$RANLIB"; then
  9459. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9460. postinstall_cmds='$RANLIB $lib'
  9461. fi
  9462. ;;
  9463. aix[4-9]*)
  9464. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9465. test "$enable_shared" = yes && enable_static=no
  9466. fi
  9467. ;;
  9468. esac
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9470. $as_echo "$enable_shared" >&6; }
  9471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9472. $as_echo_n "checking whether to build static libraries... " >&6; }
  9473. # Make sure either enable_shared or enable_static is yes.
  9474. test "$enable_shared" = yes || enable_static=yes
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9476. $as_echo "$enable_static" >&6; }
  9477. fi
  9478. ac_ext=c
  9479. ac_cpp='$CPP $CPPFLAGS'
  9480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9483. CC="$lt_save_CC"
  9484. ac_ext=cpp
  9485. ac_cpp='$CXXCPP $CPPFLAGS'
  9486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9489. archive_cmds_need_lc_CXX=no
  9490. allow_undefined_flag_CXX=
  9491. always_export_symbols_CXX=no
  9492. archive_expsym_cmds_CXX=
  9493. compiler_needs_object_CXX=no
  9494. export_dynamic_flag_spec_CXX=
  9495. hardcode_direct_CXX=no
  9496. hardcode_direct_absolute_CXX=no
  9497. hardcode_libdir_flag_spec_CXX=
  9498. hardcode_libdir_flag_spec_ld_CXX=
  9499. hardcode_libdir_separator_CXX=
  9500. hardcode_minus_L_CXX=no
  9501. hardcode_shlibpath_var_CXX=unsupported
  9502. hardcode_automatic_CXX=no
  9503. inherit_rpath_CXX=no
  9504. module_cmds_CXX=
  9505. module_expsym_cmds_CXX=
  9506. link_all_deplibs_CXX=unknown
  9507. old_archive_cmds_CXX=$old_archive_cmds
  9508. no_undefined_flag_CXX=
  9509. whole_archive_flag_spec_CXX=
  9510. enable_shared_with_static_runtimes_CXX=no
  9511. # Source file extension for C++ test sources.
  9512. ac_ext=cpp
  9513. # Object file extension for compiled C++ test sources.
  9514. objext=o
  9515. objext_CXX=$objext
  9516. # No sense in running all these tests if we already determined that
  9517. # the CXX compiler isn't working. Some variables (like enable_shared)
  9518. # are currently assumed to apply to all compilers on this platform,
  9519. # and will be corrupted by setting them based on a non-working compiler.
  9520. if test "$_lt_caught_CXX_error" != yes; then
  9521. # Code to be used in simple compile tests
  9522. lt_simple_compile_test_code="int some_variable = 0;"
  9523. # Code to be used in simple link tests
  9524. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9525. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9526. # If no C compiler was specified, use CC.
  9527. LTCC=${LTCC-"$CC"}
  9528. # If no C compiler flags were specified, use CFLAGS.
  9529. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9530. # Allow CC to be a program name with arguments.
  9531. compiler=$CC
  9532. # save warnings/boilerplate of simple test code
  9533. ac_outfile=conftest.$ac_objext
  9534. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9535. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9536. _lt_compiler_boilerplate=`cat conftest.err`
  9537. $RM conftest*
  9538. ac_outfile=conftest.$ac_objext
  9539. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9540. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9541. _lt_linker_boilerplate=`cat conftest.err`
  9542. $RM -r conftest*
  9543. # Allow CC to be a program name with arguments.
  9544. lt_save_CC=$CC
  9545. lt_save_LD=$LD
  9546. lt_save_GCC=$GCC
  9547. GCC=$GXX
  9548. lt_save_with_gnu_ld=$with_gnu_ld
  9549. lt_save_path_LD=$lt_cv_path_LD
  9550. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9551. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9552. else
  9553. $as_unset lt_cv_prog_gnu_ld
  9554. fi
  9555. if test -n "${lt_cv_path_LDCXX+set}"; then
  9556. lt_cv_path_LD=$lt_cv_path_LDCXX
  9557. else
  9558. $as_unset lt_cv_path_LD
  9559. fi
  9560. test -z "${LDCXX+set}" || LD=$LDCXX
  9561. CC=${CXX-"c++"}
  9562. compiler=$CC
  9563. compiler_CXX=$CC
  9564. for cc_temp in $compiler""; do
  9565. case $cc_temp in
  9566. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9567. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9568. \-*) ;;
  9569. *) break;;
  9570. esac
  9571. done
  9572. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9573. if test -n "$compiler"; then
  9574. # We don't want -fno-exception when compiling C++ code, so set the
  9575. # no_builtin_flag separately
  9576. if test "$GXX" = yes; then
  9577. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9578. else
  9579. lt_prog_compiler_no_builtin_flag_CXX=
  9580. fi
  9581. if test "$GXX" = yes; then
  9582. # Set up default GNU C++ configuration
  9583. # Check whether --with-gnu-ld was given.
  9584. if test "${with_gnu_ld+set}" = set; then :
  9585. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9586. else
  9587. with_gnu_ld=no
  9588. fi
  9589. ac_prog=ld
  9590. if test "$GCC" = yes; then
  9591. # Check if gcc -print-prog-name=ld gives a path.
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9593. $as_echo_n "checking for ld used by $CC... " >&6; }
  9594. case $host in
  9595. *-*-mingw*)
  9596. # gcc leaves a trailing carriage return which upsets mingw
  9597. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9598. *)
  9599. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9600. esac
  9601. case $ac_prog in
  9602. # Accept absolute paths.
  9603. [\\/]* | ?:[\\/]*)
  9604. re_direlt='/[^/][^/]*/\.\./'
  9605. # Canonicalize the pathname of ld
  9606. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9607. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9608. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9609. done
  9610. test -z "$LD" && LD="$ac_prog"
  9611. ;;
  9612. "")
  9613. # If it fails, then pretend we aren't using GCC.
  9614. ac_prog=ld
  9615. ;;
  9616. *)
  9617. # If it is relative, then search for the first ld in PATH.
  9618. with_gnu_ld=unknown
  9619. ;;
  9620. esac
  9621. elif test "$with_gnu_ld" = yes; then
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9623. $as_echo_n "checking for GNU ld... " >&6; }
  9624. else
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9626. $as_echo_n "checking for non-GNU ld... " >&6; }
  9627. fi
  9628. if test "${lt_cv_path_LD+set}" = set; then :
  9629. $as_echo_n "(cached) " >&6
  9630. else
  9631. if test -z "$LD"; then
  9632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9633. for ac_dir in $PATH; do
  9634. IFS="$lt_save_ifs"
  9635. test -z "$ac_dir" && ac_dir=.
  9636. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9637. lt_cv_path_LD="$ac_dir/$ac_prog"
  9638. # Check to see if the program is GNU ld. I'd rather use --version,
  9639. # but apparently some variants of GNU ld only accept -v.
  9640. # Break only if it was the GNU/non-GNU ld that we prefer.
  9641. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9642. *GNU* | *'with BFD'*)
  9643. test "$with_gnu_ld" != no && break
  9644. ;;
  9645. *)
  9646. test "$with_gnu_ld" != yes && break
  9647. ;;
  9648. esac
  9649. fi
  9650. done
  9651. IFS="$lt_save_ifs"
  9652. else
  9653. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9654. fi
  9655. fi
  9656. LD="$lt_cv_path_LD"
  9657. if test -n "$LD"; then
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9659. $as_echo "$LD" >&6; }
  9660. else
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9662. $as_echo "no" >&6; }
  9663. fi
  9664. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9666. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9667. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9668. $as_echo_n "(cached) " >&6
  9669. else
  9670. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9671. case `$LD -v 2>&1 </dev/null` in
  9672. *GNU* | *'with BFD'*)
  9673. lt_cv_prog_gnu_ld=yes
  9674. ;;
  9675. *)
  9676. lt_cv_prog_gnu_ld=no
  9677. ;;
  9678. esac
  9679. fi
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9681. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9682. with_gnu_ld=$lt_cv_prog_gnu_ld
  9683. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9684. # archiving commands below assume that GNU ld is being used.
  9685. if test "$with_gnu_ld" = yes; then
  9686. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9687. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9688. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9689. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9690. # If archive_cmds runs LD, not CC, wlarc should be empty
  9691. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9692. # investigate it a little bit more. (MM)
  9693. wlarc='${wl}'
  9694. # ancient GNU ld didn't support --whole-archive et. al.
  9695. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9696. $GREP 'no-whole-archive' > /dev/null; then
  9697. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9698. else
  9699. whole_archive_flag_spec_CXX=
  9700. fi
  9701. else
  9702. with_gnu_ld=no
  9703. wlarc=
  9704. # A generic and very simple default shared library creation
  9705. # command for GNU C++ for the case where it uses the native
  9706. # linker, instead of GNU ld. If possible, this setting should
  9707. # overridden to take advantage of the native linker features on
  9708. # the platform it is being used on.
  9709. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9710. fi
  9711. # Commands to make compiler produce verbose output that lists
  9712. # what "hidden" libraries, object files and flags are used when
  9713. # linking a shared library.
  9714. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9715. else
  9716. GXX=no
  9717. with_gnu_ld=no
  9718. wlarc=
  9719. fi
  9720. # PORTME: fill in a description of your system's C++ link characteristics
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9722. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9723. ld_shlibs_CXX=yes
  9724. case $host_os in
  9725. aix3*)
  9726. # FIXME: insert proper C++ library support
  9727. ld_shlibs_CXX=no
  9728. ;;
  9729. aix[4-9]*)
  9730. if test "$host_cpu" = ia64; then
  9731. # On IA64, the linker does run time linking by default, so we don't
  9732. # have to do anything special.
  9733. aix_use_runtimelinking=no
  9734. exp_sym_flag='-Bexport'
  9735. no_entry_flag=""
  9736. else
  9737. aix_use_runtimelinking=no
  9738. # Test if we are trying to use run time linking or normal
  9739. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9740. # need to do runtime linking.
  9741. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9742. for ld_flag in $LDFLAGS; do
  9743. case $ld_flag in
  9744. *-brtl*)
  9745. aix_use_runtimelinking=yes
  9746. break
  9747. ;;
  9748. esac
  9749. done
  9750. ;;
  9751. esac
  9752. exp_sym_flag='-bexport'
  9753. no_entry_flag='-bnoentry'
  9754. fi
  9755. # When large executables or shared objects are built, AIX ld can
  9756. # have problems creating the table of contents. If linking a library
  9757. # or program results in "error TOC overflow" add -mminimal-toc to
  9758. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9759. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9760. archive_cmds_CXX=''
  9761. hardcode_direct_CXX=yes
  9762. hardcode_direct_absolute_CXX=yes
  9763. hardcode_libdir_separator_CXX=':'
  9764. link_all_deplibs_CXX=yes
  9765. file_list_spec_CXX='${wl}-f,'
  9766. if test "$GXX" = yes; then
  9767. case $host_os in aix4.[012]|aix4.[012].*)
  9768. # We only want to do this on AIX 4.2 and lower, the check
  9769. # below for broken collect2 doesn't work under 4.3+
  9770. collect2name=`${CC} -print-prog-name=collect2`
  9771. if test -f "$collect2name" &&
  9772. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9773. then
  9774. # We have reworked collect2
  9775. :
  9776. else
  9777. # We have old collect2
  9778. hardcode_direct_CXX=unsupported
  9779. # It fails to find uninstalled libraries when the uninstalled
  9780. # path is not listed in the libpath. Setting hardcode_minus_L
  9781. # to unsupported forces relinking
  9782. hardcode_minus_L_CXX=yes
  9783. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9784. hardcode_libdir_separator_CXX=
  9785. fi
  9786. esac
  9787. shared_flag='-shared'
  9788. if test "$aix_use_runtimelinking" = yes; then
  9789. shared_flag="$shared_flag "'${wl}-G'
  9790. fi
  9791. else
  9792. # not using gcc
  9793. if test "$host_cpu" = ia64; then
  9794. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9795. # chokes on -Wl,-G. The following line is correct:
  9796. shared_flag='-G'
  9797. else
  9798. if test "$aix_use_runtimelinking" = yes; then
  9799. shared_flag='${wl}-G'
  9800. else
  9801. shared_flag='${wl}-bM:SRE'
  9802. fi
  9803. fi
  9804. fi
  9805. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  9806. # It seems that -bexpall does not export symbols beginning with
  9807. # underscore (_), so it is better to generate a list of symbols to
  9808. # export.
  9809. always_export_symbols_CXX=yes
  9810. if test "$aix_use_runtimelinking" = yes; then
  9811. # Warning - without using the other runtime loading flags (-brtl),
  9812. # -berok will link without error, but may produce a broken library.
  9813. allow_undefined_flag_CXX='-berok'
  9814. # Determine the default libpath from the value encoded in an empty
  9815. # executable.
  9816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9817. /* end confdefs.h. */
  9818. int
  9819. main ()
  9820. {
  9821. ;
  9822. return 0;
  9823. }
  9824. _ACEOF
  9825. if ac_fn_cxx_try_link "$LINENO"; then :
  9826. lt_aix_libpath_sed='
  9827. /Import File Strings/,/^$/ {
  9828. /^0/ {
  9829. s/^0 *\(.*\)$/\1/
  9830. p
  9831. }
  9832. }'
  9833. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9834. # Check for a 64-bit object if we didn't find anything.
  9835. if test -z "$aix_libpath"; then
  9836. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9837. fi
  9838. fi
  9839. rm -f core conftest.err conftest.$ac_objext \
  9840. conftest$ac_exeext conftest.$ac_ext
  9841. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9842. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9843. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9844. else
  9845. if test "$host_cpu" = ia64; then
  9846. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9847. allow_undefined_flag_CXX="-z nodefs"
  9848. 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"
  9849. else
  9850. # Determine the default libpath from the value encoded in an
  9851. # empty executable.
  9852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9853. /* end confdefs.h. */
  9854. int
  9855. main ()
  9856. {
  9857. ;
  9858. return 0;
  9859. }
  9860. _ACEOF
  9861. if ac_fn_cxx_try_link "$LINENO"; then :
  9862. lt_aix_libpath_sed='
  9863. /Import File Strings/,/^$/ {
  9864. /^0/ {
  9865. s/^0 *\(.*\)$/\1/
  9866. p
  9867. }
  9868. }'
  9869. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9870. # Check for a 64-bit object if we didn't find anything.
  9871. if test -z "$aix_libpath"; then
  9872. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9873. fi
  9874. fi
  9875. rm -f core conftest.err conftest.$ac_objext \
  9876. conftest$ac_exeext conftest.$ac_ext
  9877. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9878. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9879. # Warning - without using the other run time loading flags,
  9880. # -berok will link without error, but may produce a broken library.
  9881. no_undefined_flag_CXX=' ${wl}-bernotok'
  9882. allow_undefined_flag_CXX=' ${wl}-berok'
  9883. # Exported symbols can be pulled into shared objects from archives
  9884. whole_archive_flag_spec_CXX='$convenience'
  9885. archive_cmds_need_lc_CXX=yes
  9886. # This is similar to how AIX traditionally builds its shared
  9887. # libraries.
  9888. 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'
  9889. fi
  9890. fi
  9891. ;;
  9892. beos*)
  9893. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9894. allow_undefined_flag_CXX=unsupported
  9895. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9896. # support --undefined. This deserves some investigation. FIXME
  9897. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9898. else
  9899. ld_shlibs_CXX=no
  9900. fi
  9901. ;;
  9902. chorus*)
  9903. case $cc_basename in
  9904. *)
  9905. # FIXME: insert proper C++ library support
  9906. ld_shlibs_CXX=no
  9907. ;;
  9908. esac
  9909. ;;
  9910. cygwin* | mingw* | pw32* | cegcc*)
  9911. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9912. # as there is no search path for DLLs.
  9913. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9914. allow_undefined_flag_CXX=unsupported
  9915. always_export_symbols_CXX=no
  9916. enable_shared_with_static_runtimes_CXX=yes
  9917. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9918. 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'
  9919. # If the export-symbols file already is a .def file (1st line
  9920. # is EXPORTS), use it as is; otherwise, prepend...
  9921. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9922. cp $export_symbols $output_objdir/$soname.def;
  9923. else
  9924. echo EXPORTS > $output_objdir/$soname.def;
  9925. cat $export_symbols >> $output_objdir/$soname.def;
  9926. fi~
  9927. $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'
  9928. else
  9929. ld_shlibs_CXX=no
  9930. fi
  9931. ;;
  9932. darwin* | rhapsody*)
  9933. archive_cmds_need_lc_CXX=no
  9934. hardcode_direct_CXX=no
  9935. hardcode_automatic_CXX=yes
  9936. hardcode_shlibpath_var_CXX=unsupported
  9937. whole_archive_flag_spec_CXX=''
  9938. link_all_deplibs_CXX=yes
  9939. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9940. case $cc_basename in
  9941. ifort*) _lt_dar_can_shared=yes ;;
  9942. *) _lt_dar_can_shared=$GCC ;;
  9943. esac
  9944. if test "$_lt_dar_can_shared" = "yes"; then
  9945. output_verbose_link_cmd=echo
  9946. 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}"
  9947. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9948. 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}"
  9949. 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}"
  9950. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9951. 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}"
  9952. 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}"
  9953. fi
  9954. else
  9955. ld_shlibs_CXX=no
  9956. fi
  9957. ;;
  9958. dgux*)
  9959. case $cc_basename in
  9960. ec++*)
  9961. # FIXME: insert proper C++ library support
  9962. ld_shlibs_CXX=no
  9963. ;;
  9964. ghcx*)
  9965. # Green Hills C++ Compiler
  9966. # FIXME: insert proper C++ library support
  9967. ld_shlibs_CXX=no
  9968. ;;
  9969. *)
  9970. # FIXME: insert proper C++ library support
  9971. ld_shlibs_CXX=no
  9972. ;;
  9973. esac
  9974. ;;
  9975. freebsd[12]*)
  9976. # C++ shared libraries reported to be fairly broken before
  9977. # switch to ELF
  9978. ld_shlibs_CXX=no
  9979. ;;
  9980. freebsd-elf*)
  9981. archive_cmds_need_lc_CXX=no
  9982. ;;
  9983. freebsd* | dragonfly*)
  9984. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9985. # conventions
  9986. ld_shlibs_CXX=yes
  9987. ;;
  9988. gnu*)
  9989. ;;
  9990. hpux9*)
  9991. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9992. hardcode_libdir_separator_CXX=:
  9993. export_dynamic_flag_spec_CXX='${wl}-E'
  9994. hardcode_direct_CXX=yes
  9995. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9996. # but as the default
  9997. # location of the library.
  9998. case $cc_basename in
  9999. CC*)
  10000. # FIXME: insert proper C++ library support
  10001. ld_shlibs_CXX=no
  10002. ;;
  10003. aCC*)
  10004. 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'
  10005. # Commands to make compiler produce verbose output that lists
  10006. # what "hidden" libraries, object files and flags are used when
  10007. # linking a shared library.
  10008. #
  10009. # There doesn't appear to be a way to prevent this compiler from
  10010. # explicitly linking system object files so we need to strip them
  10011. # from the output so that they don't get included in the library
  10012. # dependencies.
  10013. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10014. ;;
  10015. *)
  10016. if test "$GXX" = yes; then
  10017. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10018. else
  10019. # FIXME: insert proper C++ library support
  10020. ld_shlibs_CXX=no
  10021. fi
  10022. ;;
  10023. esac
  10024. ;;
  10025. hpux10*|hpux11*)
  10026. if test $with_gnu_ld = no; then
  10027. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10028. hardcode_libdir_separator_CXX=:
  10029. case $host_cpu in
  10030. hppa*64*|ia64*)
  10031. ;;
  10032. *)
  10033. export_dynamic_flag_spec_CXX='${wl}-E'
  10034. ;;
  10035. esac
  10036. fi
  10037. case $host_cpu in
  10038. hppa*64*|ia64*)
  10039. hardcode_direct_CXX=no
  10040. hardcode_shlibpath_var_CXX=no
  10041. ;;
  10042. *)
  10043. hardcode_direct_CXX=yes
  10044. hardcode_direct_absolute_CXX=yes
  10045. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10046. # but as the default
  10047. # location of the library.
  10048. ;;
  10049. esac
  10050. case $cc_basename in
  10051. CC*)
  10052. # FIXME: insert proper C++ library support
  10053. ld_shlibs_CXX=no
  10054. ;;
  10055. aCC*)
  10056. case $host_cpu in
  10057. hppa*64*)
  10058. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10059. ;;
  10060. ia64*)
  10061. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10062. ;;
  10063. *)
  10064. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10065. ;;
  10066. esac
  10067. # Commands to make compiler produce verbose output that lists
  10068. # what "hidden" libraries, object files and flags are used when
  10069. # linking a shared library.
  10070. #
  10071. # There doesn't appear to be a way to prevent this compiler from
  10072. # explicitly linking system object files so we need to strip them
  10073. # from the output so that they don't get included in the library
  10074. # dependencies.
  10075. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10076. ;;
  10077. *)
  10078. if test "$GXX" = yes; then
  10079. if test $with_gnu_ld = no; then
  10080. case $host_cpu in
  10081. hppa*64*)
  10082. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10083. ;;
  10084. ia64*)
  10085. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10086. ;;
  10087. *)
  10088. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10089. ;;
  10090. esac
  10091. fi
  10092. else
  10093. # FIXME: insert proper C++ library support
  10094. ld_shlibs_CXX=no
  10095. fi
  10096. ;;
  10097. esac
  10098. ;;
  10099. interix[3-9]*)
  10100. hardcode_direct_CXX=no
  10101. hardcode_shlibpath_var_CXX=no
  10102. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10103. export_dynamic_flag_spec_CXX='${wl}-E'
  10104. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10105. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10106. # default) and relocated if they conflict, which is a slow very memory
  10107. # consuming and fragmenting process. To avoid this, we pick a random,
  10108. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10109. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10110. 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'
  10111. 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'
  10112. ;;
  10113. irix5* | irix6*)
  10114. case $cc_basename in
  10115. CC*)
  10116. # SGI C++
  10117. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10118. # Archives containing C++ object files must be created using
  10119. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10120. # necessary to make sure instantiated templates are included
  10121. # in the archive.
  10122. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10123. ;;
  10124. *)
  10125. if test "$GXX" = yes; then
  10126. if test "$with_gnu_ld" = no; then
  10127. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10128. else
  10129. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10130. fi
  10131. fi
  10132. link_all_deplibs_CXX=yes
  10133. ;;
  10134. esac
  10135. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10136. hardcode_libdir_separator_CXX=:
  10137. inherit_rpath_CXX=yes
  10138. ;;
  10139. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10140. case $cc_basename in
  10141. KCC*)
  10142. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10143. # KCC will only create a shared library if the output file
  10144. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10145. # to its proper name (with version) after linking.
  10146. 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'
  10147. 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'
  10148. # Commands to make compiler produce verbose output that lists
  10149. # what "hidden" libraries, object files and flags are used when
  10150. # linking a shared library.
  10151. #
  10152. # There doesn't appear to be a way to prevent this compiler from
  10153. # explicitly linking system object files so we need to strip them
  10154. # from the output so that they don't get included in the library
  10155. # dependencies.
  10156. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10157. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10158. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10159. # Archives containing C++ object files must be created using
  10160. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10161. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10162. ;;
  10163. icpc* | ecpc* )
  10164. # Intel C++
  10165. with_gnu_ld=yes
  10166. # version 8.0 and above of icpc choke on multiply defined symbols
  10167. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10168. # earlier do not add the objects themselves.
  10169. case `$CC -V 2>&1` in
  10170. *"Version 7."*)
  10171. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10172. 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'
  10173. ;;
  10174. *) # Version 8.0 or newer
  10175. tmp_idyn=
  10176. case $host_cpu in
  10177. ia64*) tmp_idyn=' -i_dynamic';;
  10178. esac
  10179. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10180. 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'
  10181. ;;
  10182. esac
  10183. archive_cmds_need_lc_CXX=no
  10184. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10185. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10186. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10187. ;;
  10188. pgCC* | pgcpp*)
  10189. # Portland Group C++ compiler
  10190. case `$CC -V` in
  10191. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10192. prelink_cmds_CXX='tpldir=Template.dir~
  10193. rm -rf $tpldir~
  10194. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10195. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10196. old_archive_cmds_CXX='tpldir=Template.dir~
  10197. rm -rf $tpldir~
  10198. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10199. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10200. $RANLIB $oldlib'
  10201. archive_cmds_CXX='tpldir=Template.dir~
  10202. rm -rf $tpldir~
  10203. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10204. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10205. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10206. rm -rf $tpldir~
  10207. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10208. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10209. ;;
  10210. *) # Version 6 will use weak symbols
  10211. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10212. 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'
  10213. ;;
  10214. esac
  10215. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10216. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10217. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10218. ;;
  10219. cxx*)
  10220. # Compaq C++
  10221. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10222. 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'
  10223. runpath_var=LD_RUN_PATH
  10224. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10225. hardcode_libdir_separator_CXX=:
  10226. # Commands to make compiler produce verbose output that lists
  10227. # what "hidden" libraries, object files and flags are used when
  10228. # linking a shared library.
  10229. #
  10230. # There doesn't appear to be a way to prevent this compiler from
  10231. # explicitly linking system object files so we need to strip them
  10232. # from the output so that they don't get included in the library
  10233. # dependencies.
  10234. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10235. ;;
  10236. xl*)
  10237. # IBM XL 8.0 on PPC, with GNU ld
  10238. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10239. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10240. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10241. if test "x$supports_anon_versioning" = xyes; then
  10242. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10243. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10244. echo "local: *; };" >> $output_objdir/$libname.ver~
  10245. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10246. fi
  10247. ;;
  10248. *)
  10249. case `$CC -V 2>&1 | sed 5q` in
  10250. *Sun\ C*)
  10251. # Sun C++ 5.9
  10252. no_undefined_flag_CXX=' -zdefs'
  10253. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10254. 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'
  10255. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10256. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10257. compiler_needs_object_CXX=yes
  10258. # Not sure whether something based on
  10259. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10260. # would be better.
  10261. output_verbose_link_cmd='echo'
  10262. # Archives containing C++ object files must be created using
  10263. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10264. # necessary to make sure instantiated templates are included
  10265. # in the archive.
  10266. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10267. ;;
  10268. esac
  10269. ;;
  10270. esac
  10271. ;;
  10272. lynxos*)
  10273. # FIXME: insert proper C++ library support
  10274. ld_shlibs_CXX=no
  10275. ;;
  10276. m88k*)
  10277. # FIXME: insert proper C++ library support
  10278. ld_shlibs_CXX=no
  10279. ;;
  10280. mvs*)
  10281. case $cc_basename in
  10282. cxx*)
  10283. # FIXME: insert proper C++ library support
  10284. ld_shlibs_CXX=no
  10285. ;;
  10286. *)
  10287. # FIXME: insert proper C++ library support
  10288. ld_shlibs_CXX=no
  10289. ;;
  10290. esac
  10291. ;;
  10292. netbsd*)
  10293. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10294. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10295. wlarc=
  10296. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10297. hardcode_direct_CXX=yes
  10298. hardcode_shlibpath_var_CXX=no
  10299. fi
  10300. # Workaround some broken pre-1.5 toolchains
  10301. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10302. ;;
  10303. *nto* | *qnx*)
  10304. ld_shlibs_CXX=yes
  10305. ;;
  10306. openbsd2*)
  10307. # C++ shared libraries are fairly broken
  10308. ld_shlibs_CXX=no
  10309. ;;
  10310. openbsd*)
  10311. if test -f /usr/libexec/ld.so; then
  10312. hardcode_direct_CXX=yes
  10313. hardcode_shlibpath_var_CXX=no
  10314. hardcode_direct_absolute_CXX=yes
  10315. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10316. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10317. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10318. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10319. export_dynamic_flag_spec_CXX='${wl}-E'
  10320. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10321. fi
  10322. output_verbose_link_cmd=echo
  10323. else
  10324. ld_shlibs_CXX=no
  10325. fi
  10326. ;;
  10327. osf3* | osf4* | osf5*)
  10328. case $cc_basename in
  10329. KCC*)
  10330. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10331. # KCC will only create a shared library if the output file
  10332. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10333. # to its proper name (with version) after linking.
  10334. 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'
  10335. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10336. hardcode_libdir_separator_CXX=:
  10337. # Archives containing C++ object files must be created using
  10338. # the KAI C++ compiler.
  10339. case $host in
  10340. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10341. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10342. esac
  10343. ;;
  10344. RCC*)
  10345. # Rational C++ 2.4.1
  10346. # FIXME: insert proper C++ library support
  10347. ld_shlibs_CXX=no
  10348. ;;
  10349. cxx*)
  10350. case $host in
  10351. osf3*)
  10352. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10353. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10354. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10355. ;;
  10356. *)
  10357. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10358. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10359. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10360. echo "-hidden">> $lib.exp~
  10361. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10362. $RM $lib.exp'
  10363. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10364. ;;
  10365. esac
  10366. hardcode_libdir_separator_CXX=:
  10367. # Commands to make compiler produce verbose output that lists
  10368. # what "hidden" libraries, object files and flags are used when
  10369. # linking a shared library.
  10370. #
  10371. # There doesn't appear to be a way to prevent this compiler from
  10372. # explicitly linking system object files so we need to strip them
  10373. # from the output so that they don't get included in the library
  10374. # dependencies.
  10375. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10376. ;;
  10377. *)
  10378. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10379. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10380. case $host in
  10381. osf3*)
  10382. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10383. ;;
  10384. *)
  10385. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10386. ;;
  10387. esac
  10388. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10389. hardcode_libdir_separator_CXX=:
  10390. # Commands to make compiler produce verbose output that lists
  10391. # what "hidden" libraries, object files and flags are used when
  10392. # linking a shared library.
  10393. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10394. else
  10395. # FIXME: insert proper C++ library support
  10396. ld_shlibs_CXX=no
  10397. fi
  10398. ;;
  10399. esac
  10400. ;;
  10401. psos*)
  10402. # FIXME: insert proper C++ library support
  10403. ld_shlibs_CXX=no
  10404. ;;
  10405. sunos4*)
  10406. case $cc_basename in
  10407. CC*)
  10408. # Sun C++ 4.x
  10409. # FIXME: insert proper C++ library support
  10410. ld_shlibs_CXX=no
  10411. ;;
  10412. lcc*)
  10413. # Lucid
  10414. # FIXME: insert proper C++ library support
  10415. ld_shlibs_CXX=no
  10416. ;;
  10417. *)
  10418. # FIXME: insert proper C++ library support
  10419. ld_shlibs_CXX=no
  10420. ;;
  10421. esac
  10422. ;;
  10423. solaris*)
  10424. case $cc_basename in
  10425. CC*)
  10426. # Sun C++ 4.2, 5.x and Centerline C++
  10427. archive_cmds_need_lc_CXX=yes
  10428. no_undefined_flag_CXX=' -zdefs'
  10429. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10430. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10431. $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'
  10432. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10433. hardcode_shlibpath_var_CXX=no
  10434. case $host_os in
  10435. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10436. *)
  10437. # The compiler driver will combine and reorder linker options,
  10438. # but understands `-z linker_flag'.
  10439. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10440. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10441. ;;
  10442. esac
  10443. link_all_deplibs_CXX=yes
  10444. output_verbose_link_cmd='echo'
  10445. # Archives containing C++ object files must be created using
  10446. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10447. # necessary to make sure instantiated templates are included
  10448. # in the archive.
  10449. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10450. ;;
  10451. gcx*)
  10452. # Green Hills C++ Compiler
  10453. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10454. # The C++ compiler must be used to create the archive.
  10455. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10456. ;;
  10457. *)
  10458. # GNU C++ compiler with Solaris linker
  10459. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10460. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10461. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10462. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10463. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10464. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10465. # Commands to make compiler produce verbose output that lists
  10466. # what "hidden" libraries, object files and flags are used when
  10467. # linking a shared library.
  10468. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10469. else
  10470. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10471. # platform.
  10472. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10473. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10474. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10475. # Commands to make compiler produce verbose output that lists
  10476. # what "hidden" libraries, object files and flags are used when
  10477. # linking a shared library.
  10478. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10479. fi
  10480. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10481. case $host_os in
  10482. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10483. *)
  10484. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10485. ;;
  10486. esac
  10487. fi
  10488. ;;
  10489. esac
  10490. ;;
  10491. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10492. no_undefined_flag_CXX='${wl}-z,text'
  10493. archive_cmds_need_lc_CXX=no
  10494. hardcode_shlibpath_var_CXX=no
  10495. runpath_var='LD_RUN_PATH'
  10496. case $cc_basename in
  10497. CC*)
  10498. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10499. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10500. ;;
  10501. *)
  10502. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10503. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10504. ;;
  10505. esac
  10506. ;;
  10507. sysv5* | sco3.2v5* | sco5v6*)
  10508. # Note: We can NOT use -z defs as we might desire, because we do not
  10509. # link with -lc, and that would cause any symbols used from libc to
  10510. # always be unresolved, which means just about no library would
  10511. # ever link correctly. If we're not using GNU ld we use -z text
  10512. # though, which does catch some bad symbols but isn't as heavy-handed
  10513. # as -z defs.
  10514. no_undefined_flag_CXX='${wl}-z,text'
  10515. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10516. archive_cmds_need_lc_CXX=no
  10517. hardcode_shlibpath_var_CXX=no
  10518. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10519. hardcode_libdir_separator_CXX=':'
  10520. link_all_deplibs_CXX=yes
  10521. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10522. runpath_var='LD_RUN_PATH'
  10523. case $cc_basename in
  10524. CC*)
  10525. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10526. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10527. ;;
  10528. *)
  10529. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10530. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10531. ;;
  10532. esac
  10533. ;;
  10534. tandem*)
  10535. case $cc_basename in
  10536. NCC*)
  10537. # NonStop-UX NCC 3.20
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. *)
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. ;;
  10545. esac
  10546. ;;
  10547. vxworks*)
  10548. # FIXME: insert proper C++ library support
  10549. ld_shlibs_CXX=no
  10550. ;;
  10551. *)
  10552. # FIXME: insert proper C++ library support
  10553. ld_shlibs_CXX=no
  10554. ;;
  10555. esac
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10557. $as_echo "$ld_shlibs_CXX" >&6; }
  10558. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10559. GCC_CXX="$GXX"
  10560. LD_CXX="$LD"
  10561. ## CAVEAT EMPTOR:
  10562. ## There is no encapsulation within the following macros, do not change
  10563. ## the running order or otherwise move them around unless you know exactly
  10564. ## what you are doing...
  10565. # Dependencies to place before and after the object being linked:
  10566. predep_objects_CXX=
  10567. postdep_objects_CXX=
  10568. predeps_CXX=
  10569. postdeps_CXX=
  10570. compiler_lib_search_path_CXX=
  10571. cat > conftest.$ac_ext <<_LT_EOF
  10572. class Foo
  10573. {
  10574. public:
  10575. Foo (void) { a = 0; }
  10576. private:
  10577. int a;
  10578. };
  10579. _LT_EOF
  10580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10581. (eval $ac_compile) 2>&5
  10582. ac_status=$?
  10583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10584. test $ac_status = 0; }; then
  10585. # Parse the compiler output and extract the necessary
  10586. # objects, libraries and library flags.
  10587. # Sentinel used to keep track of whether or not we are before
  10588. # the conftest object file.
  10589. pre_test_object_deps_done=no
  10590. for p in `eval "$output_verbose_link_cmd"`; do
  10591. case $p in
  10592. -L* | -R* | -l*)
  10593. # Some compilers place space between "-{L,R}" and the path.
  10594. # Remove the space.
  10595. if test $p = "-L" ||
  10596. test $p = "-R"; then
  10597. prev=$p
  10598. continue
  10599. else
  10600. prev=
  10601. fi
  10602. if test "$pre_test_object_deps_done" = no; then
  10603. case $p in
  10604. -L* | -R*)
  10605. # Internal compiler library paths should come after those
  10606. # provided the user. The postdeps already come after the
  10607. # user supplied libs so there is no need to process them.
  10608. if test -z "$compiler_lib_search_path_CXX"; then
  10609. compiler_lib_search_path_CXX="${prev}${p}"
  10610. else
  10611. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10612. fi
  10613. ;;
  10614. # The "-l" case would never come before the object being
  10615. # linked, so don't bother handling this case.
  10616. esac
  10617. else
  10618. if test -z "$postdeps_CXX"; then
  10619. postdeps_CXX="${prev}${p}"
  10620. else
  10621. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10622. fi
  10623. fi
  10624. ;;
  10625. *.$objext)
  10626. # This assumes that the test object file only shows up
  10627. # once in the compiler output.
  10628. if test "$p" = "conftest.$objext"; then
  10629. pre_test_object_deps_done=yes
  10630. continue
  10631. fi
  10632. if test "$pre_test_object_deps_done" = no; then
  10633. if test -z "$predep_objects_CXX"; then
  10634. predep_objects_CXX="$p"
  10635. else
  10636. predep_objects_CXX="$predep_objects_CXX $p"
  10637. fi
  10638. else
  10639. if test -z "$postdep_objects_CXX"; then
  10640. postdep_objects_CXX="$p"
  10641. else
  10642. postdep_objects_CXX="$postdep_objects_CXX $p"
  10643. fi
  10644. fi
  10645. ;;
  10646. *) ;; # Ignore the rest.
  10647. esac
  10648. done
  10649. # Clean up.
  10650. rm -f a.out a.exe
  10651. else
  10652. echo "libtool.m4: error: problem compiling CXX test program"
  10653. fi
  10654. $RM -f confest.$objext
  10655. # PORTME: override above test on systems where it is broken
  10656. case $host_os in
  10657. interix[3-9]*)
  10658. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10659. # hack all around it, let's just trust "g++" to DTRT.
  10660. predep_objects_CXX=
  10661. postdep_objects_CXX=
  10662. postdeps_CXX=
  10663. ;;
  10664. linux*)
  10665. case `$CC -V 2>&1 | sed 5q` in
  10666. *Sun\ C*)
  10667. # Sun C++ 5.9
  10668. # The more standards-conforming stlport4 library is
  10669. # incompatible with the Cstd library. Avoid specifying
  10670. # it if it's in CXXFLAGS. Ignore libCrun as
  10671. # -library=stlport4 depends on it.
  10672. case " $CXX $CXXFLAGS " in
  10673. *" -library=stlport4 "*)
  10674. solaris_use_stlport4=yes
  10675. ;;
  10676. esac
  10677. if test "$solaris_use_stlport4" != yes; then
  10678. postdeps_CXX='-library=Cstd -library=Crun'
  10679. fi
  10680. ;;
  10681. esac
  10682. ;;
  10683. solaris*)
  10684. case $cc_basename in
  10685. CC*)
  10686. # The more standards-conforming stlport4 library is
  10687. # incompatible with the Cstd library. Avoid specifying
  10688. # it if it's in CXXFLAGS. Ignore libCrun as
  10689. # -library=stlport4 depends on it.
  10690. case " $CXX $CXXFLAGS " in
  10691. *" -library=stlport4 "*)
  10692. solaris_use_stlport4=yes
  10693. ;;
  10694. esac
  10695. # Adding this requires a known-good setup of shared libraries for
  10696. # Sun compiler versions before 5.6, else PIC objects from an old
  10697. # archive will be linked into the output, leading to subtle bugs.
  10698. if test "$solaris_use_stlport4" != yes; then
  10699. postdeps_CXX='-library=Cstd -library=Crun'
  10700. fi
  10701. ;;
  10702. esac
  10703. ;;
  10704. esac
  10705. case " $postdeps_CXX " in
  10706. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10707. esac
  10708. compiler_lib_search_dirs_CXX=
  10709. if test -n "${compiler_lib_search_path_CXX}"; then
  10710. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10711. fi
  10712. lt_prog_compiler_wl_CXX=
  10713. lt_prog_compiler_pic_CXX=
  10714. lt_prog_compiler_static_CXX=
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10716. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10717. # C++ specific cases for pic, static, wl, etc.
  10718. if test "$GXX" = yes; then
  10719. lt_prog_compiler_wl_CXX='-Wl,'
  10720. lt_prog_compiler_static_CXX='-static'
  10721. case $host_os in
  10722. aix*)
  10723. # All AIX code is PIC.
  10724. if test "$host_cpu" = ia64; then
  10725. # AIX 5 now supports IA64 processor
  10726. lt_prog_compiler_static_CXX='-Bstatic'
  10727. fi
  10728. ;;
  10729. amigaos*)
  10730. case $host_cpu in
  10731. powerpc)
  10732. # see comment about AmigaOS4 .so support
  10733. lt_prog_compiler_pic_CXX='-fPIC'
  10734. ;;
  10735. m68k)
  10736. # FIXME: we need at least 68020 code to build shared libraries, but
  10737. # adding the `-m68020' flag to GCC prevents building anything better,
  10738. # like `-m68040'.
  10739. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10740. ;;
  10741. esac
  10742. ;;
  10743. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10744. # PIC is the default for these OSes.
  10745. ;;
  10746. mingw* | cygwin* | os2* | pw32* | cegcc*)
  10747. # This hack is so that the source file can tell whether it is being
  10748. # built for inclusion in a dll (and should export symbols for example).
  10749. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10750. # (--disable-auto-import) libraries
  10751. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10752. ;;
  10753. darwin* | rhapsody*)
  10754. # PIC is the default on this platform
  10755. # Common symbols not allowed in MH_DYLIB files
  10756. lt_prog_compiler_pic_CXX='-fno-common'
  10757. ;;
  10758. *djgpp*)
  10759. # DJGPP does not support shared libraries at all
  10760. lt_prog_compiler_pic_CXX=
  10761. ;;
  10762. interix[3-9]*)
  10763. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10764. # Instead, we relocate shared libraries at runtime.
  10765. ;;
  10766. sysv4*MP*)
  10767. if test -d /usr/nec; then
  10768. lt_prog_compiler_pic_CXX=-Kconform_pic
  10769. fi
  10770. ;;
  10771. hpux*)
  10772. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10773. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10774. # sets the default TLS model and affects inlining.
  10775. case $host_cpu in
  10776. hppa*64*)
  10777. ;;
  10778. *)
  10779. lt_prog_compiler_pic_CXX='-fPIC'
  10780. ;;
  10781. esac
  10782. ;;
  10783. *qnx* | *nto*)
  10784. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10785. # it will coredump.
  10786. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10787. ;;
  10788. *)
  10789. lt_prog_compiler_pic_CXX='-fPIC'
  10790. ;;
  10791. esac
  10792. else
  10793. case $host_os in
  10794. aix[4-9]*)
  10795. # All AIX code is PIC.
  10796. if test "$host_cpu" = ia64; then
  10797. # AIX 5 now supports IA64 processor
  10798. lt_prog_compiler_static_CXX='-Bstatic'
  10799. else
  10800. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10801. fi
  10802. ;;
  10803. chorus*)
  10804. case $cc_basename in
  10805. cxch68*)
  10806. # Green Hills C++ Compiler
  10807. # _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"
  10808. ;;
  10809. esac
  10810. ;;
  10811. dgux*)
  10812. case $cc_basename in
  10813. ec++*)
  10814. lt_prog_compiler_pic_CXX='-KPIC'
  10815. ;;
  10816. ghcx*)
  10817. # Green Hills C++ Compiler
  10818. lt_prog_compiler_pic_CXX='-pic'
  10819. ;;
  10820. *)
  10821. ;;
  10822. esac
  10823. ;;
  10824. freebsd* | dragonfly*)
  10825. # FreeBSD uses GNU C++
  10826. ;;
  10827. hpux9* | hpux10* | hpux11*)
  10828. case $cc_basename in
  10829. CC*)
  10830. lt_prog_compiler_wl_CXX='-Wl,'
  10831. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10832. if test "$host_cpu" != ia64; then
  10833. lt_prog_compiler_pic_CXX='+Z'
  10834. fi
  10835. ;;
  10836. aCC*)
  10837. lt_prog_compiler_wl_CXX='-Wl,'
  10838. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10839. case $host_cpu in
  10840. hppa*64*|ia64*)
  10841. # +Z the default
  10842. ;;
  10843. *)
  10844. lt_prog_compiler_pic_CXX='+Z'
  10845. ;;
  10846. esac
  10847. ;;
  10848. *)
  10849. ;;
  10850. esac
  10851. ;;
  10852. interix*)
  10853. # This is c89, which is MS Visual C++ (no shared libs)
  10854. # Anyone wants to do a port?
  10855. ;;
  10856. irix5* | irix6* | nonstopux*)
  10857. case $cc_basename in
  10858. CC*)
  10859. lt_prog_compiler_wl_CXX='-Wl,'
  10860. lt_prog_compiler_static_CXX='-non_shared'
  10861. # CC pic flag -KPIC is the default.
  10862. ;;
  10863. *)
  10864. ;;
  10865. esac
  10866. ;;
  10867. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10868. case $cc_basename in
  10869. KCC*)
  10870. # KAI C++ Compiler
  10871. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10872. lt_prog_compiler_pic_CXX='-fPIC'
  10873. ;;
  10874. ecpc* )
  10875. # old Intel C++ for x86_64 which still supported -KPIC.
  10876. lt_prog_compiler_wl_CXX='-Wl,'
  10877. lt_prog_compiler_pic_CXX='-KPIC'
  10878. lt_prog_compiler_static_CXX='-static'
  10879. ;;
  10880. icpc* )
  10881. # Intel C++, used to be incompatible with GCC.
  10882. # ICC 10 doesn't accept -KPIC any more.
  10883. lt_prog_compiler_wl_CXX='-Wl,'
  10884. lt_prog_compiler_pic_CXX='-fPIC'
  10885. lt_prog_compiler_static_CXX='-static'
  10886. ;;
  10887. pgCC* | pgcpp*)
  10888. # Portland Group C++ compiler
  10889. lt_prog_compiler_wl_CXX='-Wl,'
  10890. lt_prog_compiler_pic_CXX='-fpic'
  10891. lt_prog_compiler_static_CXX='-Bstatic'
  10892. ;;
  10893. cxx*)
  10894. # Compaq C++
  10895. # Make sure the PIC flag is empty. It appears that all Alpha
  10896. # Linux and Compaq Tru64 Unix objects are PIC.
  10897. lt_prog_compiler_pic_CXX=
  10898. lt_prog_compiler_static_CXX='-non_shared'
  10899. ;;
  10900. xlc* | xlC*)
  10901. # IBM XL 8.0 on PPC
  10902. lt_prog_compiler_wl_CXX='-Wl,'
  10903. lt_prog_compiler_pic_CXX='-qpic'
  10904. lt_prog_compiler_static_CXX='-qstaticlink'
  10905. ;;
  10906. *)
  10907. case `$CC -V 2>&1 | sed 5q` in
  10908. *Sun\ C*)
  10909. # Sun C++ 5.9
  10910. lt_prog_compiler_pic_CXX='-KPIC'
  10911. lt_prog_compiler_static_CXX='-Bstatic'
  10912. lt_prog_compiler_wl_CXX='-Qoption ld '
  10913. ;;
  10914. esac
  10915. ;;
  10916. esac
  10917. ;;
  10918. lynxos*)
  10919. ;;
  10920. m88k*)
  10921. ;;
  10922. mvs*)
  10923. case $cc_basename in
  10924. cxx*)
  10925. lt_prog_compiler_pic_CXX='-W c,exportall'
  10926. ;;
  10927. *)
  10928. ;;
  10929. esac
  10930. ;;
  10931. netbsd* | netbsdelf*-gnu)
  10932. ;;
  10933. *qnx* | *nto*)
  10934. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10935. # it will coredump.
  10936. lt_prog_compiler_pic_CXX='-fPIC -shared'
  10937. ;;
  10938. osf3* | osf4* | osf5*)
  10939. case $cc_basename in
  10940. KCC*)
  10941. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10942. ;;
  10943. RCC*)
  10944. # Rational C++ 2.4.1
  10945. lt_prog_compiler_pic_CXX='-pic'
  10946. ;;
  10947. cxx*)
  10948. # Digital/Compaq C++
  10949. lt_prog_compiler_wl_CXX='-Wl,'
  10950. # Make sure the PIC flag is empty. It appears that all Alpha
  10951. # Linux and Compaq Tru64 Unix objects are PIC.
  10952. lt_prog_compiler_pic_CXX=
  10953. lt_prog_compiler_static_CXX='-non_shared'
  10954. ;;
  10955. *)
  10956. ;;
  10957. esac
  10958. ;;
  10959. psos*)
  10960. ;;
  10961. solaris*)
  10962. case $cc_basename in
  10963. CC*)
  10964. # Sun C++ 4.2, 5.x and Centerline C++
  10965. lt_prog_compiler_pic_CXX='-KPIC'
  10966. lt_prog_compiler_static_CXX='-Bstatic'
  10967. lt_prog_compiler_wl_CXX='-Qoption ld '
  10968. ;;
  10969. gcx*)
  10970. # Green Hills C++ Compiler
  10971. lt_prog_compiler_pic_CXX='-PIC'
  10972. ;;
  10973. *)
  10974. ;;
  10975. esac
  10976. ;;
  10977. sunos4*)
  10978. case $cc_basename in
  10979. CC*)
  10980. # Sun C++ 4.x
  10981. lt_prog_compiler_pic_CXX='-pic'
  10982. lt_prog_compiler_static_CXX='-Bstatic'
  10983. ;;
  10984. lcc*)
  10985. # Lucid
  10986. lt_prog_compiler_pic_CXX='-pic'
  10987. ;;
  10988. *)
  10989. ;;
  10990. esac
  10991. ;;
  10992. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10993. case $cc_basename in
  10994. CC*)
  10995. lt_prog_compiler_wl_CXX='-Wl,'
  10996. lt_prog_compiler_pic_CXX='-KPIC'
  10997. lt_prog_compiler_static_CXX='-Bstatic'
  10998. ;;
  10999. esac
  11000. ;;
  11001. tandem*)
  11002. case $cc_basename in
  11003. NCC*)
  11004. # NonStop-UX NCC 3.20
  11005. lt_prog_compiler_pic_CXX='-KPIC'
  11006. ;;
  11007. *)
  11008. ;;
  11009. esac
  11010. ;;
  11011. vxworks*)
  11012. ;;
  11013. *)
  11014. lt_prog_compiler_can_build_shared_CXX=no
  11015. ;;
  11016. esac
  11017. fi
  11018. case $host_os in
  11019. # For platforms which do not support PIC, -DPIC is meaningless:
  11020. *djgpp*)
  11021. lt_prog_compiler_pic_CXX=
  11022. ;;
  11023. *)
  11024. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11025. ;;
  11026. esac
  11027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11028. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11029. #
  11030. # Check to make sure the PIC flag actually works.
  11031. #
  11032. if test -n "$lt_prog_compiler_pic_CXX"; then
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11034. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11035. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11036. $as_echo_n "(cached) " >&6
  11037. else
  11038. lt_cv_prog_compiler_pic_works_CXX=no
  11039. ac_outfile=conftest.$ac_objext
  11040. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11041. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11042. # Insert the option either (1) after the last *FLAGS variable, or
  11043. # (2) before a word containing "conftest.", or (3) at the end.
  11044. # Note that $ac_compile itself does not contain backslashes and begins
  11045. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11046. # The option is referenced via a variable to avoid confusing sed.
  11047. lt_compile=`echo "$ac_compile" | $SED \
  11048. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11049. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11050. -e 's:$: $lt_compiler_flag:'`
  11051. (eval echo "\"\$as_me:12778: $lt_compile\"" >&5)
  11052. (eval "$lt_compile" 2>conftest.err)
  11053. ac_status=$?
  11054. cat conftest.err >&5
  11055. echo "$as_me:12782: \$? = $ac_status" >&5
  11056. if (exit $ac_status) && test -s "$ac_outfile"; then
  11057. # The compiler can only warn and ignore the option if not recognized
  11058. # So say no if there are warnings other than the usual output.
  11059. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11060. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11061. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11062. lt_cv_prog_compiler_pic_works_CXX=yes
  11063. fi
  11064. fi
  11065. $RM conftest*
  11066. fi
  11067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11068. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11069. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11070. case $lt_prog_compiler_pic_CXX in
  11071. "" | " "*) ;;
  11072. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11073. esac
  11074. else
  11075. lt_prog_compiler_pic_CXX=
  11076. lt_prog_compiler_can_build_shared_CXX=no
  11077. fi
  11078. fi
  11079. #
  11080. # Check to make sure the static flag actually works.
  11081. #
  11082. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11084. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11085. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11086. $as_echo_n "(cached) " >&6
  11087. else
  11088. lt_cv_prog_compiler_static_works_CXX=no
  11089. save_LDFLAGS="$LDFLAGS"
  11090. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11091. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11092. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11093. # The linker can only warn and ignore the option if not recognized
  11094. # So say no if there are warnings
  11095. if test -s conftest.err; then
  11096. # Append any errors to the config.log.
  11097. cat conftest.err 1>&5
  11098. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11099. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11100. if diff conftest.exp conftest.er2 >/dev/null; then
  11101. lt_cv_prog_compiler_static_works_CXX=yes
  11102. fi
  11103. else
  11104. lt_cv_prog_compiler_static_works_CXX=yes
  11105. fi
  11106. fi
  11107. $RM -r conftest*
  11108. LDFLAGS="$save_LDFLAGS"
  11109. fi
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11111. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11112. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11113. :
  11114. else
  11115. lt_prog_compiler_static_CXX=
  11116. fi
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11118. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11119. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11120. $as_echo_n "(cached) " >&6
  11121. else
  11122. lt_cv_prog_compiler_c_o_CXX=no
  11123. $RM -r conftest 2>/dev/null
  11124. mkdir conftest
  11125. cd conftest
  11126. mkdir out
  11127. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11128. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11129. # Insert the option either (1) after the last *FLAGS variable, or
  11130. # (2) before a word containing "conftest.", or (3) at the end.
  11131. # Note that $ac_compile itself does not contain backslashes and begins
  11132. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11133. lt_compile=`echo "$ac_compile" | $SED \
  11134. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11135. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11136. -e 's:$: $lt_compiler_flag:'`
  11137. (eval echo "\"\$as_me:12877: $lt_compile\"" >&5)
  11138. (eval "$lt_compile" 2>out/conftest.err)
  11139. ac_status=$?
  11140. cat out/conftest.err >&5
  11141. echo "$as_me:12881: \$? = $ac_status" >&5
  11142. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11143. then
  11144. # The compiler can only warn and ignore the option if not recognized
  11145. # So say no if there are warnings
  11146. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11147. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11148. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11149. lt_cv_prog_compiler_c_o_CXX=yes
  11150. fi
  11151. fi
  11152. chmod u+w . 2>&5
  11153. $RM conftest*
  11154. # SGI C++ compiler will create directory out/ii_files/ for
  11155. # template instantiation
  11156. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11157. $RM out/* && rmdir out
  11158. cd ..
  11159. $RM -r conftest
  11160. $RM conftest*
  11161. fi
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11163. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11165. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11166. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11167. $as_echo_n "(cached) " >&6
  11168. else
  11169. lt_cv_prog_compiler_c_o_CXX=no
  11170. $RM -r conftest 2>/dev/null
  11171. mkdir conftest
  11172. cd conftest
  11173. mkdir out
  11174. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11175. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11176. # Insert the option either (1) after the last *FLAGS variable, or
  11177. # (2) before a word containing "conftest.", or (3) at the end.
  11178. # Note that $ac_compile itself does not contain backslashes and begins
  11179. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11180. lt_compile=`echo "$ac_compile" | $SED \
  11181. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11182. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11183. -e 's:$: $lt_compiler_flag:'`
  11184. (eval echo "\"\$as_me:12929: $lt_compile\"" >&5)
  11185. (eval "$lt_compile" 2>out/conftest.err)
  11186. ac_status=$?
  11187. cat out/conftest.err >&5
  11188. echo "$as_me:12933: \$? = $ac_status" >&5
  11189. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11190. then
  11191. # The compiler can only warn and ignore the option if not recognized
  11192. # So say no if there are warnings
  11193. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11194. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11195. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11196. lt_cv_prog_compiler_c_o_CXX=yes
  11197. fi
  11198. fi
  11199. chmod u+w . 2>&5
  11200. $RM conftest*
  11201. # SGI C++ compiler will create directory out/ii_files/ for
  11202. # template instantiation
  11203. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11204. $RM out/* && rmdir out
  11205. cd ..
  11206. $RM -r conftest
  11207. $RM conftest*
  11208. fi
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11210. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11211. hard_links="nottested"
  11212. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11213. # do not overwrite the value of need_locks provided by the user
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11215. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11216. hard_links=yes
  11217. $RM conftest*
  11218. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11219. touch conftest.a
  11220. ln conftest.a conftest.b 2>&5 || hard_links=no
  11221. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11223. $as_echo "$hard_links" >&6; }
  11224. if test "$hard_links" = no; then
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11226. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11227. need_locks=warn
  11228. fi
  11229. else
  11230. need_locks=no
  11231. fi
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11233. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11234. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11235. case $host_os in
  11236. aix[4-9]*)
  11237. # If we're using GNU nm, then we don't want the "-C" option.
  11238. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11239. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11240. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11241. else
  11242. 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'
  11243. fi
  11244. ;;
  11245. pw32*)
  11246. export_symbols_cmds_CXX="$ltdll_cmds"
  11247. ;;
  11248. cygwin* | mingw* | cegcc*)
  11249. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11250. ;;
  11251. linux* | k*bsd*-gnu)
  11252. link_all_deplibs_CXX=no
  11253. ;;
  11254. *)
  11255. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11256. ;;
  11257. esac
  11258. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11260. $as_echo "$ld_shlibs_CXX" >&6; }
  11261. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11262. with_gnu_ld_CXX=$with_gnu_ld
  11263. #
  11264. # Do we need to explicitly link libc?
  11265. #
  11266. case "x$archive_cmds_need_lc_CXX" in
  11267. x|xyes)
  11268. # Assume -lc should be added
  11269. archive_cmds_need_lc_CXX=yes
  11270. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11271. case $archive_cmds_CXX in
  11272. *'~'*)
  11273. # FIXME: we may have to deal with multi-command sequences.
  11274. ;;
  11275. '$CC '*)
  11276. # Test whether the compiler implicitly links with -lc since on some
  11277. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11278. # to ld, don't add -lc before -lgcc.
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11280. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11281. $RM conftest*
  11282. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11283. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11284. (eval $ac_compile) 2>&5
  11285. ac_status=$?
  11286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11287. test $ac_status = 0; } 2>conftest.err; then
  11288. soname=conftest
  11289. lib=conftest
  11290. libobjs=conftest.$ac_objext
  11291. deplibs=
  11292. wl=$lt_prog_compiler_wl_CXX
  11293. pic_flag=$lt_prog_compiler_pic_CXX
  11294. compiler_flags=-v
  11295. linker_flags=-v
  11296. verstring=
  11297. output_objdir=.
  11298. libname=conftest
  11299. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11300. allow_undefined_flag_CXX=
  11301. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11302. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11303. ac_status=$?
  11304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11305. test $ac_status = 0; }
  11306. then
  11307. archive_cmds_need_lc_CXX=no
  11308. else
  11309. archive_cmds_need_lc_CXX=yes
  11310. fi
  11311. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11312. else
  11313. cat conftest.err 1>&5
  11314. fi
  11315. $RM conftest*
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11317. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11318. ;;
  11319. esac
  11320. fi
  11321. ;;
  11322. esac
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11324. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11325. library_names_spec=
  11326. libname_spec='lib$name'
  11327. soname_spec=
  11328. shrext_cmds=".so"
  11329. postinstall_cmds=
  11330. postuninstall_cmds=
  11331. finish_cmds=
  11332. finish_eval=
  11333. shlibpath_var=
  11334. shlibpath_overrides_runpath=unknown
  11335. version_type=none
  11336. dynamic_linker="$host_os ld.so"
  11337. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11338. need_lib_prefix=unknown
  11339. hardcode_into_libs=no
  11340. # when you set need_version to no, make sure it does not cause -set_version
  11341. # flags to be left without arguments
  11342. need_version=unknown
  11343. case $host_os in
  11344. aix3*)
  11345. version_type=linux
  11346. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11347. shlibpath_var=LIBPATH
  11348. # AIX 3 has no versioning support, so we append a major version to the name.
  11349. soname_spec='${libname}${release}${shared_ext}$major'
  11350. ;;
  11351. aix[4-9]*)
  11352. version_type=linux
  11353. need_lib_prefix=no
  11354. need_version=no
  11355. hardcode_into_libs=yes
  11356. if test "$host_cpu" = ia64; then
  11357. # AIX 5 supports IA64
  11358. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11359. shlibpath_var=LD_LIBRARY_PATH
  11360. else
  11361. # With GCC up to 2.95.x, collect2 would create an import file
  11362. # for dependence libraries. The import file would start with
  11363. # the line `#! .'. This would cause the generated library to
  11364. # depend on `.', always an invalid library. This was fixed in
  11365. # development snapshots of GCC prior to 3.0.
  11366. case $host_os in
  11367. aix4 | aix4.[01] | aix4.[01].*)
  11368. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11369. echo ' yes '
  11370. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11371. :
  11372. else
  11373. can_build_shared=no
  11374. fi
  11375. ;;
  11376. esac
  11377. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11378. # soname into executable. Probably we can add versioning support to
  11379. # collect2, so additional links can be useful in future.
  11380. if test "$aix_use_runtimelinking" = yes; then
  11381. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11382. # instead of lib<name>.a to let people know that these are not
  11383. # typical AIX shared libraries.
  11384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11385. else
  11386. # We preserve .a as extension for shared libraries through AIX4.2
  11387. # and later when we are not doing run time linking.
  11388. library_names_spec='${libname}${release}.a $libname.a'
  11389. soname_spec='${libname}${release}${shared_ext}$major'
  11390. fi
  11391. shlibpath_var=LIBPATH
  11392. fi
  11393. ;;
  11394. amigaos*)
  11395. case $host_cpu in
  11396. powerpc)
  11397. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11398. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11400. ;;
  11401. m68k)
  11402. library_names_spec='$libname.ixlibrary $libname.a'
  11403. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11404. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11405. ;;
  11406. esac
  11407. ;;
  11408. beos*)
  11409. library_names_spec='${libname}${shared_ext}'
  11410. dynamic_linker="$host_os ld.so"
  11411. shlibpath_var=LIBRARY_PATH
  11412. ;;
  11413. bsdi[45]*)
  11414. version_type=linux
  11415. need_version=no
  11416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11417. soname_spec='${libname}${release}${shared_ext}$major'
  11418. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11419. shlibpath_var=LD_LIBRARY_PATH
  11420. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11421. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11422. # the default ld.so.conf also contains /usr/contrib/lib and
  11423. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11424. # libtool to hard-code these into programs
  11425. ;;
  11426. cygwin* | mingw* | pw32* | cegcc*)
  11427. version_type=windows
  11428. shrext_cmds=".dll"
  11429. need_version=no
  11430. need_lib_prefix=no
  11431. case $GCC,$host_os in
  11432. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11433. library_names_spec='$libname.dll.a'
  11434. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11435. postinstall_cmds='base_file=`basename \${file}`~
  11436. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11437. dldir=$destdir/`dirname \$dlpath`~
  11438. test -d \$dldir || mkdir -p \$dldir~
  11439. $install_prog $dir/$dlname \$dldir/$dlname~
  11440. chmod a+x \$dldir/$dlname~
  11441. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11442. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11443. fi'
  11444. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11445. dlpath=$dir/\$dldll~
  11446. $RM \$dlpath'
  11447. shlibpath_overrides_runpath=yes
  11448. case $host_os in
  11449. cygwin*)
  11450. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11451. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11452. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11453. ;;
  11454. mingw* | cegcc*)
  11455. # MinGW DLLs use traditional 'lib' prefix
  11456. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11457. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11458. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11459. # It is most probably a Windows format PATH printed by
  11460. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11461. # path with ; separators, and with drive letters. We can handle the
  11462. # drive letters (cygwin fileutils understands them), so leave them,
  11463. # especially as we might pass files found there to a mingw objdump,
  11464. # which wouldn't understand a cygwinified path. Ahh.
  11465. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11466. else
  11467. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11468. fi
  11469. ;;
  11470. pw32*)
  11471. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11472. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11473. ;;
  11474. esac
  11475. ;;
  11476. *)
  11477. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11478. ;;
  11479. esac
  11480. dynamic_linker='Win32 ld.exe'
  11481. # FIXME: first we should search . and the directory the executable is in
  11482. shlibpath_var=PATH
  11483. ;;
  11484. darwin* | rhapsody*)
  11485. dynamic_linker="$host_os dyld"
  11486. version_type=darwin
  11487. need_lib_prefix=no
  11488. need_version=no
  11489. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11490. soname_spec='${libname}${release}${major}$shared_ext'
  11491. shlibpath_overrides_runpath=yes
  11492. shlibpath_var=DYLD_LIBRARY_PATH
  11493. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11494. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11495. ;;
  11496. dgux*)
  11497. version_type=linux
  11498. need_lib_prefix=no
  11499. need_version=no
  11500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11501. soname_spec='${libname}${release}${shared_ext}$major'
  11502. shlibpath_var=LD_LIBRARY_PATH
  11503. ;;
  11504. freebsd1*)
  11505. dynamic_linker=no
  11506. ;;
  11507. freebsd* | dragonfly*)
  11508. # DragonFly does not have aout. When/if they implement a new
  11509. # versioning mechanism, adjust this.
  11510. if test -x /usr/bin/objformat; then
  11511. objformat=`/usr/bin/objformat`
  11512. else
  11513. case $host_os in
  11514. freebsd[123]*) objformat=aout ;;
  11515. *) objformat=elf ;;
  11516. esac
  11517. fi
  11518. version_type=freebsd-$objformat
  11519. case $version_type in
  11520. freebsd-elf*)
  11521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11522. need_version=no
  11523. need_lib_prefix=no
  11524. ;;
  11525. freebsd-*)
  11526. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11527. need_version=yes
  11528. ;;
  11529. esac
  11530. shlibpath_var=LD_LIBRARY_PATH
  11531. case $host_os in
  11532. freebsd2*)
  11533. shlibpath_overrides_runpath=yes
  11534. ;;
  11535. freebsd3.[01]* | freebsdelf3.[01]*)
  11536. shlibpath_overrides_runpath=yes
  11537. hardcode_into_libs=yes
  11538. ;;
  11539. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11540. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11541. shlibpath_overrides_runpath=no
  11542. hardcode_into_libs=yes
  11543. ;;
  11544. *) # from 4.6 on, and DragonFly
  11545. shlibpath_overrides_runpath=yes
  11546. hardcode_into_libs=yes
  11547. ;;
  11548. esac
  11549. ;;
  11550. gnu*)
  11551. version_type=linux
  11552. need_lib_prefix=no
  11553. need_version=no
  11554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11555. soname_spec='${libname}${release}${shared_ext}$major'
  11556. shlibpath_var=LD_LIBRARY_PATH
  11557. hardcode_into_libs=yes
  11558. ;;
  11559. hpux9* | hpux10* | hpux11*)
  11560. # Give a soname corresponding to the major version so that dld.sl refuses to
  11561. # link against other versions.
  11562. version_type=sunos
  11563. need_lib_prefix=no
  11564. need_version=no
  11565. case $host_cpu in
  11566. ia64*)
  11567. shrext_cmds='.so'
  11568. hardcode_into_libs=yes
  11569. dynamic_linker="$host_os dld.so"
  11570. shlibpath_var=LD_LIBRARY_PATH
  11571. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11573. soname_spec='${libname}${release}${shared_ext}$major'
  11574. if test "X$HPUX_IA64_MODE" = X32; then
  11575. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11576. else
  11577. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11578. fi
  11579. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11580. ;;
  11581. hppa*64*)
  11582. shrext_cmds='.sl'
  11583. hardcode_into_libs=yes
  11584. dynamic_linker="$host_os dld.sl"
  11585. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11586. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11588. soname_spec='${libname}${release}${shared_ext}$major'
  11589. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11590. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11591. ;;
  11592. *)
  11593. shrext_cmds='.sl'
  11594. dynamic_linker="$host_os dld.sl"
  11595. shlibpath_var=SHLIB_PATH
  11596. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11598. soname_spec='${libname}${release}${shared_ext}$major'
  11599. ;;
  11600. esac
  11601. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11602. postinstall_cmds='chmod 555 $lib'
  11603. ;;
  11604. interix[3-9]*)
  11605. version_type=linux
  11606. need_lib_prefix=no
  11607. need_version=no
  11608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11609. soname_spec='${libname}${release}${shared_ext}$major'
  11610. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11611. shlibpath_var=LD_LIBRARY_PATH
  11612. shlibpath_overrides_runpath=no
  11613. hardcode_into_libs=yes
  11614. ;;
  11615. irix5* | irix6* | nonstopux*)
  11616. case $host_os in
  11617. nonstopux*) version_type=nonstopux ;;
  11618. *)
  11619. if test "$lt_cv_prog_gnu_ld" = yes; then
  11620. version_type=linux
  11621. else
  11622. version_type=irix
  11623. fi ;;
  11624. esac
  11625. need_lib_prefix=no
  11626. need_version=no
  11627. soname_spec='${libname}${release}${shared_ext}$major'
  11628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11629. case $host_os in
  11630. irix5* | nonstopux*)
  11631. libsuff= shlibsuff=
  11632. ;;
  11633. *)
  11634. case $LD in # libtool.m4 will add one of these switches to LD
  11635. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11636. libsuff= shlibsuff= libmagic=32-bit;;
  11637. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11638. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11639. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11640. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11641. *) libsuff= shlibsuff= libmagic=never-match;;
  11642. esac
  11643. ;;
  11644. esac
  11645. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11646. shlibpath_overrides_runpath=no
  11647. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11648. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11649. hardcode_into_libs=yes
  11650. ;;
  11651. # No shared lib support for Linux oldld, aout, or coff.
  11652. linux*oldld* | linux*aout* | linux*coff*)
  11653. dynamic_linker=no
  11654. ;;
  11655. # This must be Linux ELF.
  11656. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11657. version_type=linux
  11658. need_lib_prefix=no
  11659. need_version=no
  11660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11661. soname_spec='${libname}${release}${shared_ext}$major'
  11662. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11663. shlibpath_var=LD_LIBRARY_PATH
  11664. shlibpath_overrides_runpath=no
  11665. # Some binutils ld are patched to set DT_RUNPATH
  11666. save_LDFLAGS=$LDFLAGS
  11667. save_libdir=$libdir
  11668. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11669. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11671. /* end confdefs.h. */
  11672. int
  11673. main ()
  11674. {
  11675. ;
  11676. return 0;
  11677. }
  11678. _ACEOF
  11679. if ac_fn_cxx_try_link "$LINENO"; then :
  11680. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11681. shlibpath_overrides_runpath=yes
  11682. fi
  11683. fi
  11684. rm -f core conftest.err conftest.$ac_objext \
  11685. conftest$ac_exeext conftest.$ac_ext
  11686. LDFLAGS=$save_LDFLAGS
  11687. libdir=$save_libdir
  11688. # This implies no fast_install, which is unacceptable.
  11689. # Some rework will be needed to allow for fast_install
  11690. # before this can be enabled.
  11691. hardcode_into_libs=yes
  11692. # Append ld.so.conf contents to the search path
  11693. if test -f /etc/ld.so.conf; then
  11694. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11695. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11696. fi
  11697. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11698. # powerpc, because MkLinux only supported shared libraries with the
  11699. # GNU dynamic linker. Since this was broken with cross compilers,
  11700. # most powerpc-linux boxes support dynamic linking these days and
  11701. # people can always --disable-shared, the test was removed, and we
  11702. # assume the GNU/Linux dynamic linker is in use.
  11703. dynamic_linker='GNU/Linux ld.so'
  11704. ;;
  11705. netbsdelf*-gnu)
  11706. version_type=linux
  11707. need_lib_prefix=no
  11708. need_version=no
  11709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11710. soname_spec='${libname}${release}${shared_ext}$major'
  11711. shlibpath_var=LD_LIBRARY_PATH
  11712. shlibpath_overrides_runpath=no
  11713. hardcode_into_libs=yes
  11714. dynamic_linker='NetBSD ld.elf_so'
  11715. ;;
  11716. netbsd*)
  11717. version_type=sunos
  11718. need_lib_prefix=no
  11719. need_version=no
  11720. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11722. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11723. dynamic_linker='NetBSD (a.out) ld.so'
  11724. else
  11725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11726. soname_spec='${libname}${release}${shared_ext}$major'
  11727. dynamic_linker='NetBSD ld.elf_so'
  11728. fi
  11729. shlibpath_var=LD_LIBRARY_PATH
  11730. shlibpath_overrides_runpath=yes
  11731. hardcode_into_libs=yes
  11732. ;;
  11733. newsos6)
  11734. version_type=linux
  11735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11736. shlibpath_var=LD_LIBRARY_PATH
  11737. shlibpath_overrides_runpath=yes
  11738. ;;
  11739. *nto* | *qnx*)
  11740. version_type=qnx
  11741. need_lib_prefix=no
  11742. need_version=no
  11743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11744. soname_spec='${libname}${release}${shared_ext}$major'
  11745. shlibpath_var=LD_LIBRARY_PATH
  11746. shlibpath_overrides_runpath=no
  11747. hardcode_into_libs=yes
  11748. dynamic_linker='ldqnx.so'
  11749. ;;
  11750. openbsd*)
  11751. version_type=sunos
  11752. sys_lib_dlsearch_path_spec="/usr/lib"
  11753. need_lib_prefix=no
  11754. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11755. case $host_os in
  11756. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11757. *) need_version=no ;;
  11758. esac
  11759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11760. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11761. shlibpath_var=LD_LIBRARY_PATH
  11762. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11763. case $host_os in
  11764. openbsd2.[89] | openbsd2.[89].*)
  11765. shlibpath_overrides_runpath=no
  11766. ;;
  11767. *)
  11768. shlibpath_overrides_runpath=yes
  11769. ;;
  11770. esac
  11771. else
  11772. shlibpath_overrides_runpath=yes
  11773. fi
  11774. ;;
  11775. os2*)
  11776. libname_spec='$name'
  11777. shrext_cmds=".dll"
  11778. need_lib_prefix=no
  11779. library_names_spec='$libname${shared_ext} $libname.a'
  11780. dynamic_linker='OS/2 ld.exe'
  11781. shlibpath_var=LIBPATH
  11782. ;;
  11783. osf3* | osf4* | osf5*)
  11784. version_type=osf
  11785. need_lib_prefix=no
  11786. need_version=no
  11787. soname_spec='${libname}${release}${shared_ext}$major'
  11788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11789. shlibpath_var=LD_LIBRARY_PATH
  11790. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11791. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11792. ;;
  11793. rdos*)
  11794. dynamic_linker=no
  11795. ;;
  11796. solaris*)
  11797. version_type=linux
  11798. need_lib_prefix=no
  11799. need_version=no
  11800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11801. soname_spec='${libname}${release}${shared_ext}$major'
  11802. shlibpath_var=LD_LIBRARY_PATH
  11803. shlibpath_overrides_runpath=yes
  11804. hardcode_into_libs=yes
  11805. # ldd complains unless libraries are executable
  11806. postinstall_cmds='chmod +x $lib'
  11807. ;;
  11808. sunos4*)
  11809. version_type=sunos
  11810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11811. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11812. shlibpath_var=LD_LIBRARY_PATH
  11813. shlibpath_overrides_runpath=yes
  11814. if test "$with_gnu_ld" = yes; then
  11815. need_lib_prefix=no
  11816. fi
  11817. need_version=yes
  11818. ;;
  11819. sysv4 | sysv4.3*)
  11820. version_type=linux
  11821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11822. soname_spec='${libname}${release}${shared_ext}$major'
  11823. shlibpath_var=LD_LIBRARY_PATH
  11824. case $host_vendor in
  11825. sni)
  11826. shlibpath_overrides_runpath=no
  11827. need_lib_prefix=no
  11828. runpath_var=LD_RUN_PATH
  11829. ;;
  11830. siemens)
  11831. need_lib_prefix=no
  11832. ;;
  11833. motorola)
  11834. need_lib_prefix=no
  11835. need_version=no
  11836. shlibpath_overrides_runpath=no
  11837. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11838. ;;
  11839. esac
  11840. ;;
  11841. sysv4*MP*)
  11842. if test -d /usr/nec ;then
  11843. version_type=linux
  11844. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11845. soname_spec='$libname${shared_ext}.$major'
  11846. shlibpath_var=LD_LIBRARY_PATH
  11847. fi
  11848. ;;
  11849. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11850. version_type=freebsd-elf
  11851. need_lib_prefix=no
  11852. need_version=no
  11853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11854. soname_spec='${libname}${release}${shared_ext}$major'
  11855. shlibpath_var=LD_LIBRARY_PATH
  11856. shlibpath_overrides_runpath=yes
  11857. hardcode_into_libs=yes
  11858. if test "$with_gnu_ld" = yes; then
  11859. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11860. else
  11861. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11862. case $host_os in
  11863. sco3.2v5*)
  11864. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11865. ;;
  11866. esac
  11867. fi
  11868. sys_lib_dlsearch_path_spec='/usr/lib'
  11869. ;;
  11870. tpf*)
  11871. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11872. version_type=linux
  11873. need_lib_prefix=no
  11874. need_version=no
  11875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11876. shlibpath_var=LD_LIBRARY_PATH
  11877. shlibpath_overrides_runpath=no
  11878. hardcode_into_libs=yes
  11879. ;;
  11880. uts4*)
  11881. version_type=linux
  11882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11883. soname_spec='${libname}${release}${shared_ext}$major'
  11884. shlibpath_var=LD_LIBRARY_PATH
  11885. ;;
  11886. *)
  11887. dynamic_linker=no
  11888. ;;
  11889. esac
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11891. $as_echo "$dynamic_linker" >&6; }
  11892. test "$dynamic_linker" = no && can_build_shared=no
  11893. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11894. if test "$GCC" = yes; then
  11895. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11896. fi
  11897. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11898. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11899. fi
  11900. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11901. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11902. fi
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11904. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11905. hardcode_action_CXX=
  11906. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  11907. test -n "$runpath_var_CXX" ||
  11908. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11909. # We can hardcode non-existent directories.
  11910. if test "$hardcode_direct_CXX" != no &&
  11911. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11912. # have to relink, otherwise we might link with an installed library
  11913. # when we should be linking with a yet-to-be-installed one
  11914. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11915. test "$hardcode_minus_L_CXX" != no; then
  11916. # Linking always hardcodes the temporary library directory.
  11917. hardcode_action_CXX=relink
  11918. else
  11919. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11920. hardcode_action_CXX=immediate
  11921. fi
  11922. else
  11923. # We cannot hardcode anything, or else we can only hardcode existing
  11924. # directories.
  11925. hardcode_action_CXX=unsupported
  11926. fi
  11927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  11928. $as_echo "$hardcode_action_CXX" >&6; }
  11929. if test "$hardcode_action_CXX" = relink ||
  11930. test "$inherit_rpath_CXX" = yes; then
  11931. # Fast installation is not supported
  11932. enable_fast_install=no
  11933. elif test "$shlibpath_overrides_runpath" = yes ||
  11934. test "$enable_shared" = no; then
  11935. # Fast installation is not necessary
  11936. enable_fast_install=needless
  11937. fi
  11938. fi # test -n "$compiler"
  11939. CC=$lt_save_CC
  11940. LDCXX=$LD
  11941. LD=$lt_save_LD
  11942. GCC=$lt_save_GCC
  11943. with_gnu_ld=$lt_save_with_gnu_ld
  11944. lt_cv_path_LDCXX=$lt_cv_path_LD
  11945. lt_cv_path_LD=$lt_save_path_LD
  11946. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11947. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11948. fi # test "$_lt_caught_CXX_error" != yes
  11949. ac_ext=c
  11950. ac_cpp='$CPP $CPPFLAGS'
  11951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11954. ac_config_commands="$ac_config_commands libtool"
  11955. # Only expand once:
  11956. ac_config_headers="$ac_config_headers config.h"
  11957. am__api_version='1.11'
  11958. # Find a good install program. We prefer a C program (faster),
  11959. # so one script is as good as another. But avoid the broken or
  11960. # incompatible versions:
  11961. # SysV /etc/install, /usr/sbin/install
  11962. # SunOS /usr/etc/install
  11963. # IRIX /sbin/install
  11964. # AIX /bin/install
  11965. # AmigaOS /C/install, which installs bootblocks on floppy discs
  11966. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  11967. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  11968. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11969. # OS/2's system install, which has a completely different semantic
  11970. # ./install, which can be erroneously created by make from ./install.sh.
  11971. # Reject install programs that cannot install multiple files.
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  11973. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  11974. if test -z "$INSTALL"; then
  11975. if test "${ac_cv_path_install+set}" = set; then :
  11976. $as_echo_n "(cached) " >&6
  11977. else
  11978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11979. for as_dir in $PATH
  11980. do
  11981. IFS=$as_save_IFS
  11982. test -z "$as_dir" && as_dir=.
  11983. # Account for people who put trailing slashes in PATH elements.
  11984. case $as_dir/ in #((
  11985. ./ | .// | /[cC]/* | \
  11986. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  11987. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  11988. /usr/ucb/* ) ;;
  11989. *)
  11990. # OSF1 and SCO ODT 3.0 have their own names for install.
  11991. # Don't use installbsd from OSF since it installs stuff as root
  11992. # by default.
  11993. for ac_prog in ginstall scoinst install; do
  11994. for ac_exec_ext in '' $ac_executable_extensions; do
  11995. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  11996. if test $ac_prog = install &&
  11997. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  11998. # AIX install. It has an incompatible calling convention.
  11999. :
  12000. elif test $ac_prog = install &&
  12001. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12002. # program-specific install script used by HP pwplus--don't use.
  12003. :
  12004. else
  12005. rm -rf conftest.one conftest.two conftest.dir
  12006. echo one > conftest.one
  12007. echo two > conftest.two
  12008. mkdir conftest.dir
  12009. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  12010. test -s conftest.one && test -s conftest.two &&
  12011. test -s conftest.dir/conftest.one &&
  12012. test -s conftest.dir/conftest.two
  12013. then
  12014. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12015. break 3
  12016. fi
  12017. fi
  12018. fi
  12019. done
  12020. done
  12021. ;;
  12022. esac
  12023. done
  12024. IFS=$as_save_IFS
  12025. rm -rf conftest.one conftest.two conftest.dir
  12026. fi
  12027. if test "${ac_cv_path_install+set}" = set; then
  12028. INSTALL=$ac_cv_path_install
  12029. else
  12030. # As a last resort, use the slow shell script. Don't cache a
  12031. # value for INSTALL within a source directory, because that will
  12032. # break other packages using the cache if that directory is
  12033. # removed, or if the value is a relative name.
  12034. INSTALL=$ac_install_sh
  12035. fi
  12036. fi
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12038. $as_echo "$INSTALL" >&6; }
  12039. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12040. # It thinks the first close brace ends the variable substitution.
  12041. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12042. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12043. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12045. $as_echo_n "checking whether build environment is sane... " >&6; }
  12046. # Just in case
  12047. sleep 1
  12048. echo timestamp > conftest.file
  12049. # Reject unsafe characters in $srcdir or the absolute working directory
  12050. # name. Accept space and tab only in the latter.
  12051. am_lf='
  12052. '
  12053. case `pwd` in
  12054. *[\\\"\#\$\&\'\`$am_lf]*)
  12055. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  12056. esac
  12057. case $srcdir in
  12058. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12059. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12060. esac
  12061. # Do `set' in a subshell so we don't clobber the current shell's
  12062. # arguments. Must try -L first in case configure is actually a
  12063. # symlink; some systems play weird games with the mod time of symlinks
  12064. # (eg FreeBSD returns the mod time of the symlink's containing
  12065. # directory).
  12066. if (
  12067. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12068. if test "$*" = "X"; then
  12069. # -L didn't work.
  12070. set X `ls -t "$srcdir/configure" conftest.file`
  12071. fi
  12072. rm -f conftest.file
  12073. if test "$*" != "X $srcdir/configure conftest.file" \
  12074. && test "$*" != "X conftest.file $srcdir/configure"; then
  12075. # If neither matched, then we have a broken ls. This can happen
  12076. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12077. # broken ls alias from the environment. This has actually
  12078. # happened. Such a system could not be considered "sane".
  12079. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  12080. alias in your environment" "$LINENO" 5
  12081. fi
  12082. test "$2" = conftest.file
  12083. )
  12084. then
  12085. # Ok.
  12086. :
  12087. else
  12088. as_fn_error "newly created file is older than distributed files!
  12089. Check your system clock" "$LINENO" 5
  12090. fi
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12092. $as_echo "yes" >&6; }
  12093. test "$program_prefix" != NONE &&
  12094. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12095. # Use a double $ so make ignores it.
  12096. test "$program_suffix" != NONE &&
  12097. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12098. # Double any \ or $.
  12099. # By default was `s,x,x', remove it if useless.
  12100. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12101. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12102. # expand $ac_aux_dir to an absolute path
  12103. am_aux_dir=`cd $ac_aux_dir && pwd`
  12104. if test x"${MISSING+set}" != xset; then
  12105. case $am_aux_dir in
  12106. *\ * | *\ *)
  12107. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12108. *)
  12109. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12110. esac
  12111. fi
  12112. # Use eval to expand $SHELL
  12113. if eval "$MISSING --run true"; then
  12114. am_missing_run="$MISSING --run "
  12115. else
  12116. am_missing_run=
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12118. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12119. fi
  12120. if test x"${install_sh}" != xset; then
  12121. case $am_aux_dir in
  12122. *\ * | *\ *)
  12123. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12124. *)
  12125. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12126. esac
  12127. fi
  12128. # Installed binaries are usually stripped using `strip' when the user
  12129. # run `make install-strip'. However `strip' might not be the right
  12130. # tool to use in cross-compilation environments, therefore Automake
  12131. # will honor the `STRIP' environment variable to overrule this program.
  12132. if test "$cross_compiling" != no; then
  12133. if test -n "$ac_tool_prefix"; then
  12134. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12135. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12137. $as_echo_n "checking for $ac_word... " >&6; }
  12138. if test "${ac_cv_prog_STRIP+set}" = set; then :
  12139. $as_echo_n "(cached) " >&6
  12140. else
  12141. if test -n "$STRIP"; then
  12142. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12143. else
  12144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12145. for as_dir in $PATH
  12146. do
  12147. IFS=$as_save_IFS
  12148. test -z "$as_dir" && as_dir=.
  12149. for ac_exec_ext in '' $ac_executable_extensions; do
  12150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12151. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12153. break 2
  12154. fi
  12155. done
  12156. done
  12157. IFS=$as_save_IFS
  12158. fi
  12159. fi
  12160. STRIP=$ac_cv_prog_STRIP
  12161. if test -n "$STRIP"; then
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12163. $as_echo "$STRIP" >&6; }
  12164. else
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12166. $as_echo "no" >&6; }
  12167. fi
  12168. fi
  12169. if test -z "$ac_cv_prog_STRIP"; then
  12170. ac_ct_STRIP=$STRIP
  12171. # Extract the first word of "strip", so it can be a program name with args.
  12172. set dummy strip; ac_word=$2
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12174. $as_echo_n "checking for $ac_word... " >&6; }
  12175. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  12176. $as_echo_n "(cached) " >&6
  12177. else
  12178. if test -n "$ac_ct_STRIP"; then
  12179. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12180. else
  12181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12182. for as_dir in $PATH
  12183. do
  12184. IFS=$as_save_IFS
  12185. test -z "$as_dir" && as_dir=.
  12186. for ac_exec_ext in '' $ac_executable_extensions; do
  12187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12188. ac_cv_prog_ac_ct_STRIP="strip"
  12189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12190. break 2
  12191. fi
  12192. done
  12193. done
  12194. IFS=$as_save_IFS
  12195. fi
  12196. fi
  12197. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12198. if test -n "$ac_ct_STRIP"; then
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12200. $as_echo "$ac_ct_STRIP" >&6; }
  12201. else
  12202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12203. $as_echo "no" >&6; }
  12204. fi
  12205. if test "x$ac_ct_STRIP" = x; then
  12206. STRIP=":"
  12207. else
  12208. case $cross_compiling:$ac_tool_warned in
  12209. yes:)
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12212. ac_tool_warned=yes ;;
  12213. esac
  12214. STRIP=$ac_ct_STRIP
  12215. fi
  12216. else
  12217. STRIP="$ac_cv_prog_STRIP"
  12218. fi
  12219. fi
  12220. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12222. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12223. if test -z "$MKDIR_P"; then
  12224. if test "${ac_cv_path_mkdir+set}" = set; then :
  12225. $as_echo_n "(cached) " >&6
  12226. else
  12227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12228. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12229. do
  12230. IFS=$as_save_IFS
  12231. test -z "$as_dir" && as_dir=.
  12232. for ac_prog in mkdir gmkdir; do
  12233. for ac_exec_ext in '' $ac_executable_extensions; do
  12234. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12235. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12236. 'mkdir (GNU coreutils) '* | \
  12237. 'mkdir (coreutils) '* | \
  12238. 'mkdir (fileutils) '4.1*)
  12239. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12240. break 3;;
  12241. esac
  12242. done
  12243. done
  12244. done
  12245. IFS=$as_save_IFS
  12246. fi
  12247. test -d ./--version && rmdir ./--version
  12248. if test "${ac_cv_path_mkdir+set}" = set; then
  12249. MKDIR_P="$ac_cv_path_mkdir -p"
  12250. else
  12251. # As a last resort, use the slow shell script. Don't cache a
  12252. # value for MKDIR_P within a source directory, because that will
  12253. # break other packages using the cache if that directory is
  12254. # removed, or if the value is a relative name.
  12255. MKDIR_P="$ac_install_sh -d"
  12256. fi
  12257. fi
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12259. $as_echo "$MKDIR_P" >&6; }
  12260. mkdir_p="$MKDIR_P"
  12261. case $mkdir_p in
  12262. [\\/$]* | ?:[\\/]*) ;;
  12263. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12264. esac
  12265. for ac_prog in gawk mawk nawk awk
  12266. do
  12267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12268. set dummy $ac_prog; ac_word=$2
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12270. $as_echo_n "checking for $ac_word... " >&6; }
  12271. if test "${ac_cv_prog_AWK+set}" = set; then :
  12272. $as_echo_n "(cached) " >&6
  12273. else
  12274. if test -n "$AWK"; then
  12275. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  12276. else
  12277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12278. for as_dir in $PATH
  12279. do
  12280. IFS=$as_save_IFS
  12281. test -z "$as_dir" && as_dir=.
  12282. for ac_exec_ext in '' $ac_executable_extensions; do
  12283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12284. ac_cv_prog_AWK="$ac_prog"
  12285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12286. break 2
  12287. fi
  12288. done
  12289. done
  12290. IFS=$as_save_IFS
  12291. fi
  12292. fi
  12293. AWK=$ac_cv_prog_AWK
  12294. if test -n "$AWK"; then
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  12296. $as_echo "$AWK" >&6; }
  12297. else
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12299. $as_echo "no" >&6; }
  12300. fi
  12301. test -n "$AWK" && break
  12302. done
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12304. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12305. set x ${MAKE-make}
  12306. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12307. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  12308. $as_echo_n "(cached) " >&6
  12309. else
  12310. cat >conftest.make <<\_ACEOF
  12311. SHELL = /bin/sh
  12312. all:
  12313. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12314. _ACEOF
  12315. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12316. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12317. *@@@%%%=?*=@@@%%%*)
  12318. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12319. *)
  12320. eval ac_cv_prog_make_${ac_make}_set=no;;
  12321. esac
  12322. rm -f conftest.make
  12323. fi
  12324. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12326. $as_echo "yes" >&6; }
  12327. SET_MAKE=
  12328. else
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12330. $as_echo "no" >&6; }
  12331. SET_MAKE="MAKE=${MAKE-make}"
  12332. fi
  12333. rm -rf .tst 2>/dev/null
  12334. mkdir .tst 2>/dev/null
  12335. if test -d .tst; then
  12336. am__leading_dot=.
  12337. else
  12338. am__leading_dot=_
  12339. fi
  12340. rmdir .tst 2>/dev/null
  12341. DEPDIR="${am__leading_dot}deps"
  12342. ac_config_commands="$ac_config_commands depfiles"
  12343. am_make=${MAKE-make}
  12344. cat > confinc << 'END'
  12345. am__doit:
  12346. @echo this is the am__doit target
  12347. .PHONY: am__doit
  12348. END
  12349. # If we don't find an include directive, just comment out the code.
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  12351. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  12352. am__include="#"
  12353. am__quote=
  12354. _am_result=none
  12355. # First try GNU make style include.
  12356. echo "include confinc" > confmf
  12357. # Ignore all kinds of additional output from `make'.
  12358. case `$am_make -s -f confmf 2> /dev/null` in #(
  12359. *the\ am__doit\ target*)
  12360. am__include=include
  12361. am__quote=
  12362. _am_result=GNU
  12363. ;;
  12364. esac
  12365. # Now try BSD make style include.
  12366. if test "$am__include" = "#"; then
  12367. echo '.include "confinc"' > confmf
  12368. case `$am_make -s -f confmf 2> /dev/null` in #(
  12369. *the\ am__doit\ target*)
  12370. am__include=.include
  12371. am__quote="\""
  12372. _am_result=BSD
  12373. ;;
  12374. esac
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  12377. $as_echo "$_am_result" >&6; }
  12378. rm -f confinc confmf
  12379. # Check whether --enable-dependency-tracking was given.
  12380. if test "${enable_dependency_tracking+set}" = set; then :
  12381. enableval=$enable_dependency_tracking;
  12382. fi
  12383. if test "x$enable_dependency_tracking" != xno; then
  12384. am_depcomp="$ac_aux_dir/depcomp"
  12385. AMDEPBACKSLASH='\'
  12386. fi
  12387. if test "x$enable_dependency_tracking" != xno; then
  12388. AMDEP_TRUE=
  12389. AMDEP_FALSE='#'
  12390. else
  12391. AMDEP_TRUE='#'
  12392. AMDEP_FALSE=
  12393. fi
  12394. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  12395. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  12396. # is not polluted with repeated "-I."
  12397. am__isrc=' -I$(srcdir)'
  12398. # test to see if srcdir already configured
  12399. if test -f $srcdir/config.status; then
  12400. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  12401. fi
  12402. fi
  12403. # test whether we have cygpath
  12404. if test -z "$CYGPATH_W"; then
  12405. if (cygpath --version) >/dev/null 2>/dev/null; then
  12406. CYGPATH_W='cygpath -w'
  12407. else
  12408. CYGPATH_W=echo
  12409. fi
  12410. fi
  12411. # Define the identity of the package.
  12412. PACKAGE='clish'
  12413. VERSION='0.7.4alpha'
  12414. cat >>confdefs.h <<_ACEOF
  12415. #define PACKAGE "$PACKAGE"
  12416. _ACEOF
  12417. cat >>confdefs.h <<_ACEOF
  12418. #define VERSION "$VERSION"
  12419. _ACEOF
  12420. # Some tools Automake needs.
  12421. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  12422. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  12423. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  12424. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  12425. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  12426. # We need awk for the "check" target. The system "awk" is bad on
  12427. # some platforms.
  12428. # Always define AMTAR for backward compatibility.
  12429. AMTAR=${AMTAR-"${am_missing_run}tar"}
  12430. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  12431. depcc="$CC" am_compiler_list=
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12433. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12434. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  12435. $as_echo_n "(cached) " >&6
  12436. else
  12437. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12438. # We make a subdir and do the tests there. Otherwise we can end up
  12439. # making bogus files that we don't know about and never remove. For
  12440. # instance it was reported that on HP-UX the gcc test will end up
  12441. # making a dummy file named `D' -- because `-MD' means `put the output
  12442. # in D'.
  12443. mkdir conftest.dir
  12444. # Copy depcomp to subdir because otherwise we won't find it if we're
  12445. # using a relative directory.
  12446. cp "$am_depcomp" conftest.dir
  12447. cd conftest.dir
  12448. # We will build objects and dependencies in a subdirectory because
  12449. # it helps to detect inapplicable dependency modes. For instance
  12450. # both Tru64's cc and ICC support -MD to output dependencies as a
  12451. # side effect of compilation, but ICC will put the dependencies in
  12452. # the current directory while Tru64 will put them in the object
  12453. # directory.
  12454. mkdir sub
  12455. am_cv_CC_dependencies_compiler_type=none
  12456. if test "$am_compiler_list" = ""; then
  12457. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12458. fi
  12459. am__universal=false
  12460. case " $depcc " in #(
  12461. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12462. esac
  12463. for depmode in $am_compiler_list; do
  12464. # Setup a source with many dependencies, because some compilers
  12465. # like to wrap large dependency lists on column 80 (with \), and
  12466. # we should not choose a depcomp mode which is confused by this.
  12467. #
  12468. # We need to recreate these files for each test, as the compiler may
  12469. # overwrite some of them when testing with obscure command lines.
  12470. # This happens at least with the AIX C compiler.
  12471. : > sub/conftest.c
  12472. for i in 1 2 3 4 5 6; do
  12473. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12474. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12475. # Solaris 8's {/usr,}/bin/sh.
  12476. touch sub/conftst$i.h
  12477. done
  12478. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12479. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12480. # mode. It turns out that the SunPro C++ compiler does not properly
  12481. # handle `-M -o', and we need to detect this. Also, some Intel
  12482. # versions had trouble with output in subdirs
  12483. am__obj=sub/conftest.${OBJEXT-o}
  12484. am__minus_obj="-o $am__obj"
  12485. case $depmode in
  12486. gcc)
  12487. # This depmode causes a compiler race in universal mode.
  12488. test "$am__universal" = false || continue
  12489. ;;
  12490. nosideeffect)
  12491. # after this tag, mechanisms are not by side-effect, so they'll
  12492. # only be used when explicitly requested
  12493. if test "x$enable_dependency_tracking" = xyes; then
  12494. continue
  12495. else
  12496. break
  12497. fi
  12498. ;;
  12499. msvisualcpp | msvcmsys)
  12500. # This compiler won't grok `-c -o', but also, the minuso test has
  12501. # not run yet. These depmodes are late enough in the game, and
  12502. # so weak that their functioning should not be impacted.
  12503. am__obj=conftest.${OBJEXT-o}
  12504. am__minus_obj=
  12505. ;;
  12506. none) break ;;
  12507. esac
  12508. if depmode=$depmode \
  12509. source=sub/conftest.c object=$am__obj \
  12510. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12511. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12512. >/dev/null 2>conftest.err &&
  12513. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12514. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12515. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12516. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12517. # icc doesn't choke on unknown options, it will just issue warnings
  12518. # or remarks (even with -Werror). So we grep stderr for any message
  12519. # that says an option was ignored or not supported.
  12520. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12521. # icc: Command line warning: ignoring option '-M'; no argument required
  12522. # The diagnosis changed in icc 8.0:
  12523. # icc: Command line remark: option '-MP' not supported
  12524. if (grep 'ignoring option' conftest.err ||
  12525. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12526. am_cv_CC_dependencies_compiler_type=$depmode
  12527. break
  12528. fi
  12529. fi
  12530. done
  12531. cd ..
  12532. rm -rf conftest.dir
  12533. else
  12534. am_cv_CC_dependencies_compiler_type=none
  12535. fi
  12536. fi
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12538. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12539. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12540. if
  12541. test "x$enable_dependency_tracking" != xno \
  12542. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12543. am__fastdepCC_TRUE=
  12544. am__fastdepCC_FALSE='#'
  12545. else
  12546. am__fastdepCC_TRUE='#'
  12547. am__fastdepCC_FALSE=
  12548. fi
  12549. depcc="$CXX" am_compiler_list=
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12551. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12552. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  12553. $as_echo_n "(cached) " >&6
  12554. else
  12555. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12556. # We make a subdir and do the tests there. Otherwise we can end up
  12557. # making bogus files that we don't know about and never remove. For
  12558. # instance it was reported that on HP-UX the gcc test will end up
  12559. # making a dummy file named `D' -- because `-MD' means `put the output
  12560. # in D'.
  12561. mkdir conftest.dir
  12562. # Copy depcomp to subdir because otherwise we won't find it if we're
  12563. # using a relative directory.
  12564. cp "$am_depcomp" conftest.dir
  12565. cd conftest.dir
  12566. # We will build objects and dependencies in a subdirectory because
  12567. # it helps to detect inapplicable dependency modes. For instance
  12568. # both Tru64's cc and ICC support -MD to output dependencies as a
  12569. # side effect of compilation, but ICC will put the dependencies in
  12570. # the current directory while Tru64 will put them in the object
  12571. # directory.
  12572. mkdir sub
  12573. am_cv_CXX_dependencies_compiler_type=none
  12574. if test "$am_compiler_list" = ""; then
  12575. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12576. fi
  12577. am__universal=false
  12578. case " $depcc " in #(
  12579. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12580. esac
  12581. for depmode in $am_compiler_list; do
  12582. # Setup a source with many dependencies, because some compilers
  12583. # like to wrap large dependency lists on column 80 (with \), and
  12584. # we should not choose a depcomp mode which is confused by this.
  12585. #
  12586. # We need to recreate these files for each test, as the compiler may
  12587. # overwrite some of them when testing with obscure command lines.
  12588. # This happens at least with the AIX C compiler.
  12589. : > sub/conftest.c
  12590. for i in 1 2 3 4 5 6; do
  12591. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12592. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12593. # Solaris 8's {/usr,}/bin/sh.
  12594. touch sub/conftst$i.h
  12595. done
  12596. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12597. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12598. # mode. It turns out that the SunPro C++ compiler does not properly
  12599. # handle `-M -o', and we need to detect this. Also, some Intel
  12600. # versions had trouble with output in subdirs
  12601. am__obj=sub/conftest.${OBJEXT-o}
  12602. am__minus_obj="-o $am__obj"
  12603. case $depmode in
  12604. gcc)
  12605. # This depmode causes a compiler race in universal mode.
  12606. test "$am__universal" = false || continue
  12607. ;;
  12608. nosideeffect)
  12609. # after this tag, mechanisms are not by side-effect, so they'll
  12610. # only be used when explicitly requested
  12611. if test "x$enable_dependency_tracking" = xyes; then
  12612. continue
  12613. else
  12614. break
  12615. fi
  12616. ;;
  12617. msvisualcpp | msvcmsys)
  12618. # This compiler won't grok `-c -o', but also, the minuso test has
  12619. # not run yet. These depmodes are late enough in the game, and
  12620. # so weak that their functioning should not be impacted.
  12621. am__obj=conftest.${OBJEXT-o}
  12622. am__minus_obj=
  12623. ;;
  12624. none) break ;;
  12625. esac
  12626. if depmode=$depmode \
  12627. source=sub/conftest.c object=$am__obj \
  12628. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12629. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12630. >/dev/null 2>conftest.err &&
  12631. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12632. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12633. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12634. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12635. # icc doesn't choke on unknown options, it will just issue warnings
  12636. # or remarks (even with -Werror). So we grep stderr for any message
  12637. # that says an option was ignored or not supported.
  12638. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12639. # icc: Command line warning: ignoring option '-M'; no argument required
  12640. # The diagnosis changed in icc 8.0:
  12641. # icc: Command line remark: option '-MP' not supported
  12642. if (grep 'ignoring option' conftest.err ||
  12643. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12644. am_cv_CXX_dependencies_compiler_type=$depmode
  12645. break
  12646. fi
  12647. fi
  12648. done
  12649. cd ..
  12650. rm -rf conftest.dir
  12651. else
  12652. am_cv_CXX_dependencies_compiler_type=none
  12653. fi
  12654. fi
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12656. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12657. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12658. if
  12659. test "x$enable_dependency_tracking" != xno \
  12660. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12661. am__fastdepCXX_TRUE=
  12662. am__fastdepCXX_FALSE='#'
  12663. else
  12664. am__fastdepCXX_TRUE='#'
  12665. am__fastdepCXX_FALSE=
  12666. fi
  12667. if test "x$CC" != xcc; then
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  12669. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  12670. else
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  12672. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  12673. fi
  12674. set dummy $CC; ac_cc=`$as_echo "$2" |
  12675. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12676. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  12677. $as_echo_n "(cached) " >&6
  12678. else
  12679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12680. /* end confdefs.h. */
  12681. int
  12682. main ()
  12683. {
  12684. ;
  12685. return 0;
  12686. }
  12687. _ACEOF
  12688. # Make sure it works both with $CC and with simple cc.
  12689. # We do the test twice because some compilers refuse to overwrite an
  12690. # existing .o file with -o, though they will create one.
  12691. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12692. rm -f conftest2.*
  12693. if { { case "(($ac_try" in
  12694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12695. *) ac_try_echo=$ac_try;;
  12696. esac
  12697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12698. $as_echo "$ac_try_echo"; } >&5
  12699. (eval "$ac_try") 2>&5
  12700. ac_status=$?
  12701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12702. test $ac_status = 0; } &&
  12703. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12705. *) ac_try_echo=$ac_try;;
  12706. esac
  12707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12708. $as_echo "$ac_try_echo"; } >&5
  12709. (eval "$ac_try") 2>&5
  12710. ac_status=$?
  12711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12712. test $ac_status = 0; };
  12713. then
  12714. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  12715. if test "x$CC" != xcc; then
  12716. # Test first that cc exists at all.
  12717. if { ac_try='cc -c conftest.$ac_ext >&5'
  12718. { { case "(($ac_try" in
  12719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12720. *) ac_try_echo=$ac_try;;
  12721. esac
  12722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12723. $as_echo "$ac_try_echo"; } >&5
  12724. (eval "$ac_try") 2>&5
  12725. ac_status=$?
  12726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12727. test $ac_status = 0; }; }; then
  12728. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  12729. rm -f conftest2.*
  12730. if { { case "(($ac_try" in
  12731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12732. *) ac_try_echo=$ac_try;;
  12733. esac
  12734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12735. $as_echo "$ac_try_echo"; } >&5
  12736. (eval "$ac_try") 2>&5
  12737. ac_status=$?
  12738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12739. test $ac_status = 0; } &&
  12740. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  12741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12742. *) ac_try_echo=$ac_try;;
  12743. esac
  12744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12745. $as_echo "$ac_try_echo"; } >&5
  12746. (eval "$ac_try") 2>&5
  12747. ac_status=$?
  12748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12749. test $ac_status = 0; };
  12750. then
  12751. # cc works too.
  12752. :
  12753. else
  12754. # cc exists but doesn't like -o.
  12755. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12756. fi
  12757. fi
  12758. fi
  12759. else
  12760. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  12761. fi
  12762. rm -f core conftest*
  12763. fi
  12764. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12766. $as_echo "yes" >&6; }
  12767. else
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12769. $as_echo "no" >&6; }
  12770. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  12771. fi
  12772. # FIXME: we rely on the cache variable name because
  12773. # there is no other way.
  12774. set dummy $CC
  12775. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  12776. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  12777. if test "$am_t" != yes; then
  12778. # Losing compiler, so override with the script.
  12779. # FIXME: It is wrong to rewrite CC.
  12780. # But if we don't then we get into trouble of one sort or another.
  12781. # A longer-term fix would be to have automake use am__CC in this case,
  12782. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12783. CC="$am_aux_dir/compile $CC"
  12784. fi
  12785. # needed to handle 64-bit architecture
  12786. # The cast to long int works around a bug in the HP C Compiler
  12787. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12788. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12789. # This bug is HP SR number 8606223364.
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12791. $as_echo_n "checking size of int... " >&6; }
  12792. if test "${ac_cv_sizeof_int+set}" = set; then :
  12793. $as_echo_n "(cached) " >&6
  12794. else
  12795. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12796. else
  12797. if test "$ac_cv_type_int" = yes; then
  12798. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12799. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12800. { as_fn_set_status 77
  12801. as_fn_error "cannot compute sizeof (int)
  12802. See \`config.log' for more details." "$LINENO" 5; }; }
  12803. else
  12804. ac_cv_sizeof_int=0
  12805. fi
  12806. fi
  12807. fi
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12809. $as_echo "$ac_cv_sizeof_int" >&6; }
  12810. cat >>confdefs.h <<_ACEOF
  12811. #define SIZEOF_INT $ac_cv_sizeof_int
  12812. _ACEOF
  12813. # The cast to long int works around a bug in the HP C Compiler
  12814. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12815. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12816. # This bug is HP SR number 8606223364.
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12818. $as_echo_n "checking size of long... " >&6; }
  12819. if test "${ac_cv_sizeof_long+set}" = set; then :
  12820. $as_echo_n "(cached) " >&6
  12821. else
  12822. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12823. else
  12824. if test "$ac_cv_type_long" = yes; then
  12825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12827. { as_fn_set_status 77
  12828. as_fn_error "cannot compute sizeof (long)
  12829. See \`config.log' for more details." "$LINENO" 5; }; }
  12830. else
  12831. ac_cv_sizeof_long=0
  12832. fi
  12833. fi
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12836. $as_echo "$ac_cv_sizeof_long" >&6; }
  12837. cat >>confdefs.h <<_ACEOF
  12838. #define SIZEOF_LONG $ac_cv_sizeof_long
  12839. _ACEOF
  12840. # The cast to long int works around a bug in the HP C Compiler
  12841. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12842. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12843. # This bug is HP SR number 8606223364.
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12845. $as_echo_n "checking size of size_t... " >&6; }
  12846. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  12847. $as_echo_n "(cached) " >&6
  12848. else
  12849. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12850. else
  12851. if test "$ac_cv_type_size_t" = yes; then
  12852. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12854. { as_fn_set_status 77
  12855. as_fn_error "cannot compute sizeof (size_t)
  12856. See \`config.log' for more details." "$LINENO" 5; }; }
  12857. else
  12858. ac_cv_sizeof_size_t=0
  12859. fi
  12860. fi
  12861. fi
  12862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12863. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12864. cat >>confdefs.h <<_ACEOF
  12865. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12866. _ACEOF
  12867. #------------------------------------------------------------------------
  12868. # Handle the --prefix=... option
  12869. #------------------------------------------------------------------------
  12870. if test "${prefix}" = "NONE"; then
  12871. prefix=/usr/local
  12872. fi
  12873. if test "${exec_prefix}" = "NONE"; then
  12874. exec_prefix=$prefix
  12875. fi
  12876. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  12877. eval libdir="$libdir"
  12878. ################################
  12879. # Deal with debugging options
  12880. ################################
  12881. # Check whether --enable-debug was given.
  12882. if test "${enable_debug+set}" = set; then :
  12883. enableval=$enable_debug;
  12884. else
  12885. enable_debug=no
  12886. fi
  12887. if test x$enable_debug = xyes; then
  12888. DEBUG_TRUE=
  12889. DEBUG_FALSE='#'
  12890. else
  12891. DEBUG_TRUE='#'
  12892. DEBUG_FALSE=
  12893. fi
  12894. ################################
  12895. # Check for the LUB library
  12896. ################################
  12897. LUB_LIBS="-llub"
  12898. LUB_CFLAGS=""
  12899. if test x$LUB_LIBS = x; then
  12900. as_fn_error "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  12901. fi
  12902. ################################
  12903. # Check for the CLICONF library
  12904. ################################
  12905. CLICONF_LIBS="-lcliconf"
  12906. CLICONF_CFLAGS=""
  12907. if test x$CLICONF_LIBS = x; then
  12908. as_fn_error "Cannot find the \"CLI config\" library" "$LINENO" 5
  12909. fi
  12910. ################################
  12911. # Check for the TINYRL library
  12912. ################################
  12913. TINYRL_LIBS="-ltinyrl"
  12914. TINYRL_CFLAGS=""
  12915. if test x$TINYRL_LIBS = x; then
  12916. as_fn_error "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  12917. fi
  12918. ################################
  12919. # Check for the TINYXML library
  12920. ################################
  12921. TINYXML_LIBS="-ltinyxml"
  12922. TINYXML_CXXFLAGS="-std=gnu++98"
  12923. if test x$TINYXML_LIBS = x; then
  12924. as_fn_error "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  12925. fi
  12926. ################################
  12927. # Check for the PTHREAD library
  12928. ################################
  12929. # Check whether --with-pthread was given.
  12930. if test "${with_pthread+set}" = set; then :
  12931. withval=$with_pthread;
  12932. fi
  12933. for ac_header in pthread.h
  12934. do :
  12935. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  12936. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  12937. cat >>confdefs.h <<_ACEOF
  12938. #define HAVE_PTHREAD_H 1
  12939. _ACEOF
  12940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12941. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12942. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  12943. $as_echo_n "(cached) " >&6
  12944. else
  12945. ac_check_lib_save_LIBS=$LIBS
  12946. LIBS="-lpthread $LIBS"
  12947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12948. /* end confdefs.h. */
  12949. /* Override any GCC internal prototype to avoid an error.
  12950. Use char because int might match the return type of a GCC
  12951. builtin and then its argument prototype would still apply. */
  12952. #ifdef __cplusplus
  12953. extern "C"
  12954. #endif
  12955. char pthread_create ();
  12956. int
  12957. main ()
  12958. {
  12959. return pthread_create ();
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_c_try_link "$LINENO"; then :
  12965. ac_cv_lib_pthread_pthread_create=yes
  12966. else
  12967. ac_cv_lib_pthread_pthread_create=no
  12968. fi
  12969. rm -f core conftest.err conftest.$ac_objext \
  12970. conftest$ac_exeext conftest.$ac_ext
  12971. LIBS=$ac_check_lib_save_LIBS
  12972. fi
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12974. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12975. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  12976. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  12977. if test x$with_pthread = x; then
  12978. PTHREAD_LIBS="-lpthread"
  12979. else
  12980. PTHREAD_CFLAGS="-I$with_pthread/include"
  12981. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  12982. fi
  12983. fi
  12984. fi
  12985. done
  12986. if test x$PTHREAD_LIBS = x; then
  12987. as_fn_error "Cannot find the POSIX threads library" "$LINENO" 5
  12988. fi
  12989. ################################
  12990. # Check for the RT library
  12991. ################################
  12992. # Check whether --with-rt was given.
  12993. if test "${with_rt+set}" = set; then :
  12994. withval=$with_rt;
  12995. fi
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  12997. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  12998. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  12999. $as_echo_n "(cached) " >&6
  13000. else
  13001. ac_check_lib_save_LIBS=$LIBS
  13002. LIBS="-lrt $LIBS"
  13003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13004. /* end confdefs.h. */
  13005. /* Override any GCC internal prototype to avoid an error.
  13006. Use char because int might match the return type of a GCC
  13007. builtin and then its argument prototype would still apply. */
  13008. #ifdef __cplusplus
  13009. extern "C"
  13010. #endif
  13011. char clock_gettime ();
  13012. int
  13013. main ()
  13014. {
  13015. return clock_gettime ();
  13016. ;
  13017. return 0;
  13018. }
  13019. _ACEOF
  13020. if ac_fn_c_try_link "$LINENO"; then :
  13021. ac_cv_lib_rt_clock_gettime=yes
  13022. else
  13023. ac_cv_lib_rt_clock_gettime=no
  13024. fi
  13025. rm -f core conftest.err conftest.$ac_objext \
  13026. conftest$ac_exeext conftest.$ac_ext
  13027. LIBS=$ac_check_lib_save_LIBS
  13028. fi
  13029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13030. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13031. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13032. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13033. if test x$with_rt = x; then
  13034. RT_LIBS="-lrt"
  13035. else
  13036. RT_CFLAGS="-I$with_rt/include"
  13037. RT_LIBS="-L$with_rt/lib -lrt"
  13038. fi
  13039. fi
  13040. ################################
  13041. # Check for the TCL library
  13042. ################################
  13043. TCL_CONFIG=${libdir}/tclConfig.sh
  13044. # Check whether --with-tcl was given.
  13045. if test "${with_tcl+set}" = set; then :
  13046. withval=$with_tcl;
  13047. fi
  13048. if test -e $TCL_CONFIG; then
  13049. . ${TCL_CONFIG}; # get TCL_VERSION
  13050. for ac_header in tcl.h
  13051. do :
  13052. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13053. if test "x$ac_cv_header_tcl_h" = x""yes; then :
  13054. cat >>confdefs.h <<_ACEOF
  13055. #define HAVE_TCL_H 1
  13056. _ACEOF
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl" >&5
  13058. $as_echo_n "checking for Tcl_CreateInterp in -ltcl... " >&6; }
  13059. if test "${ac_cv_lib_tcl_Tcl_CreateInterp+set}" = set; then :
  13060. $as_echo_n "(cached) " >&6
  13061. else
  13062. ac_check_lib_save_LIBS=$LIBS
  13063. LIBS="-ltcl $LIBS"
  13064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13065. /* end confdefs.h. */
  13066. /* Override any GCC internal prototype to avoid an error.
  13067. Use char because int might match the return type of a GCC
  13068. builtin and then its argument prototype would still apply. */
  13069. #ifdef __cplusplus
  13070. extern "C"
  13071. #endif
  13072. char Tcl_CreateInterp ();
  13073. int
  13074. main ()
  13075. {
  13076. return Tcl_CreateInterp ();
  13077. ;
  13078. return 0;
  13079. }
  13080. _ACEOF
  13081. if ac_fn_c_try_link "$LINENO"; then :
  13082. ac_cv_lib_tcl_Tcl_CreateInterp=yes
  13083. else
  13084. ac_cv_lib_tcl_Tcl_CreateInterp=no
  13085. fi
  13086. rm -f core conftest.err conftest.$ac_objext \
  13087. conftest$ac_exeext conftest.$ac_ext
  13088. LIBS=$ac_check_lib_save_LIBS
  13089. fi
  13090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateInterp" >&5
  13091. $as_echo "$ac_cv_lib_tcl_Tcl_CreateInterp" >&6; }
  13092. if test "x$ac_cv_lib_tcl_Tcl_CreateInterp" = x""yes; then :
  13093. if test x$with_tcl = x; then
  13094. TCL_LIBS="-ltcl"
  13095. else
  13096. TCL_CFLAGS="-I${TCL_DIR}/include"
  13097. TCL_LIBS="-L${TCL_DIR}/lib -ltcl"
  13098. fi
  13099. fi
  13100. fi
  13101. done
  13102. if test x$TCL_LIBS != x; then
  13103. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13104. fi
  13105. fi
  13106. ################################
  13107. # Check for inclusion of lub_heap
  13108. ################################
  13109. # Check whether --enable-lubheap was given.
  13110. if test "${enable_lubheap+set}" = set; then :
  13111. enableval=$enable_lubheap;
  13112. else
  13113. enable_lubheap=no
  13114. fi
  13115. if test x$enable_lubheap = xyes; then
  13116. LUBHEAP_TRUE=
  13117. LUBHEAP_FALSE='#'
  13118. else
  13119. LUBHEAP_TRUE='#'
  13120. LUBHEAP_FALSE=
  13121. fi
  13122. if test x$enable_lubheap = xyes; then
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13124. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13125. LUBHEAP_LIBS="-llubheap"
  13126. LUBHEAP_CFLAGS=""
  13127. if test x$LUBHEAP_LIBS = x; then
  13128. as_fn_error "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13129. fi
  13130. fi
  13131. ################################
  13132. # Check for linkage with GPL libraries
  13133. ################################
  13134. # Check whether --enable-gpl was given.
  13135. if test "${enable_gpl+set}" = set; then :
  13136. enableval=$enable_gpl;
  13137. else
  13138. enable_gpl=yes
  13139. fi
  13140. if test x$enable_gpl = xyes; then
  13141. ################################
  13142. # Check for BFD library
  13143. ################################
  13144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13145. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13146. for ac_header in bfd.h
  13147. do :
  13148. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13149. if test "x$ac_cv_header_bfd_h" = x""yes; then :
  13150. cat >>confdefs.h <<_ACEOF
  13151. #define HAVE_BFD_H 1
  13152. _ACEOF
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13154. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13155. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then :
  13156. $as_echo_n "(cached) " >&6
  13157. else
  13158. ac_check_lib_save_LIBS=$LIBS
  13159. LIBS="-lbfd $LIBS"
  13160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13161. /* end confdefs.h. */
  13162. /* Override any GCC internal prototype to avoid an error.
  13163. Use char because int might match the return type of a GCC
  13164. builtin and then its argument prototype would still apply. */
  13165. #ifdef __cplusplus
  13166. extern "C"
  13167. #endif
  13168. char bfd_init ();
  13169. int
  13170. main ()
  13171. {
  13172. return bfd_init ();
  13173. ;
  13174. return 0;
  13175. }
  13176. _ACEOF
  13177. if ac_fn_c_try_link "$LINENO"; then :
  13178. ac_cv_lib_bfd_bfd_init=yes
  13179. else
  13180. ac_cv_lib_bfd_bfd_init=no
  13181. fi
  13182. rm -f core conftest.err conftest.$ac_objext \
  13183. conftest$ac_exeext conftest.$ac_ext
  13184. LIBS=$ac_check_lib_save_LIBS
  13185. fi
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13187. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13188. if test "x$ac_cv_lib_bfd_bfd_init" = x""yes; then :
  13189. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13190. BFD_LIBS="-lbfd -liberty"
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13192. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13193. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then :
  13194. $as_echo_n "(cached) " >&6
  13195. else
  13196. ac_check_lib_save_LIBS=$LIBS
  13197. LIBS="-lintl $LIBS"
  13198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13199. /* end confdefs.h. */
  13200. /* Override any GCC internal prototype to avoid an error.
  13201. Use char because int might match the return type of a GCC
  13202. builtin and then its argument prototype would still apply. */
  13203. #ifdef __cplusplus
  13204. extern "C"
  13205. #endif
  13206. char libintl_dgettext ();
  13207. int
  13208. main ()
  13209. {
  13210. return libintl_dgettext ();
  13211. ;
  13212. return 0;
  13213. }
  13214. _ACEOF
  13215. if ac_fn_c_try_link "$LINENO"; then :
  13216. ac_cv_lib_intl_libintl_dgettext=yes
  13217. else
  13218. ac_cv_lib_intl_libintl_dgettext=no
  13219. fi
  13220. rm -f core conftest.err conftest.$ac_objext \
  13221. conftest$ac_exeext conftest.$ac_ext
  13222. LIBS=$ac_check_lib_save_LIBS
  13223. fi
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13225. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13226. if test "x$ac_cv_lib_intl_libintl_dgettext" = x""yes; then :
  13227. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13228. BFD_LIBS="$BFD_LIBS -lintl"
  13229. fi
  13230. fi
  13231. fi
  13232. done
  13233. else
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13235. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13236. fi
  13237. ac_config_files="$ac_config_files Makefile"
  13238. cat >confcache <<\_ACEOF
  13239. # This file is a shell script that caches the results of configure
  13240. # tests run on this system so they can be shared between configure
  13241. # scripts and configure runs, see configure's option --config-cache.
  13242. # It is not useful on other systems. If it contains results you don't
  13243. # want to keep, you may remove or edit it.
  13244. #
  13245. # config.status only pays attention to the cache file if you give it
  13246. # the --recheck option to rerun configure.
  13247. #
  13248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13250. # following values.
  13251. _ACEOF
  13252. # The following way of writing the cache mishandles newlines in values,
  13253. # but we know of no workaround that is simple, portable, and efficient.
  13254. # So, we kill variables containing newlines.
  13255. # Ultrix sh set writes to stderr and can't be redirected directly,
  13256. # and sets the high bit in the cache file unless we assign to the vars.
  13257. (
  13258. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13259. eval ac_val=\$$ac_var
  13260. case $ac_val in #(
  13261. *${as_nl}*)
  13262. case $ac_var in #(
  13263. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13264. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13265. esac
  13266. case $ac_var in #(
  13267. _ | IFS | as_nl) ;; #(
  13268. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13269. *) { eval $ac_var=; unset $ac_var;} ;;
  13270. esac ;;
  13271. esac
  13272. done
  13273. (set) 2>&1 |
  13274. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13275. *${as_nl}ac_space=\ *)
  13276. # `set' does not quote correctly, so add quotes: double-quote
  13277. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13278. sed -n \
  13279. "s/'/'\\\\''/g;
  13280. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13281. ;; #(
  13282. *)
  13283. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13284. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13285. ;;
  13286. esac |
  13287. sort
  13288. ) |
  13289. sed '
  13290. /^ac_cv_env_/b end
  13291. t clear
  13292. :clear
  13293. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13294. t end
  13295. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13296. :end' >>confcache
  13297. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13298. if test -w "$cache_file"; then
  13299. test "x$cache_file" != "x/dev/null" &&
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13301. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13302. cat confcache >$cache_file
  13303. else
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13305. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13306. fi
  13307. fi
  13308. rm -f confcache
  13309. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13310. # Let make expand exec_prefix.
  13311. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13312. DEFS=-DHAVE_CONFIG_H
  13313. ac_libobjs=
  13314. ac_ltlibobjs=
  13315. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13316. # 1. Remove the extension, and $U if already installed.
  13317. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13318. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13319. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13320. # will be set to the directory where LIBOBJS objects are built.
  13321. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13322. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13323. done
  13324. LIBOBJS=$ac_libobjs
  13325. LTLIBOBJS=$ac_ltlibobjs
  13326. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13327. as_fn_error "conditional \"AMDEP\" was never defined.
  13328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13329. fi
  13330. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13331. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13333. fi
  13334. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13335. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13337. fi
  13338. if test -n "$EXEEXT"; then
  13339. am__EXEEXT_TRUE=
  13340. am__EXEEXT_FALSE='#'
  13341. else
  13342. am__EXEEXT_TRUE='#'
  13343. am__EXEEXT_FALSE=
  13344. fi
  13345. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  13346. as_fn_error "conditional \"DEBUG\" was never defined.
  13347. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13348. fi
  13349. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  13350. as_fn_error "conditional \"LUBHEAP\" was never defined.
  13351. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13352. fi
  13353. : ${CONFIG_STATUS=./config.status}
  13354. ac_write_fail=0
  13355. ac_clean_files_save=$ac_clean_files
  13356. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13358. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13359. as_write_fail=0
  13360. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13361. #! $SHELL
  13362. # Generated by $as_me.
  13363. # Run this file to recreate the current configuration.
  13364. # Compiler output produced by configure, useful for debugging
  13365. # configure, is in config.log if it exists.
  13366. debug=false
  13367. ac_cs_recheck=false
  13368. ac_cs_silent=false
  13369. SHELL=\${CONFIG_SHELL-$SHELL}
  13370. export SHELL
  13371. _ASEOF
  13372. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13373. ## -------------------- ##
  13374. ## M4sh Initialization. ##
  13375. ## -------------------- ##
  13376. # Be more Bourne compatible
  13377. DUALCASE=1; export DUALCASE # for MKS sh
  13378. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13379. emulate sh
  13380. NULLCMD=:
  13381. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13382. # is contrary to our usage. Disable this feature.
  13383. alias -g '${1+"$@"}'='"$@"'
  13384. setopt NO_GLOB_SUBST
  13385. else
  13386. case `(set -o) 2>/dev/null` in #(
  13387. *posix*) :
  13388. set -o posix ;; #(
  13389. *) :
  13390. ;;
  13391. esac
  13392. fi
  13393. as_nl='
  13394. '
  13395. export as_nl
  13396. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13397. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13398. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13399. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13400. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13401. # but without wasting forks for bash or zsh.
  13402. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13403. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13404. as_echo='print -r --'
  13405. as_echo_n='print -rn --'
  13406. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13407. as_echo='printf %s\n'
  13408. as_echo_n='printf %s'
  13409. else
  13410. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13411. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13412. as_echo_n='/usr/ucb/echo -n'
  13413. else
  13414. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13415. as_echo_n_body='eval
  13416. arg=$1;
  13417. case $arg in #(
  13418. *"$as_nl"*)
  13419. expr "X$arg" : "X\\(.*\\)$as_nl";
  13420. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13421. esac;
  13422. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13423. '
  13424. export as_echo_n_body
  13425. as_echo_n='sh -c $as_echo_n_body as_echo'
  13426. fi
  13427. export as_echo_body
  13428. as_echo='sh -c $as_echo_body as_echo'
  13429. fi
  13430. # The user is always right.
  13431. if test "${PATH_SEPARATOR+set}" != set; then
  13432. PATH_SEPARATOR=:
  13433. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13434. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13435. PATH_SEPARATOR=';'
  13436. }
  13437. fi
  13438. # IFS
  13439. # We need space, tab and new line, in precisely that order. Quoting is
  13440. # there to prevent editors from complaining about space-tab.
  13441. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13442. # splitting by setting IFS to empty value.)
  13443. IFS=" "" $as_nl"
  13444. # Find who we are. Look in the path if we contain no directory separator.
  13445. case $0 in #((
  13446. *[\\/]* ) as_myself=$0 ;;
  13447. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13448. for as_dir in $PATH
  13449. do
  13450. IFS=$as_save_IFS
  13451. test -z "$as_dir" && as_dir=.
  13452. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13453. done
  13454. IFS=$as_save_IFS
  13455. ;;
  13456. esac
  13457. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13458. # in which case we are not to be found in the path.
  13459. if test "x$as_myself" = x; then
  13460. as_myself=$0
  13461. fi
  13462. if test ! -f "$as_myself"; then
  13463. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13464. exit 1
  13465. fi
  13466. # Unset variables that we do not need and which cause bugs (e.g. in
  13467. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13468. # suppresses any "Segmentation fault" message there. '((' could
  13469. # trigger a bug in pdksh 5.2.14.
  13470. for as_var in BASH_ENV ENV MAIL MAILPATH
  13471. do eval test x\${$as_var+set} = xset \
  13472. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13473. done
  13474. PS1='$ '
  13475. PS2='> '
  13476. PS4='+ '
  13477. # NLS nuisances.
  13478. LC_ALL=C
  13479. export LC_ALL
  13480. LANGUAGE=C
  13481. export LANGUAGE
  13482. # CDPATH.
  13483. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13484. # as_fn_error ERROR [LINENO LOG_FD]
  13485. # ---------------------------------
  13486. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13487. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13488. # script with status $?, using 1 if that was 0.
  13489. as_fn_error ()
  13490. {
  13491. as_status=$?; test $as_status -eq 0 && as_status=1
  13492. if test "$3"; then
  13493. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13494. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13495. fi
  13496. $as_echo "$as_me: error: $1" >&2
  13497. as_fn_exit $as_status
  13498. } # as_fn_error
  13499. # as_fn_set_status STATUS
  13500. # -----------------------
  13501. # Set $? to STATUS, without forking.
  13502. as_fn_set_status ()
  13503. {
  13504. return $1
  13505. } # as_fn_set_status
  13506. # as_fn_exit STATUS
  13507. # -----------------
  13508. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13509. as_fn_exit ()
  13510. {
  13511. set +e
  13512. as_fn_set_status $1
  13513. exit $1
  13514. } # as_fn_exit
  13515. # as_fn_unset VAR
  13516. # ---------------
  13517. # Portably unset VAR.
  13518. as_fn_unset ()
  13519. {
  13520. { eval $1=; unset $1;}
  13521. }
  13522. as_unset=as_fn_unset
  13523. # as_fn_append VAR VALUE
  13524. # ----------------------
  13525. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13526. # advantage of any shell optimizations that allow amortized linear growth over
  13527. # repeated appends, instead of the typical quadratic growth present in naive
  13528. # implementations.
  13529. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13530. eval 'as_fn_append ()
  13531. {
  13532. eval $1+=\$2
  13533. }'
  13534. else
  13535. as_fn_append ()
  13536. {
  13537. eval $1=\$$1\$2
  13538. }
  13539. fi # as_fn_append
  13540. # as_fn_arith ARG...
  13541. # ------------------
  13542. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13543. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13544. # must be portable across $(()) and expr.
  13545. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13546. eval 'as_fn_arith ()
  13547. {
  13548. as_val=$(( $* ))
  13549. }'
  13550. else
  13551. as_fn_arith ()
  13552. {
  13553. as_val=`expr "$@" || test $? -eq 1`
  13554. }
  13555. fi # as_fn_arith
  13556. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13557. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13558. as_expr=expr
  13559. else
  13560. as_expr=false
  13561. fi
  13562. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13563. as_basename=basename
  13564. else
  13565. as_basename=false
  13566. fi
  13567. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13568. as_dirname=dirname
  13569. else
  13570. as_dirname=false
  13571. fi
  13572. as_me=`$as_basename -- "$0" ||
  13573. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13574. X"$0" : 'X\(//\)$' \| \
  13575. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13576. $as_echo X/"$0" |
  13577. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13578. s//\1/
  13579. q
  13580. }
  13581. /^X\/\(\/\/\)$/{
  13582. s//\1/
  13583. q
  13584. }
  13585. /^X\/\(\/\).*/{
  13586. s//\1/
  13587. q
  13588. }
  13589. s/.*/./; q'`
  13590. # Avoid depending upon Character Ranges.
  13591. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13592. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13593. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13594. as_cr_digits='0123456789'
  13595. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13596. ECHO_C= ECHO_N= ECHO_T=
  13597. case `echo -n x` in #(((((
  13598. -n*)
  13599. case `echo 'xy\c'` in
  13600. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13601. xy) ECHO_C='\c';;
  13602. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13603. ECHO_T=' ';;
  13604. esac;;
  13605. *)
  13606. ECHO_N='-n';;
  13607. esac
  13608. rm -f conf$$ conf$$.exe conf$$.file
  13609. if test -d conf$$.dir; then
  13610. rm -f conf$$.dir/conf$$.file
  13611. else
  13612. rm -f conf$$.dir
  13613. mkdir conf$$.dir 2>/dev/null
  13614. fi
  13615. if (echo >conf$$.file) 2>/dev/null; then
  13616. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13617. as_ln_s='ln -s'
  13618. # ... but there are two gotchas:
  13619. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13620. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13621. # In both cases, we have to default to `cp -p'.
  13622. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13623. as_ln_s='cp -p'
  13624. elif ln conf$$.file conf$$ 2>/dev/null; then
  13625. as_ln_s=ln
  13626. else
  13627. as_ln_s='cp -p'
  13628. fi
  13629. else
  13630. as_ln_s='cp -p'
  13631. fi
  13632. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13633. rmdir conf$$.dir 2>/dev/null
  13634. # as_fn_mkdir_p
  13635. # -------------
  13636. # Create "$as_dir" as a directory, including parents if necessary.
  13637. as_fn_mkdir_p ()
  13638. {
  13639. case $as_dir in #(
  13640. -*) as_dir=./$as_dir;;
  13641. esac
  13642. test -d "$as_dir" || eval $as_mkdir_p || {
  13643. as_dirs=
  13644. while :; do
  13645. case $as_dir in #(
  13646. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13647. *) as_qdir=$as_dir;;
  13648. esac
  13649. as_dirs="'$as_qdir' $as_dirs"
  13650. as_dir=`$as_dirname -- "$as_dir" ||
  13651. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13652. X"$as_dir" : 'X\(//\)[^/]' \| \
  13653. X"$as_dir" : 'X\(//\)$' \| \
  13654. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13655. $as_echo X"$as_dir" |
  13656. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13657. s//\1/
  13658. q
  13659. }
  13660. /^X\(\/\/\)[^/].*/{
  13661. s//\1/
  13662. q
  13663. }
  13664. /^X\(\/\/\)$/{
  13665. s//\1/
  13666. q
  13667. }
  13668. /^X\(\/\).*/{
  13669. s//\1/
  13670. q
  13671. }
  13672. s/.*/./; q'`
  13673. test -d "$as_dir" && break
  13674. done
  13675. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13676. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13677. } # as_fn_mkdir_p
  13678. if mkdir -p . 2>/dev/null; then
  13679. as_mkdir_p='mkdir -p "$as_dir"'
  13680. else
  13681. test -d ./-p && rmdir ./-p
  13682. as_mkdir_p=false
  13683. fi
  13684. if test -x / >/dev/null 2>&1; then
  13685. as_test_x='test -x'
  13686. else
  13687. if ls -dL / >/dev/null 2>&1; then
  13688. as_ls_L_option=L
  13689. else
  13690. as_ls_L_option=
  13691. fi
  13692. as_test_x='
  13693. eval sh -c '\''
  13694. if test -d "$1"; then
  13695. test -d "$1/.";
  13696. else
  13697. case $1 in #(
  13698. -*)set "./$1";;
  13699. esac;
  13700. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13701. ???[sx]*):;;*)false;;esac;fi
  13702. '\'' sh
  13703. '
  13704. fi
  13705. as_executable_p=$as_test_x
  13706. # Sed expression to map a string onto a valid CPP name.
  13707. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13708. # Sed expression to map a string onto a valid variable name.
  13709. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13710. exec 6>&1
  13711. ## ----------------------------------- ##
  13712. ## Main body of $CONFIG_STATUS script. ##
  13713. ## ----------------------------------- ##
  13714. _ASEOF
  13715. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13716. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13717. # Save the log message, to keep $0 and so on meaningful, and to
  13718. # report actual input values of CONFIG_FILES etc. instead of their
  13719. # values after options handling.
  13720. ac_log="
  13721. This file was extended by clish $as_me 0.7.4alpha, which was
  13722. generated by GNU Autoconf 2.65. Invocation command line was
  13723. CONFIG_FILES = $CONFIG_FILES
  13724. CONFIG_HEADERS = $CONFIG_HEADERS
  13725. CONFIG_LINKS = $CONFIG_LINKS
  13726. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13727. $ $0 $@
  13728. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13729. "
  13730. _ACEOF
  13731. case $ac_config_files in *"
  13732. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13733. esac
  13734. case $ac_config_headers in *"
  13735. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13736. esac
  13737. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13738. # Files that config.status was made for.
  13739. config_files="$ac_config_files"
  13740. config_headers="$ac_config_headers"
  13741. config_commands="$ac_config_commands"
  13742. _ACEOF
  13743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13744. ac_cs_usage="\
  13745. \`$as_me' instantiates files and other configuration actions
  13746. from templates according to the current configuration. Unless the files
  13747. and actions are specified as TAGs, all are instantiated by default.
  13748. Usage: $0 [OPTION]... [TAG]...
  13749. -h, --help print this help, then exit
  13750. -V, --version print version number and configuration settings, then exit
  13751. --config print configuration, then exit
  13752. -q, --quiet, --silent
  13753. do not print progress messages
  13754. -d, --debug don't remove temporary files
  13755. --recheck update $as_me by reconfiguring in the same conditions
  13756. --file=FILE[:TEMPLATE]
  13757. instantiate the configuration file FILE
  13758. --header=FILE[:TEMPLATE]
  13759. instantiate the configuration header FILE
  13760. Configuration files:
  13761. $config_files
  13762. Configuration headers:
  13763. $config_headers
  13764. Configuration commands:
  13765. $config_commands
  13766. Report bugs to <gmckerrell at users dot sourceforge dot net>."
  13767. _ACEOF
  13768. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13769. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13770. ac_cs_version="\\
  13771. clish config.status 0.7.4alpha
  13772. configured by $0, generated by GNU Autoconf 2.65,
  13773. with options \\"\$ac_cs_config\\"
  13774. Copyright (C) 2009 Free Software Foundation, Inc.
  13775. This config.status script is free software; the Free Software Foundation
  13776. gives unlimited permission to copy, distribute and modify it."
  13777. ac_pwd='$ac_pwd'
  13778. srcdir='$srcdir'
  13779. INSTALL='$INSTALL'
  13780. MKDIR_P='$MKDIR_P'
  13781. AWK='$AWK'
  13782. test -n "\$AWK" || AWK=awk
  13783. _ACEOF
  13784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13785. # The default lists apply if the user does not specify any file.
  13786. ac_need_defaults=:
  13787. while test $# != 0
  13788. do
  13789. case $1 in
  13790. --*=*)
  13791. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13792. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13793. ac_shift=:
  13794. ;;
  13795. *)
  13796. ac_option=$1
  13797. ac_optarg=$2
  13798. ac_shift=shift
  13799. ;;
  13800. esac
  13801. case $ac_option in
  13802. # Handling of the options.
  13803. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13804. ac_cs_recheck=: ;;
  13805. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13806. $as_echo "$ac_cs_version"; exit ;;
  13807. --config | --confi | --conf | --con | --co | --c )
  13808. $as_echo "$ac_cs_config"; exit ;;
  13809. --debug | --debu | --deb | --de | --d | -d )
  13810. debug=: ;;
  13811. --file | --fil | --fi | --f )
  13812. $ac_shift
  13813. case $ac_optarg in
  13814. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13815. esac
  13816. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13817. ac_need_defaults=false;;
  13818. --header | --heade | --head | --hea )
  13819. $ac_shift
  13820. case $ac_optarg in
  13821. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13822. esac
  13823. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13824. ac_need_defaults=false;;
  13825. --he | --h)
  13826. # Conflict between --help and --header
  13827. as_fn_error "ambiguous option: \`$1'
  13828. Try \`$0 --help' for more information.";;
  13829. --help | --hel | -h )
  13830. $as_echo "$ac_cs_usage"; exit ;;
  13831. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13832. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13833. ac_cs_silent=: ;;
  13834. # This is an error.
  13835. -*) as_fn_error "unrecognized option: \`$1'
  13836. Try \`$0 --help' for more information." ;;
  13837. *) as_fn_append ac_config_targets " $1"
  13838. ac_need_defaults=false ;;
  13839. esac
  13840. shift
  13841. done
  13842. ac_configure_extra_args=
  13843. if $ac_cs_silent; then
  13844. exec 6>/dev/null
  13845. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13846. fi
  13847. _ACEOF
  13848. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13849. if \$ac_cs_recheck; then
  13850. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13851. shift
  13852. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13853. CONFIG_SHELL='$SHELL'
  13854. export CONFIG_SHELL
  13855. exec "\$@"
  13856. fi
  13857. _ACEOF
  13858. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13859. exec 5>>config.log
  13860. {
  13861. echo
  13862. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13863. ## Running $as_me. ##
  13864. _ASBOX
  13865. $as_echo "$ac_log"
  13866. } >&5
  13867. _ACEOF
  13868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13869. #
  13870. # INIT-COMMANDS
  13871. #
  13872. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13873. # if CDPATH is set.
  13874. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13875. sed_quote_subst='$sed_quote_subst'
  13876. double_quote_subst='$double_quote_subst'
  13877. delay_variable_subst='$delay_variable_subst'
  13878. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  13879. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13880. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13881. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13882. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13883. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13884. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13885. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13886. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13887. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13888. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13889. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13890. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13891. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13892. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13893. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13894. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13895. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13896. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13897. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13898. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13899. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13900. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13901. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13902. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13903. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13904. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13905. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13906. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13907. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13908. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13909. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13910. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13911. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13912. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13913. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13914. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13915. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13916. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13917. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13918. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13919. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13920. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13921. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13922. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13923. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13924. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13925. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13926. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13927. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13928. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13929. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13930. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13931. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13932. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13933. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13934. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13935. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13936. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13937. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13938. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13939. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13940. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13941. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13942. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13943. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13944. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13945. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13946. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13947. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13948. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13949. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13950. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13951. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13952. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13953. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13954. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13955. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13956. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13957. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13958. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13959. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13960. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13961. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13962. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13963. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13964. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13965. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13966. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13967. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13968. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13969. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13970. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13971. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13972. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13973. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13974. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13975. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13976. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13977. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13978. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13979. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13980. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13981. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13982. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13983. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13984. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13985. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13986. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13987. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13988. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13989. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13990. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13991. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13992. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13993. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13994. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13995. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13996. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13997. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13998. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13999. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14000. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14001. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14002. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14003. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14004. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14005. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14006. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14007. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14008. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14009. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14010. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14011. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14012. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14013. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14014. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14015. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14016. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14017. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14018. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14019. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14020. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14021. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14022. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14023. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14024. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14025. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14026. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14027. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14028. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14029. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14030. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14031. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14032. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14033. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14034. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14035. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14036. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14037. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14038. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14039. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14040. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14041. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14042. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14043. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14044. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14045. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14046. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14047. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14048. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14049. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14050. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14051. LTCC='$LTCC'
  14052. LTCFLAGS='$LTCFLAGS'
  14053. compiler='$compiler_DEFAULT'
  14054. # Quote evaled strings.
  14055. for var in SED \
  14056. GREP \
  14057. EGREP \
  14058. FGREP \
  14059. LD \
  14060. NM \
  14061. LN_S \
  14062. lt_SP2NL \
  14063. lt_NL2SP \
  14064. reload_flag \
  14065. deplibs_check_method \
  14066. file_magic_cmd \
  14067. AR \
  14068. AR_FLAGS \
  14069. STRIP \
  14070. RANLIB \
  14071. CC \
  14072. CFLAGS \
  14073. compiler \
  14074. lt_cv_sys_global_symbol_pipe \
  14075. lt_cv_sys_global_symbol_to_cdecl \
  14076. lt_cv_sys_global_symbol_to_c_name_address \
  14077. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14078. SHELL \
  14079. ECHO \
  14080. lt_prog_compiler_no_builtin_flag \
  14081. lt_prog_compiler_wl \
  14082. lt_prog_compiler_pic \
  14083. lt_prog_compiler_static \
  14084. lt_cv_prog_compiler_c_o \
  14085. need_locks \
  14086. DSYMUTIL \
  14087. NMEDIT \
  14088. LIPO \
  14089. OTOOL \
  14090. OTOOL64 \
  14091. shrext_cmds \
  14092. export_dynamic_flag_spec \
  14093. whole_archive_flag_spec \
  14094. compiler_needs_object \
  14095. with_gnu_ld \
  14096. allow_undefined_flag \
  14097. no_undefined_flag \
  14098. hardcode_libdir_flag_spec \
  14099. hardcode_libdir_flag_spec_ld \
  14100. hardcode_libdir_separator \
  14101. fix_srcfile_path \
  14102. exclude_expsyms \
  14103. include_expsyms \
  14104. file_list_spec \
  14105. variables_saved_for_relink \
  14106. libname_spec \
  14107. library_names_spec \
  14108. soname_spec \
  14109. finish_eval \
  14110. old_striplib \
  14111. striplib \
  14112. compiler_lib_search_dirs \
  14113. predep_objects \
  14114. postdep_objects \
  14115. predeps \
  14116. postdeps \
  14117. compiler_lib_search_path \
  14118. LD_CXX \
  14119. compiler_CXX \
  14120. lt_prog_compiler_no_builtin_flag_CXX \
  14121. lt_prog_compiler_wl_CXX \
  14122. lt_prog_compiler_pic_CXX \
  14123. lt_prog_compiler_static_CXX \
  14124. lt_cv_prog_compiler_c_o_CXX \
  14125. export_dynamic_flag_spec_CXX \
  14126. whole_archive_flag_spec_CXX \
  14127. compiler_needs_object_CXX \
  14128. with_gnu_ld_CXX \
  14129. allow_undefined_flag_CXX \
  14130. no_undefined_flag_CXX \
  14131. hardcode_libdir_flag_spec_CXX \
  14132. hardcode_libdir_flag_spec_ld_CXX \
  14133. hardcode_libdir_separator_CXX \
  14134. fix_srcfile_path_CXX \
  14135. exclude_expsyms_CXX \
  14136. include_expsyms_CXX \
  14137. file_list_spec_CXX \
  14138. compiler_lib_search_dirs_CXX \
  14139. predep_objects_CXX \
  14140. postdep_objects_CXX \
  14141. predeps_CXX \
  14142. postdeps_CXX \
  14143. compiler_lib_search_path_CXX; do
  14144. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14145. *[\\\\\\\`\\"\\\$]*)
  14146. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14147. ;;
  14148. *)
  14149. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14150. ;;
  14151. esac
  14152. done
  14153. # Double-quote double-evaled strings.
  14154. for var in reload_cmds \
  14155. old_postinstall_cmds \
  14156. old_postuninstall_cmds \
  14157. old_archive_cmds \
  14158. extract_expsyms_cmds \
  14159. old_archive_from_new_cmds \
  14160. old_archive_from_expsyms_cmds \
  14161. archive_cmds \
  14162. archive_expsym_cmds \
  14163. module_cmds \
  14164. module_expsym_cmds \
  14165. export_symbols_cmds \
  14166. prelink_cmds \
  14167. postinstall_cmds \
  14168. postuninstall_cmds \
  14169. finish_cmds \
  14170. sys_lib_search_path_spec \
  14171. sys_lib_dlsearch_path_spec \
  14172. old_archive_cmds_CXX \
  14173. old_archive_from_new_cmds_CXX \
  14174. old_archive_from_expsyms_cmds_CXX \
  14175. archive_cmds_CXX \
  14176. archive_expsym_cmds_CXX \
  14177. module_cmds_CXX \
  14178. module_expsym_cmds_CXX \
  14179. export_symbols_cmds_CXX \
  14180. prelink_cmds_CXX; do
  14181. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14182. *[\\\\\\\`\\"\\\$]*)
  14183. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14184. ;;
  14185. *)
  14186. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14187. ;;
  14188. esac
  14189. done
  14190. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14191. case \$lt_ECHO in
  14192. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14193. ;;
  14194. esac
  14195. ac_aux_dir='$ac_aux_dir'
  14196. xsi_shell='$xsi_shell'
  14197. lt_shell_append='$lt_shell_append'
  14198. # See if we are running on zsh, and set the options which allow our
  14199. # commands through without removal of \ escapes INIT.
  14200. if test -n "\${ZSH_VERSION+set}" ; then
  14201. setopt NO_GLOB_SUBST
  14202. fi
  14203. PACKAGE='$PACKAGE'
  14204. VERSION='$VERSION'
  14205. TIMESTAMP='$TIMESTAMP'
  14206. RM='$RM'
  14207. ofile='$ofile'
  14208. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14209. _ACEOF
  14210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14211. # Handling of arguments.
  14212. for ac_config_target in $ac_config_targets
  14213. do
  14214. case $ac_config_target in
  14215. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14216. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14217. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14218. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14219. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14220. esac
  14221. done
  14222. # If the user did not use the arguments to specify the items to instantiate,
  14223. # then the envvar interface is used. Set only those that are not.
  14224. # We use the long form for the default assignment because of an extremely
  14225. # bizarre bug on SunOS 4.1.3.
  14226. if $ac_need_defaults; then
  14227. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14228. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14229. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14230. fi
  14231. # Have a temporary directory for convenience. Make it in the build tree
  14232. # simply because there is no reason against having it here, and in addition,
  14233. # creating and moving files from /tmp can sometimes cause problems.
  14234. # Hook for its removal unless debugging.
  14235. # Note that there is a small window in which the directory will not be cleaned:
  14236. # after its creation but before its name has been assigned to `$tmp'.
  14237. $debug ||
  14238. {
  14239. tmp=
  14240. trap 'exit_status=$?
  14241. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14242. ' 0
  14243. trap 'as_fn_exit 1' 1 2 13 15
  14244. }
  14245. # Create a (secure) tmp directory for tmp files.
  14246. {
  14247. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14248. test -n "$tmp" && test -d "$tmp"
  14249. } ||
  14250. {
  14251. tmp=./conf$$-$RANDOM
  14252. (umask 077 && mkdir "$tmp")
  14253. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14254. # Set up the scripts for CONFIG_FILES section.
  14255. # No need to generate them if there are no CONFIG_FILES.
  14256. # This happens for instance with `./config.status config.h'.
  14257. if test -n "$CONFIG_FILES"; then
  14258. ac_cr=`echo X | tr X '\015'`
  14259. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14260. # But we know of no other shell where ac_cr would be empty at this
  14261. # point, so we can use a bashism as a fallback.
  14262. if test "x$ac_cr" = x; then
  14263. eval ac_cr=\$\'\\r\'
  14264. fi
  14265. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14266. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14267. ac_cs_awk_cr='\r'
  14268. else
  14269. ac_cs_awk_cr=$ac_cr
  14270. fi
  14271. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14272. _ACEOF
  14273. {
  14274. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14275. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14276. echo "_ACEOF"
  14277. } >conf$$subs.sh ||
  14278. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14279. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14280. ac_delim='%!_!# '
  14281. for ac_last_try in false false false false false :; do
  14282. . ./conf$$subs.sh ||
  14283. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14284. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14285. if test $ac_delim_n = $ac_delim_num; then
  14286. break
  14287. elif $ac_last_try; then
  14288. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14289. else
  14290. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14291. fi
  14292. done
  14293. rm -f conf$$subs.sh
  14294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14295. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14296. _ACEOF
  14297. sed -n '
  14298. h
  14299. s/^/S["/; s/!.*/"]=/
  14300. p
  14301. g
  14302. s/^[^!]*!//
  14303. :repl
  14304. t repl
  14305. s/'"$ac_delim"'$//
  14306. t delim
  14307. :nl
  14308. h
  14309. s/\(.\{148\}\)..*/\1/
  14310. t more1
  14311. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14312. p
  14313. n
  14314. b repl
  14315. :more1
  14316. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14317. p
  14318. g
  14319. s/.\{148\}//
  14320. t nl
  14321. :delim
  14322. h
  14323. s/\(.\{148\}\)..*/\1/
  14324. t more2
  14325. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14326. p
  14327. b
  14328. :more2
  14329. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14330. p
  14331. g
  14332. s/.\{148\}//
  14333. t delim
  14334. ' <conf$$subs.awk | sed '
  14335. /^[^""]/{
  14336. N
  14337. s/\n//
  14338. }
  14339. ' >>$CONFIG_STATUS || ac_write_fail=1
  14340. rm -f conf$$subs.awk
  14341. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14342. _ACAWK
  14343. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14344. for (key in S) S_is_set[key] = 1
  14345. FS = ""
  14346. }
  14347. {
  14348. line = $ 0
  14349. nfields = split(line, field, "@")
  14350. substed = 0
  14351. len = length(field[1])
  14352. for (i = 2; i < nfields; i++) {
  14353. key = field[i]
  14354. keylen = length(key)
  14355. if (S_is_set[key]) {
  14356. value = S[key]
  14357. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14358. len += length(value) + length(field[++i])
  14359. substed = 1
  14360. } else
  14361. len += 1 + keylen
  14362. }
  14363. print line
  14364. }
  14365. _ACAWK
  14366. _ACEOF
  14367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14368. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14369. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14370. else
  14371. cat
  14372. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14373. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14374. _ACEOF
  14375. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14376. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14377. # trailing colons and then remove the whole line if VPATH becomes empty
  14378. # (actually we leave an empty line to preserve line numbers).
  14379. if test "x$srcdir" = x.; then
  14380. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14381. s/:*\$(srcdir):*/:/
  14382. s/:*\${srcdir}:*/:/
  14383. s/:*@srcdir@:*/:/
  14384. s/^\([^=]*=[ ]*\):*/\1/
  14385. s/:*$//
  14386. s/^[^=]*=[ ]*$//
  14387. }'
  14388. fi
  14389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14390. fi # test -n "$CONFIG_FILES"
  14391. # Set up the scripts for CONFIG_HEADERS section.
  14392. # No need to generate them if there are no CONFIG_HEADERS.
  14393. # This happens for instance with `./config.status Makefile'.
  14394. if test -n "$CONFIG_HEADERS"; then
  14395. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14396. BEGIN {
  14397. _ACEOF
  14398. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14399. # here-document in config.status, that substitutes the proper values into
  14400. # config.h.in to produce config.h.
  14401. # Create a delimiter string that does not exist in confdefs.h, to ease
  14402. # handling of long lines.
  14403. ac_delim='%!_!# '
  14404. for ac_last_try in false false :; do
  14405. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14406. if test -z "$ac_t"; then
  14407. break
  14408. elif $ac_last_try; then
  14409. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14410. else
  14411. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14412. fi
  14413. done
  14414. # For the awk script, D is an array of macro values keyed by name,
  14415. # likewise P contains macro parameters if any. Preserve backslash
  14416. # newline sequences.
  14417. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14418. sed -n '
  14419. s/.\{148\}/&'"$ac_delim"'/g
  14420. t rset
  14421. :rset
  14422. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14423. t def
  14424. d
  14425. :def
  14426. s/\\$//
  14427. t bsnl
  14428. s/["\\]/\\&/g
  14429. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14430. D["\1"]=" \3"/p
  14431. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14432. d
  14433. :bsnl
  14434. s/["\\]/\\&/g
  14435. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14436. D["\1"]=" \3\\\\\\n"\\/p
  14437. t cont
  14438. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14439. t cont
  14440. d
  14441. :cont
  14442. n
  14443. s/.\{148\}/&'"$ac_delim"'/g
  14444. t clear
  14445. :clear
  14446. s/\\$//
  14447. t bsnlc
  14448. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14449. d
  14450. :bsnlc
  14451. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14452. b cont
  14453. ' <confdefs.h | sed '
  14454. s/'"$ac_delim"'/"\\\
  14455. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14456. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14457. for (key in D) D_is_set[key] = 1
  14458. FS = ""
  14459. }
  14460. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14461. line = \$ 0
  14462. split(line, arg, " ")
  14463. if (arg[1] == "#") {
  14464. defundef = arg[2]
  14465. mac1 = arg[3]
  14466. } else {
  14467. defundef = substr(arg[1], 2)
  14468. mac1 = arg[2]
  14469. }
  14470. split(mac1, mac2, "(") #)
  14471. macro = mac2[1]
  14472. prefix = substr(line, 1, index(line, defundef) - 1)
  14473. if (D_is_set[macro]) {
  14474. # Preserve the white space surrounding the "#".
  14475. print prefix "define", macro P[macro] D[macro]
  14476. next
  14477. } else {
  14478. # Replace #undef with comments. This is necessary, for example,
  14479. # in the case of _POSIX_SOURCE, which is predefined and required
  14480. # on some systems where configure will not decide to define it.
  14481. if (defundef == "undef") {
  14482. print "/*", prefix defundef, macro, "*/"
  14483. next
  14484. }
  14485. }
  14486. }
  14487. { print }
  14488. _ACAWK
  14489. _ACEOF
  14490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14491. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14492. fi # test -n "$CONFIG_HEADERS"
  14493. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14494. shift
  14495. for ac_tag
  14496. do
  14497. case $ac_tag in
  14498. :[FHLC]) ac_mode=$ac_tag; continue;;
  14499. esac
  14500. case $ac_mode$ac_tag in
  14501. :[FHL]*:*);;
  14502. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14503. :[FH]-) ac_tag=-:-;;
  14504. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14505. esac
  14506. ac_save_IFS=$IFS
  14507. IFS=:
  14508. set x $ac_tag
  14509. IFS=$ac_save_IFS
  14510. shift
  14511. ac_file=$1
  14512. shift
  14513. case $ac_mode in
  14514. :L) ac_source=$1;;
  14515. :[FH])
  14516. ac_file_inputs=
  14517. for ac_f
  14518. do
  14519. case $ac_f in
  14520. -) ac_f="$tmp/stdin";;
  14521. *) # Look for the file first in the build tree, then in the source tree
  14522. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14523. # because $ac_f cannot contain `:'.
  14524. test -f "$ac_f" ||
  14525. case $ac_f in
  14526. [\\/$]*) false;;
  14527. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14528. esac ||
  14529. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14530. esac
  14531. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14532. as_fn_append ac_file_inputs " '$ac_f'"
  14533. done
  14534. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14535. # use $as_me), people would be surprised to read:
  14536. # /* config.h. Generated by config.status. */
  14537. configure_input='Generated from '`
  14538. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14539. `' by configure.'
  14540. if test x"$ac_file" != x-; then
  14541. configure_input="$ac_file. $configure_input"
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14543. $as_echo "$as_me: creating $ac_file" >&6;}
  14544. fi
  14545. # Neutralize special characters interpreted by sed in replacement strings.
  14546. case $configure_input in #(
  14547. *\&* | *\|* | *\\* )
  14548. ac_sed_conf_input=`$as_echo "$configure_input" |
  14549. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14550. *) ac_sed_conf_input=$configure_input;;
  14551. esac
  14552. case $ac_tag in
  14553. *:-:* | *:-) cat >"$tmp/stdin" \
  14554. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14555. esac
  14556. ;;
  14557. esac
  14558. ac_dir=`$as_dirname -- "$ac_file" ||
  14559. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14560. X"$ac_file" : 'X\(//\)[^/]' \| \
  14561. X"$ac_file" : 'X\(//\)$' \| \
  14562. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14563. $as_echo X"$ac_file" |
  14564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14565. s//\1/
  14566. q
  14567. }
  14568. /^X\(\/\/\)[^/].*/{
  14569. s//\1/
  14570. q
  14571. }
  14572. /^X\(\/\/\)$/{
  14573. s//\1/
  14574. q
  14575. }
  14576. /^X\(\/\).*/{
  14577. s//\1/
  14578. q
  14579. }
  14580. s/.*/./; q'`
  14581. as_dir="$ac_dir"; as_fn_mkdir_p
  14582. ac_builddir=.
  14583. case "$ac_dir" in
  14584. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14585. *)
  14586. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14587. # A ".." for each directory in $ac_dir_suffix.
  14588. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14589. case $ac_top_builddir_sub in
  14590. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14591. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14592. esac ;;
  14593. esac
  14594. ac_abs_top_builddir=$ac_pwd
  14595. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14596. # for backward compatibility:
  14597. ac_top_builddir=$ac_top_build_prefix
  14598. case $srcdir in
  14599. .) # We are building in place.
  14600. ac_srcdir=.
  14601. ac_top_srcdir=$ac_top_builddir_sub
  14602. ac_abs_top_srcdir=$ac_pwd ;;
  14603. [\\/]* | ?:[\\/]* ) # Absolute name.
  14604. ac_srcdir=$srcdir$ac_dir_suffix;
  14605. ac_top_srcdir=$srcdir
  14606. ac_abs_top_srcdir=$srcdir ;;
  14607. *) # Relative name.
  14608. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14609. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14610. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14611. esac
  14612. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14613. case $ac_mode in
  14614. :F)
  14615. #
  14616. # CONFIG_FILE
  14617. #
  14618. case $INSTALL in
  14619. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14620. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14621. esac
  14622. ac_MKDIR_P=$MKDIR_P
  14623. case $MKDIR_P in
  14624. [\\/$]* | ?:[\\/]* ) ;;
  14625. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14626. esac
  14627. _ACEOF
  14628. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14629. # If the template does not know about datarootdir, expand it.
  14630. # FIXME: This hack should be removed a few years after 2.60.
  14631. ac_datarootdir_hack=; ac_datarootdir_seen=
  14632. ac_sed_dataroot='
  14633. /datarootdir/ {
  14634. p
  14635. q
  14636. }
  14637. /@datadir@/p
  14638. /@docdir@/p
  14639. /@infodir@/p
  14640. /@localedir@/p
  14641. /@mandir@/p'
  14642. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14643. *datarootdir*) ac_datarootdir_seen=yes;;
  14644. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14646. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14647. _ACEOF
  14648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14649. ac_datarootdir_hack='
  14650. s&@datadir@&$datadir&g
  14651. s&@docdir@&$docdir&g
  14652. s&@infodir@&$infodir&g
  14653. s&@localedir@&$localedir&g
  14654. s&@mandir@&$mandir&g
  14655. s&\\\${datarootdir}&$datarootdir&g' ;;
  14656. esac
  14657. _ACEOF
  14658. # Neutralize VPATH when `$srcdir' = `.'.
  14659. # Shell code in configure.ac might set extrasub.
  14660. # FIXME: do we really want to maintain this feature?
  14661. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14662. ac_sed_extra="$ac_vpsub
  14663. $extrasub
  14664. _ACEOF
  14665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14666. :t
  14667. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14668. s|@configure_input@|$ac_sed_conf_input|;t t
  14669. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14670. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14671. s&@srcdir@&$ac_srcdir&;t t
  14672. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14673. s&@top_srcdir@&$ac_top_srcdir&;t t
  14674. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14675. s&@builddir@&$ac_builddir&;t t
  14676. s&@abs_builddir@&$ac_abs_builddir&;t t
  14677. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14678. s&@INSTALL@&$ac_INSTALL&;t t
  14679. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14680. $ac_datarootdir_hack
  14681. "
  14682. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14683. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14684. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14685. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14686. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14688. which seems to be undefined. Please make sure it is defined." >&5
  14689. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14690. which seems to be undefined. Please make sure it is defined." >&2;}
  14691. rm -f "$tmp/stdin"
  14692. case $ac_file in
  14693. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14694. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14695. esac \
  14696. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14697. ;;
  14698. :H)
  14699. #
  14700. # CONFIG_HEADER
  14701. #
  14702. if test x"$ac_file" != x-; then
  14703. {
  14704. $as_echo "/* $configure_input */" \
  14705. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14706. } >"$tmp/config.h" \
  14707. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14708. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14710. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14711. else
  14712. rm -f "$ac_file"
  14713. mv "$tmp/config.h" "$ac_file" \
  14714. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14715. fi
  14716. else
  14717. $as_echo "/* $configure_input */" \
  14718. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14719. || as_fn_error "could not create -" "$LINENO" 5
  14720. fi
  14721. # Compute "$ac_file"'s index in $config_headers.
  14722. _am_arg="$ac_file"
  14723. _am_stamp_count=1
  14724. for _am_header in $config_headers :; do
  14725. case $_am_header in
  14726. $_am_arg | $_am_arg:* )
  14727. break ;;
  14728. * )
  14729. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14730. esac
  14731. done
  14732. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14733. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14734. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14735. X"$_am_arg" : 'X\(//\)$' \| \
  14736. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14737. $as_echo X"$_am_arg" |
  14738. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14739. s//\1/
  14740. q
  14741. }
  14742. /^X\(\/\/\)[^/].*/{
  14743. s//\1/
  14744. q
  14745. }
  14746. /^X\(\/\/\)$/{
  14747. s//\1/
  14748. q
  14749. }
  14750. /^X\(\/\).*/{
  14751. s//\1/
  14752. q
  14753. }
  14754. s/.*/./; q'`/stamp-h$_am_stamp_count
  14755. ;;
  14756. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14757. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14758. ;;
  14759. esac
  14760. case $ac_file$ac_mode in
  14761. "libtool":C)
  14762. # See if we are running on zsh, and set the options which allow our
  14763. # commands through without removal of \ escapes.
  14764. if test -n "${ZSH_VERSION+set}" ; then
  14765. setopt NO_GLOB_SUBST
  14766. fi
  14767. cfgfile="${ofile}T"
  14768. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14769. $RM "$cfgfile"
  14770. cat <<_LT_EOF >> "$cfgfile"
  14771. #! $SHELL
  14772. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14773. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14774. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14775. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14776. #
  14777. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14778. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14779. # Written by Gordon Matzigkeit, 1996
  14780. #
  14781. # This file is part of GNU Libtool.
  14782. #
  14783. # GNU Libtool is free software; you can redistribute it and/or
  14784. # modify it under the terms of the GNU General Public License as
  14785. # published by the Free Software Foundation; either version 2 of
  14786. # the License, or (at your option) any later version.
  14787. #
  14788. # As a special exception to the GNU General Public License,
  14789. # if you distribute this file as part of a program or library that
  14790. # is built using GNU Libtool, you may include this file under the
  14791. # same distribution terms that you use for the rest of that program.
  14792. #
  14793. # GNU Libtool is distributed in the hope that it will be useful,
  14794. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14795. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14796. # GNU General Public License for more details.
  14797. #
  14798. # You should have received a copy of the GNU General Public License
  14799. # along with GNU Libtool; see the file COPYING. If not, a copy
  14800. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14801. # obtained by writing to the Free Software Foundation, Inc.,
  14802. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14803. # The names of the tagged configurations supported by this script.
  14804. available_tags="CXX "
  14805. # ### BEGIN LIBTOOL CONFIG
  14806. # Assembler program.
  14807. AS=$AS
  14808. # DLL creation program.
  14809. DLLTOOL=$DLLTOOL
  14810. # Object dumper program.
  14811. OBJDUMP=$OBJDUMP
  14812. # Which release of libtool.m4 was used?
  14813. macro_version=$macro_version
  14814. macro_revision=$macro_revision
  14815. # Whether or not to build shared libraries.
  14816. build_libtool_libs=$enable_shared
  14817. # Whether or not to build static libraries.
  14818. build_old_libs=$enable_static
  14819. # What type of objects to build.
  14820. pic_mode=$pic_mode
  14821. # Whether or not to optimize for fast installation.
  14822. fast_install=$enable_fast_install
  14823. # The host system.
  14824. host_alias=$host_alias
  14825. host=$host
  14826. host_os=$host_os
  14827. # The build system.
  14828. build_alias=$build_alias
  14829. build=$build
  14830. build_os=$build_os
  14831. # A sed program that does not truncate output.
  14832. SED=$lt_SED
  14833. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14834. Xsed="\$SED -e 1s/^X//"
  14835. # A grep program that handles long lines.
  14836. GREP=$lt_GREP
  14837. # An ERE matcher.
  14838. EGREP=$lt_EGREP
  14839. # A literal string matcher.
  14840. FGREP=$lt_FGREP
  14841. # A BSD- or MS-compatible name lister.
  14842. NM=$lt_NM
  14843. # Whether we need soft or hard links.
  14844. LN_S=$lt_LN_S
  14845. # What is the maximum length of a command?
  14846. max_cmd_len=$max_cmd_len
  14847. # Object file suffix (normally "o").
  14848. objext=$ac_objext
  14849. # Executable file suffix (normally "").
  14850. exeext=$exeext
  14851. # whether the shell understands "unset".
  14852. lt_unset=$lt_unset
  14853. # turn spaces into newlines.
  14854. SP2NL=$lt_lt_SP2NL
  14855. # turn newlines into spaces.
  14856. NL2SP=$lt_lt_NL2SP
  14857. # How to create reloadable object files.
  14858. reload_flag=$lt_reload_flag
  14859. reload_cmds=$lt_reload_cmds
  14860. # Method to check whether dependent libraries are shared objects.
  14861. deplibs_check_method=$lt_deplibs_check_method
  14862. # Command to use when deplibs_check_method == "file_magic".
  14863. file_magic_cmd=$lt_file_magic_cmd
  14864. # The archiver.
  14865. AR=$lt_AR
  14866. AR_FLAGS=$lt_AR_FLAGS
  14867. # A symbol stripping program.
  14868. STRIP=$lt_STRIP
  14869. # Commands used to install an old-style archive.
  14870. RANLIB=$lt_RANLIB
  14871. old_postinstall_cmds=$lt_old_postinstall_cmds
  14872. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14873. # A C compiler.
  14874. LTCC=$lt_CC
  14875. # LTCC compiler flags.
  14876. LTCFLAGS=$lt_CFLAGS
  14877. # Take the output of nm and produce a listing of raw symbols and C names.
  14878. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14879. # Transform the output of nm in a proper C declaration.
  14880. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14881. # Transform the output of nm in a C name address pair.
  14882. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14883. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14884. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14885. # The name of the directory that contains temporary libtool files.
  14886. objdir=$objdir
  14887. # Shell to use when invoking shell scripts.
  14888. SHELL=$lt_SHELL
  14889. # An echo program that does not interpret backslashes.
  14890. ECHO=$lt_ECHO
  14891. # Used to examine libraries when file_magic_cmd begins with "file".
  14892. MAGIC_CMD=$MAGIC_CMD
  14893. # Must we lock files when doing compilation?
  14894. need_locks=$lt_need_locks
  14895. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14896. DSYMUTIL=$lt_DSYMUTIL
  14897. # Tool to change global to local symbols on Mac OS X.
  14898. NMEDIT=$lt_NMEDIT
  14899. # Tool to manipulate fat objects and archives on Mac OS X.
  14900. LIPO=$lt_LIPO
  14901. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14902. OTOOL=$lt_OTOOL
  14903. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14904. OTOOL64=$lt_OTOOL64
  14905. # Old archive suffix (normally "a").
  14906. libext=$libext
  14907. # Shared library suffix (normally ".so").
  14908. shrext_cmds=$lt_shrext_cmds
  14909. # The commands to extract the exported symbol list from a shared archive.
  14910. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14911. # Variables whose values should be saved in libtool wrapper scripts and
  14912. # restored at link time.
  14913. variables_saved_for_relink=$lt_variables_saved_for_relink
  14914. # Do we need the "lib" prefix for modules?
  14915. need_lib_prefix=$need_lib_prefix
  14916. # Do we need a version for libraries?
  14917. need_version=$need_version
  14918. # Library versioning type.
  14919. version_type=$version_type
  14920. # Shared library runtime path variable.
  14921. runpath_var=$runpath_var
  14922. # Shared library path variable.
  14923. shlibpath_var=$shlibpath_var
  14924. # Is shlibpath searched before the hard-coded library search path?
  14925. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14926. # Format of library name prefix.
  14927. libname_spec=$lt_libname_spec
  14928. # List of archive names. First name is the real one, the rest are links.
  14929. # The last name is the one that the linker finds with -lNAME
  14930. library_names_spec=$lt_library_names_spec
  14931. # The coded name of the library, if different from the real name.
  14932. soname_spec=$lt_soname_spec
  14933. # Command to use after installation of a shared archive.
  14934. postinstall_cmds=$lt_postinstall_cmds
  14935. # Command to use after uninstallation of a shared archive.
  14936. postuninstall_cmds=$lt_postuninstall_cmds
  14937. # Commands used to finish a libtool library installation in a directory.
  14938. finish_cmds=$lt_finish_cmds
  14939. # As "finish_cmds", except a single script fragment to be evaled but
  14940. # not shown.
  14941. finish_eval=$lt_finish_eval
  14942. # Whether we should hardcode library paths into libraries.
  14943. hardcode_into_libs=$hardcode_into_libs
  14944. # Compile-time system search path for libraries.
  14945. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14946. # Run-time system search path for libraries.
  14947. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14948. # Whether dlopen is supported.
  14949. dlopen_support=$enable_dlopen
  14950. # Whether dlopen of programs is supported.
  14951. dlopen_self=$enable_dlopen_self
  14952. # Whether dlopen of statically linked programs is supported.
  14953. dlopen_self_static=$enable_dlopen_self_static
  14954. # Commands to strip libraries.
  14955. old_striplib=$lt_old_striplib
  14956. striplib=$lt_striplib
  14957. # The linker used to build libraries.
  14958. LD=$lt_LD
  14959. # Commands used to build an old-style archive.
  14960. old_archive_cmds=$lt_old_archive_cmds
  14961. # A language specific compiler.
  14962. CC=$lt_compiler
  14963. # Is the compiler the GNU compiler?
  14964. with_gcc=$GCC
  14965. # Compiler flag to turn off builtin functions.
  14966. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14967. # How to pass a linker flag through the compiler.
  14968. wl=$lt_lt_prog_compiler_wl
  14969. # Additional compiler flags for building library objects.
  14970. pic_flag=$lt_lt_prog_compiler_pic
  14971. # Compiler flag to prevent dynamic linking.
  14972. link_static_flag=$lt_lt_prog_compiler_static
  14973. # Does compiler simultaneously support -c and -o options?
  14974. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14975. # Whether or not to add -lc for building shared libraries.
  14976. build_libtool_need_lc=$archive_cmds_need_lc
  14977. # Whether or not to disallow shared libs when runtime libs are static.
  14978. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14979. # Compiler flag to allow reflexive dlopens.
  14980. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14981. # Compiler flag to generate shared objects directly from archives.
  14982. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14983. # Whether the compiler copes with passing no objects directly.
  14984. compiler_needs_object=$lt_compiler_needs_object
  14985. # Create an old-style archive from a shared archive.
  14986. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14987. # Create a temporary old-style archive to link instead of a shared archive.
  14988. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14989. # Commands used to build a shared archive.
  14990. archive_cmds=$lt_archive_cmds
  14991. archive_expsym_cmds=$lt_archive_expsym_cmds
  14992. # Commands used to build a loadable module if different from building
  14993. # a shared archive.
  14994. module_cmds=$lt_module_cmds
  14995. module_expsym_cmds=$lt_module_expsym_cmds
  14996. # Whether we are building with GNU ld or not.
  14997. with_gnu_ld=$lt_with_gnu_ld
  14998. # Flag that allows shared libraries with undefined symbols to be built.
  14999. allow_undefined_flag=$lt_allow_undefined_flag
  15000. # Flag that enforces no undefined symbols.
  15001. no_undefined_flag=$lt_no_undefined_flag
  15002. # Flag to hardcode \$libdir into a binary during linking.
  15003. # This must work even if \$libdir does not exist
  15004. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15005. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15006. # during linking. This must work even if \$libdir does not exist.
  15007. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15008. # Whether we need a single "-rpath" flag with a separated argument.
  15009. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15010. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15011. # DIR into the resulting binary.
  15012. hardcode_direct=$hardcode_direct
  15013. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15014. # DIR into the resulting binary and the resulting library dependency is
  15015. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15016. # library is relocated.
  15017. hardcode_direct_absolute=$hardcode_direct_absolute
  15018. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15019. # into the resulting binary.
  15020. hardcode_minus_L=$hardcode_minus_L
  15021. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15022. # into the resulting binary.
  15023. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15024. # Set to "yes" if building a shared library automatically hardcodes DIR
  15025. # into the library and all subsequent libraries and executables linked
  15026. # against it.
  15027. hardcode_automatic=$hardcode_automatic
  15028. # Set to yes if linker adds runtime paths of dependent libraries
  15029. # to runtime path list.
  15030. inherit_rpath=$inherit_rpath
  15031. # Whether libtool must link a program against all its dependency libraries.
  15032. link_all_deplibs=$link_all_deplibs
  15033. # Fix the shell variable \$srcfile for the compiler.
  15034. fix_srcfile_path=$lt_fix_srcfile_path
  15035. # Set to "yes" if exported symbols are required.
  15036. always_export_symbols=$always_export_symbols
  15037. # The commands to list exported symbols.
  15038. export_symbols_cmds=$lt_export_symbols_cmds
  15039. # Symbols that should not be listed in the preloaded symbols.
  15040. exclude_expsyms=$lt_exclude_expsyms
  15041. # Symbols that must always be exported.
  15042. include_expsyms=$lt_include_expsyms
  15043. # Commands necessary for linking programs (against libraries) with templates.
  15044. prelink_cmds=$lt_prelink_cmds
  15045. # Specify filename containing input files.
  15046. file_list_spec=$lt_file_list_spec
  15047. # How to hardcode a shared library path into an executable.
  15048. hardcode_action=$hardcode_action
  15049. # The directories searched by this compiler when creating a shared library.
  15050. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15051. # Dependencies to place before and after the objects being linked to
  15052. # create a shared library.
  15053. predep_objects=$lt_predep_objects
  15054. postdep_objects=$lt_postdep_objects
  15055. predeps=$lt_predeps
  15056. postdeps=$lt_postdeps
  15057. # The library search path used internally by the compiler when linking
  15058. # a shared library.
  15059. compiler_lib_search_path=$lt_compiler_lib_search_path
  15060. # ### END LIBTOOL CONFIG
  15061. _LT_EOF
  15062. case $host_os in
  15063. aix3*)
  15064. cat <<\_LT_EOF >> "$cfgfile"
  15065. # AIX sometimes has problems with the GCC collect2 program. For some
  15066. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15067. # vanish in a puff of smoke.
  15068. if test "X${COLLECT_NAMES+set}" != Xset; then
  15069. COLLECT_NAMES=
  15070. export COLLECT_NAMES
  15071. fi
  15072. _LT_EOF
  15073. ;;
  15074. esac
  15075. ltmain="$ac_aux_dir/ltmain.sh"
  15076. # We use sed instead of cat because bash on DJGPP gets confused if
  15077. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15078. # text mode, it properly converts lines to CR/LF. This bash problem
  15079. # is reportedly fixed, but why not run on old versions too?
  15080. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15081. || (rm -f "$cfgfile"; exit 1)
  15082. case $xsi_shell in
  15083. yes)
  15084. cat << \_LT_EOF >> "$cfgfile"
  15085. # func_dirname file append nondir_replacement
  15086. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15087. # otherwise set result to NONDIR_REPLACEMENT.
  15088. func_dirname ()
  15089. {
  15090. case ${1} in
  15091. */*) func_dirname_result="${1%/*}${2}" ;;
  15092. * ) func_dirname_result="${3}" ;;
  15093. esac
  15094. }
  15095. # func_basename file
  15096. func_basename ()
  15097. {
  15098. func_basename_result="${1##*/}"
  15099. }
  15100. # func_dirname_and_basename file append nondir_replacement
  15101. # perform func_basename and func_dirname in a single function
  15102. # call:
  15103. # dirname: Compute the dirname of FILE. If nonempty,
  15104. # add APPEND to the result, otherwise set result
  15105. # to NONDIR_REPLACEMENT.
  15106. # value returned in "$func_dirname_result"
  15107. # basename: Compute filename of FILE.
  15108. # value retuned in "$func_basename_result"
  15109. # Implementation must be kept synchronized with func_dirname
  15110. # and func_basename. For efficiency, we do not delegate to
  15111. # those functions but instead duplicate the functionality here.
  15112. func_dirname_and_basename ()
  15113. {
  15114. case ${1} in
  15115. */*) func_dirname_result="${1%/*}${2}" ;;
  15116. * ) func_dirname_result="${3}" ;;
  15117. esac
  15118. func_basename_result="${1##*/}"
  15119. }
  15120. # func_stripname prefix suffix name
  15121. # strip PREFIX and SUFFIX off of NAME.
  15122. # PREFIX and SUFFIX must not contain globbing or regex special
  15123. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15124. # dot (in which case that matches only a dot).
  15125. func_stripname ()
  15126. {
  15127. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15128. # positional parameters, so assign one to ordinary parameter first.
  15129. func_stripname_result=${3}
  15130. func_stripname_result=${func_stripname_result#"${1}"}
  15131. func_stripname_result=${func_stripname_result%"${2}"}
  15132. }
  15133. # func_opt_split
  15134. func_opt_split ()
  15135. {
  15136. func_opt_split_opt=${1%%=*}
  15137. func_opt_split_arg=${1#*=}
  15138. }
  15139. # func_lo2o object
  15140. func_lo2o ()
  15141. {
  15142. case ${1} in
  15143. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15144. *) func_lo2o_result=${1} ;;
  15145. esac
  15146. }
  15147. # func_xform libobj-or-source
  15148. func_xform ()
  15149. {
  15150. func_xform_result=${1%.*}.lo
  15151. }
  15152. # func_arith arithmetic-term...
  15153. func_arith ()
  15154. {
  15155. func_arith_result=$(( $* ))
  15156. }
  15157. # func_len string
  15158. # STRING may not start with a hyphen.
  15159. func_len ()
  15160. {
  15161. func_len_result=${#1}
  15162. }
  15163. _LT_EOF
  15164. ;;
  15165. *) # Bourne compatible functions.
  15166. cat << \_LT_EOF >> "$cfgfile"
  15167. # func_dirname file append nondir_replacement
  15168. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15169. # otherwise set result to NONDIR_REPLACEMENT.
  15170. func_dirname ()
  15171. {
  15172. # Extract subdirectory from the argument.
  15173. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15174. if test "X$func_dirname_result" = "X${1}"; then
  15175. func_dirname_result="${3}"
  15176. else
  15177. func_dirname_result="$func_dirname_result${2}"
  15178. fi
  15179. }
  15180. # func_basename file
  15181. func_basename ()
  15182. {
  15183. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15184. }
  15185. # func_stripname prefix suffix name
  15186. # strip PREFIX and SUFFIX off of NAME.
  15187. # PREFIX and SUFFIX must not contain globbing or regex special
  15188. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15189. # dot (in which case that matches only a dot).
  15190. # func_strip_suffix prefix name
  15191. func_stripname ()
  15192. {
  15193. case ${2} in
  15194. .*) func_stripname_result=`$ECHO "X${3}" \
  15195. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15196. *) func_stripname_result=`$ECHO "X${3}" \
  15197. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15198. esac
  15199. }
  15200. # sed scripts:
  15201. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15202. my_sed_long_arg='1s/^-[^=]*=//'
  15203. # func_opt_split
  15204. func_opt_split ()
  15205. {
  15206. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15207. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15208. }
  15209. # func_lo2o object
  15210. func_lo2o ()
  15211. {
  15212. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15213. }
  15214. # func_xform libobj-or-source
  15215. func_xform ()
  15216. {
  15217. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15218. }
  15219. # func_arith arithmetic-term...
  15220. func_arith ()
  15221. {
  15222. func_arith_result=`expr "$@"`
  15223. }
  15224. # func_len string
  15225. # STRING may not start with a hyphen.
  15226. func_len ()
  15227. {
  15228. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15229. }
  15230. _LT_EOF
  15231. esac
  15232. case $lt_shell_append in
  15233. yes)
  15234. cat << \_LT_EOF >> "$cfgfile"
  15235. # func_append var value
  15236. # Append VALUE to the end of shell variable VAR.
  15237. func_append ()
  15238. {
  15239. eval "$1+=\$2"
  15240. }
  15241. _LT_EOF
  15242. ;;
  15243. *)
  15244. cat << \_LT_EOF >> "$cfgfile"
  15245. # func_append var value
  15246. # Append VALUE to the end of shell variable VAR.
  15247. func_append ()
  15248. {
  15249. eval "$1=\$$1\$2"
  15250. }
  15251. _LT_EOF
  15252. ;;
  15253. esac
  15254. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15255. || (rm -f "$cfgfile"; exit 1)
  15256. mv -f "$cfgfile" "$ofile" ||
  15257. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15258. chmod +x "$ofile"
  15259. cat <<_LT_EOF >> "$ofile"
  15260. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15261. # The linker used to build libraries.
  15262. LD=$lt_LD_CXX
  15263. # Commands used to build an old-style archive.
  15264. old_archive_cmds=$lt_old_archive_cmds_CXX
  15265. # A language specific compiler.
  15266. CC=$lt_compiler_CXX
  15267. # Is the compiler the GNU compiler?
  15268. with_gcc=$GCC_CXX
  15269. # Compiler flag to turn off builtin functions.
  15270. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15271. # How to pass a linker flag through the compiler.
  15272. wl=$lt_lt_prog_compiler_wl_CXX
  15273. # Additional compiler flags for building library objects.
  15274. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15275. # Compiler flag to prevent dynamic linking.
  15276. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15277. # Does compiler simultaneously support -c and -o options?
  15278. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15279. # Whether or not to add -lc for building shared libraries.
  15280. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15281. # Whether or not to disallow shared libs when runtime libs are static.
  15282. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15283. # Compiler flag to allow reflexive dlopens.
  15284. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15285. # Compiler flag to generate shared objects directly from archives.
  15286. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15287. # Whether the compiler copes with passing no objects directly.
  15288. compiler_needs_object=$lt_compiler_needs_object_CXX
  15289. # Create an old-style archive from a shared archive.
  15290. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15291. # Create a temporary old-style archive to link instead of a shared archive.
  15292. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15293. # Commands used to build a shared archive.
  15294. archive_cmds=$lt_archive_cmds_CXX
  15295. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15296. # Commands used to build a loadable module if different from building
  15297. # a shared archive.
  15298. module_cmds=$lt_module_cmds_CXX
  15299. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15300. # Whether we are building with GNU ld or not.
  15301. with_gnu_ld=$lt_with_gnu_ld_CXX
  15302. # Flag that allows shared libraries with undefined symbols to be built.
  15303. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15304. # Flag that enforces no undefined symbols.
  15305. no_undefined_flag=$lt_no_undefined_flag_CXX
  15306. # Flag to hardcode \$libdir into a binary during linking.
  15307. # This must work even if \$libdir does not exist
  15308. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15309. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15310. # during linking. This must work even if \$libdir does not exist.
  15311. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15312. # Whether we need a single "-rpath" flag with a separated argument.
  15313. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15314. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15315. # DIR into the resulting binary.
  15316. hardcode_direct=$hardcode_direct_CXX
  15317. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15318. # DIR into the resulting binary and the resulting library dependency is
  15319. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15320. # library is relocated.
  15321. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15322. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15323. # into the resulting binary.
  15324. hardcode_minus_L=$hardcode_minus_L_CXX
  15325. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15326. # into the resulting binary.
  15327. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15328. # Set to "yes" if building a shared library automatically hardcodes DIR
  15329. # into the library and all subsequent libraries and executables linked
  15330. # against it.
  15331. hardcode_automatic=$hardcode_automatic_CXX
  15332. # Set to yes if linker adds runtime paths of dependent libraries
  15333. # to runtime path list.
  15334. inherit_rpath=$inherit_rpath_CXX
  15335. # Whether libtool must link a program against all its dependency libraries.
  15336. link_all_deplibs=$link_all_deplibs_CXX
  15337. # Fix the shell variable \$srcfile for the compiler.
  15338. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15339. # Set to "yes" if exported symbols are required.
  15340. always_export_symbols=$always_export_symbols_CXX
  15341. # The commands to list exported symbols.
  15342. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15343. # Symbols that should not be listed in the preloaded symbols.
  15344. exclude_expsyms=$lt_exclude_expsyms_CXX
  15345. # Symbols that must always be exported.
  15346. include_expsyms=$lt_include_expsyms_CXX
  15347. # Commands necessary for linking programs (against libraries) with templates.
  15348. prelink_cmds=$lt_prelink_cmds_CXX
  15349. # Specify filename containing input files.
  15350. file_list_spec=$lt_file_list_spec_CXX
  15351. # How to hardcode a shared library path into an executable.
  15352. hardcode_action=$hardcode_action_CXX
  15353. # The directories searched by this compiler when creating a shared library.
  15354. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15355. # Dependencies to place before and after the objects being linked to
  15356. # create a shared library.
  15357. predep_objects=$lt_predep_objects_CXX
  15358. postdep_objects=$lt_postdep_objects_CXX
  15359. predeps=$lt_predeps_CXX
  15360. postdeps=$lt_postdeps_CXX
  15361. # The library search path used internally by the compiler when linking
  15362. # a shared library.
  15363. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15364. # ### END LIBTOOL TAG CONFIG: CXX
  15365. _LT_EOF
  15366. ;;
  15367. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15368. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15369. # are listed without --file. Let's play safe and only enable the eval
  15370. # if we detect the quoting.
  15371. case $CONFIG_FILES in
  15372. *\'*) eval set x "$CONFIG_FILES" ;;
  15373. *) set x $CONFIG_FILES ;;
  15374. esac
  15375. shift
  15376. for mf
  15377. do
  15378. # Strip MF so we end up with the name of the file.
  15379. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15380. # Check whether this is an Automake generated Makefile or not.
  15381. # We used to match only the files named `Makefile.in', but
  15382. # some people rename them; so instead we look at the file content.
  15383. # Grep'ing the first line is not enough: some people post-process
  15384. # each Makefile.in and add a new line on top of each file to say so.
  15385. # Grep'ing the whole file is not good either: AIX grep has a line
  15386. # limit of 2048, but all sed's we know have understand at least 4000.
  15387. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15388. dirpart=`$as_dirname -- "$mf" ||
  15389. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15390. X"$mf" : 'X\(//\)[^/]' \| \
  15391. X"$mf" : 'X\(//\)$' \| \
  15392. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15393. $as_echo X"$mf" |
  15394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15395. s//\1/
  15396. q
  15397. }
  15398. /^X\(\/\/\)[^/].*/{
  15399. s//\1/
  15400. q
  15401. }
  15402. /^X\(\/\/\)$/{
  15403. s//\1/
  15404. q
  15405. }
  15406. /^X\(\/\).*/{
  15407. s//\1/
  15408. q
  15409. }
  15410. s/.*/./; q'`
  15411. else
  15412. continue
  15413. fi
  15414. # Extract the definition of DEPDIR, am__include, and am__quote
  15415. # from the Makefile without running `make'.
  15416. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15417. test -z "$DEPDIR" && continue
  15418. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15419. test -z "am__include" && continue
  15420. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15421. # When using ansi2knr, U may be empty or an underscore; expand it
  15422. U=`sed -n 's/^U = //p' < "$mf"`
  15423. # Find all dependency output files, they are included files with
  15424. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15425. # simplest approach to changing $(DEPDIR) to its actual value in the
  15426. # expansion.
  15427. for file in `sed -n "
  15428. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15429. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15430. # Make sure the directory exists.
  15431. test -f "$dirpart/$file" && continue
  15432. fdir=`$as_dirname -- "$file" ||
  15433. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15434. X"$file" : 'X\(//\)[^/]' \| \
  15435. X"$file" : 'X\(//\)$' \| \
  15436. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15437. $as_echo X"$file" |
  15438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15439. s//\1/
  15440. q
  15441. }
  15442. /^X\(\/\/\)[^/].*/{
  15443. s//\1/
  15444. q
  15445. }
  15446. /^X\(\/\/\)$/{
  15447. s//\1/
  15448. q
  15449. }
  15450. /^X\(\/\).*/{
  15451. s//\1/
  15452. q
  15453. }
  15454. s/.*/./; q'`
  15455. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15456. # echo "creating $dirpart/$file"
  15457. echo '# dummy' > "$dirpart/$file"
  15458. done
  15459. done
  15460. }
  15461. ;;
  15462. esac
  15463. done # for ac_tag
  15464. as_fn_exit 0
  15465. _ACEOF
  15466. ac_clean_files=$ac_clean_files_save
  15467. test $ac_write_fail = 0 ||
  15468. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15469. # configure is writing to config.log, and then calls config.status.
  15470. # config.status does its own redirection, appending to config.log.
  15471. # Unfortunately, on DOS this fails, as config.log is still kept open
  15472. # by configure, so config.status won't be able to write to it; its
  15473. # output is simply discarded. So we exec the FD to /dev/null,
  15474. # effectively closing config.log, so it can be properly (re)opened and
  15475. # appended to by config.status. When coming back to configure, we
  15476. # need to make the FD available again.
  15477. if test "$no_create" != yes; then
  15478. ac_cs_success=:
  15479. ac_config_status_args=
  15480. test "$silent" = yes &&
  15481. ac_config_status_args="$ac_config_status_args --quiet"
  15482. exec 5>/dev/null
  15483. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15484. exec 5>>config.log
  15485. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15486. # would make configure fail if this is the last instruction.
  15487. $ac_cs_success || as_fn_exit $?
  15488. fi
  15489. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15491. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15492. fi