12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988 |
- --- glib1.2-1.2.10.orig/Makefile.in
- +++ glib1.2-1.2.10/Makefile.in
- @@ -1,6 +1,6 @@
- -# Makefile.in generated automatically by automake 1.4 from Makefile.am
- +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
- -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- @@ -64,8 +64,10 @@
- AS = @AS@
- CC = @CC@
- DLLTOOL = @DLLTOOL@
- +ECHO = @ECHO@
- ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
- ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
- +EXEEXT = @EXEEXT@
- GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
- GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
- GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
- @@ -90,8 +92,10 @@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- OBJDUMP = @OBJDUMP@
- +OBJEXT = @OBJEXT@
- PACKAGE = @PACKAGE@
- RANLIB = @RANLIB@
- +STRIP = @STRIP@
- VERSION = @VERSION@
-
- AUTOMAKE_OPTIONS = 1.4
- @@ -154,18 +158,20 @@
- gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo \
- gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo \
- gutils.lo
- +noinst_PROGRAMS = testglib$(EXEEXT) testgdate$(EXEEXT) \
- +testgdateparser$(EXEEXT)
- PROGRAMS = $(noinst_PROGRAMS)
-
- testglib_SOURCES = testglib.c
- -testglib_OBJECTS = testglib.o
- +testglib_OBJECTS = testglib.$(OBJEXT)
- testglib_DEPENDENCIES = libglib.la
- testglib_LDFLAGS =
- testgdate_SOURCES = testgdate.c
- -testgdate_OBJECTS = testgdate.o
- +testgdate_OBJECTS = testgdate.$(OBJEXT)
- testgdate_DEPENDENCIES = libglib.la
- testgdate_LDFLAGS =
- testgdateparser_SOURCES = testgdateparser.c
- -testgdateparser_OBJECTS = testgdateparser.o
- +testgdateparser_OBJECTS = testgdateparser.$(OBJEXT)
- testgdateparser_DEPENDENCIES = libglib.la
- testgdateparser_LDFLAGS =
- SCRIPTS = $(bin_SCRIPTS)
- @@ -180,22 +186,22 @@
- HEADERS = $(glibinclude_HEADERS)
-
- DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
- -Makefile.am Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 \
- -config.guess config.h.in config.sub configure configure.in \
- -glib-config.in glib.pc.in glib.spec.in gmodule.pc.in gthread.pc.in \
- -install-sh ltconfig ltmain.sh missing mkinstalldirs
- +Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 config.guess \
- +config.h.in config.sub configure configure.in glib-config.in glib.pc.in \
- +glib.spec.in gmodule.pc.in gthread.pc.in install-sh ltmain.sh missing \
- +mkinstalldirs
-
-
- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
- -TAR = gtar
- +TAR = tar
- GZIP_ENV = --best
- SOURCES = $(libglib_la_SOURCES) testglib.c testgdate.c testgdateparser.c
- -OBJECTS = $(libglib_la_OBJECTS) testglib.o testgdate.o testgdateparser.o
- +OBJECTS = $(libglib_la_OBJECTS) testglib.$(OBJEXT) testgdate.$(OBJEXT) testgdateparser.$(OBJEXT)
-
- all: all-redirect
- .SUFFIXES:
- -.SUFFIXES: .S .c .lo .o .s
- +.SUFFIXES: .S .c .lo .o .obj .s
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
-
- @@ -203,7 +209,7 @@
- cd $(top_builddir) \
- && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
- -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
- +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
- cd $(srcdir) && $(ACLOCAL)
-
- config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- @@ -277,6 +283,11 @@
- .c.o:
- $(COMPILE) -c $<
-
- +# FIXME: We should only use cygpath when building on Windows,
- +# and only if it is available.
- +.c.obj:
- + $(COMPILE) -c `cygpath -w $<`
- +
- .s.o:
- $(COMPILE) -c $<
-
- @@ -285,6 +296,7 @@
-
- mostlyclean-compile:
- -rm -f *.o core *.core
- + -rm -f *.$(OBJEXT)
-
- clean-compile:
-
- @@ -324,16 +336,16 @@
-
- maintainer-clean-noinstPROGRAMS:
-
- -testglib: $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
- - @rm -f testglib
- +testglib$(EXEEXT): $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
- + @rm -f testglib$(EXEEXT)
- $(LINK) $(testglib_LDFLAGS) $(testglib_OBJECTS) $(testglib_LDADD) $(LIBS)
-
- -testgdate: $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
- - @rm -f testgdate
- +testgdate$(EXEEXT): $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
- + @rm -f testgdate$(EXEEXT)
- $(LINK) $(testgdate_LDFLAGS) $(testgdate_OBJECTS) $(testgdate_LDADD) $(LIBS)
-
- -testgdateparser: $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
- - @rm -f testgdateparser
- +testgdateparser$(EXEEXT): $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
- + @rm -f testgdateparser$(EXEEXT)
- $(LINK) $(testgdateparser_LDFLAGS) $(testgdateparser_OBJECTS) $(testgdateparser_LDADD) $(LIBS)
-
- install-binSCRIPTS: $(bin_SCRIPTS)
- @@ -463,7 +475,7 @@
- dot_seen=no; \
- rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
- rev="$$subdir $$rev"; \
- - test "$$subdir" = "." && dot_seen=yes; \
- + test "$$subdir" != "." || dot_seen=yes; \
- done; \
- test "$$dot_seen" = "no" && rev=". $$rev"; \
- target=`echo $@ | sed s/-recursive//`; \
- @@ -505,7 +517,7 @@
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
- - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
- + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
-
- mostlyclean-tags:
-
- @@ -575,35 +587,6 @@
- fi; \
- done
- $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
- -garray.lo garray.o : garray.c glib.h glibconfig.h
- -gcache.lo gcache.o : gcache.c glib.h glibconfig.h
- -gcompletion.lo gcompletion.o : gcompletion.c glib.h glibconfig.h
- -gdataset.lo gdataset.o : gdataset.c glib.h glibconfig.h
- -gdate.lo gdate.o : gdate.c config.h glib.h glibconfig.h
- -gerror.lo gerror.o : gerror.c config.h glib.h glibconfig.h
- -ghash.lo ghash.o : ghash.c glib.h glibconfig.h
- -ghook.lo ghook.o : ghook.c glib.h glibconfig.h
- -giochannel.lo giochannel.o : giochannel.c config.h glib.h glibconfig.h
- -giounix.lo giounix.o : giounix.c glib.h glibconfig.h
- -glist.lo glist.o : glist.c glib.h glibconfig.h
- -gmain.lo gmain.o : gmain.c config.h glib.h glibconfig.h
- -gmem.lo gmem.o : gmem.c config.h glib.h glibconfig.h
- -gmessages.lo gmessages.o : gmessages.c config.h glib.h glibconfig.h
- -gmutex.lo gmutex.o : gmutex.c glib.h glibconfig.h
- -gnode.lo gnode.o : gnode.c glib.h glibconfig.h
- -gprimes.lo gprimes.o : gprimes.c glib.h glibconfig.h
- -grel.lo grel.o : grel.c glib.h glibconfig.h
- -gscanner.lo gscanner.o : gscanner.c config.h glib.h glibconfig.h
- -gslist.lo gslist.o : gslist.c glib.h glibconfig.h
- -gstrfuncs.lo gstrfuncs.o : gstrfuncs.c config.h glib.h glibconfig.h
- -gstring.lo gstring.o : gstring.c glib.h glibconfig.h
- -gtimer.lo gtimer.o : gtimer.c config.h glib.h glibconfig.h
- -gtree.lo gtree.o : gtree.c glib.h glibconfig.h
- -gutils.lo gutils.o : gutils.c config.h glibconfig.h glib.h
- -testgdate.o: testgdate.c glib.h glibconfig.h
- -testgdateparser.o: testgdateparser.c glib.h glibconfig.h
- -testglib.o: testglib.c glib.h glibconfig.h
- -
- info-am:
- info: info-recursive
- dvi-am:
- --- glib1.2-1.2.10.orig/aclocal.m4
- +++ glib1.2-1.2.10/aclocal.m4
- @@ -1,6 +1,6 @@
- -dnl aclocal.m4 generated automatically by aclocal 1.4
- +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
-
- -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- dnl This file is free software; the Free Software Foundation
- dnl gives unlimited permission to copy and/or distribute it,
- dnl with or without modifications, as long as this notice is preserved.
- @@ -10,135 +10,3114 @@
- dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- dnl PARTICULAR PURPOSE.
-
- +# Do all the work for Automake. This macro actually does too much --
- +# some checks are only needed if your package does certain things.
- +# But this isn't really a big deal.
-
- -# serial 40 AC_PROG_LIBTOOL
- -AC_DEFUN(AC_PROG_LIBTOOL,
- -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
- +# serial 1
- +
- +dnl Usage:
- +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
- +
- +AC_DEFUN([AM_INIT_AUTOMAKE],
- +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
- +AC_REQUIRE([AC_PROG_INSTALL])
- +PACKAGE=[$1]
- +AC_SUBST(PACKAGE)
- +VERSION=[$2]
- +AC_SUBST(VERSION)
- +dnl test to see if srcdir already configured
- +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
- +fi
- +ifelse([$3],,
- +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
- +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
- +AC_REQUIRE([AM_SANITY_CHECK])
- +AC_REQUIRE([AC_ARG_PROGRAM])
- +dnl FIXME This is truly gross.
- +missing_dir=`cd $ac_aux_dir && pwd`
- +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
- +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
- +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
- +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
- +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
- +AC_REQUIRE([AC_PROG_MAKE_SET])])
- +
- +# Copyright 2002 Free Software Foundation, Inc.
- +
- +# This program is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2, or (at your option)
- +# any later version.
- +
- +# This program is distributed in the hope that it will be useful,
- +# but WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- +# GNU General Public License for more details.
- +
- +# You should have received a copy of the GNU General Public License
- +# along with this program; if not, write to the Free Software
- +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- +
- +# AM_AUTOMAKE_VERSION(VERSION)
- +# ----------------------------
- +# Automake X.Y traces this macro to ensure aclocal.m4 has been
- +# generated from the m4 files accompanying Automake X.Y.
- +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
- +
- +# AM_SET_CURRENT_AUTOMAKE_VERSION
- +# -------------------------------
- +# Call AM_AUTOMAKE_VERSION so it can be traced.
- +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
- +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
- + [AM_AUTOMAKE_VERSION([1.4-p6])])
- +
- +#
- +# Check to make sure that the build environment is sane.
- +#
- +
- +AC_DEFUN([AM_SANITY_CHECK],
- +[AC_MSG_CHECKING([whether build environment is sane])
- +# Just in case
- +sleep 1
- +echo timestamp > conftestfile
- +# Do `set' in a subshell so we don't clobber the current shell's
- +# arguments. Must try -L first in case configure is actually a
- +# symlink; some systems play weird games with the mod time of symlinks
- +# (eg FreeBSD returns the mod time of the symlink's containing
- +# directory).
- +if (
- + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- + if test "[$]*" = "X"; then
- + # -L didn't work.
- + set X `ls -t $srcdir/configure conftestfile`
- + fi
- + if test "[$]*" != "X $srcdir/configure conftestfile" \
- + && test "[$]*" != "X conftestfile $srcdir/configure"; then
- +
- + # If neither matched, then we have a broken ls. This can happen
- + # if, for instance, CONFIG_SHELL is bash and it inherits a
- + # broken ls alias from the environment. This has actually
- + # happened. Such a system could not be considered "sane".
- + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
- +alias in your environment])
- + fi
- +
- + test "[$]2" = conftestfile
- + )
- +then
- + # Ok.
- + :
- +else
- + AC_MSG_ERROR([newly created file is older than distributed files!
- +Check your system clock])
- +fi
- +rm -f conftest*
- +AC_MSG_RESULT(yes)])
- +
- +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
- +dnl The program must properly implement --version.
- +AC_DEFUN([AM_MISSING_PROG],
- +[AC_MSG_CHECKING(for working $2)
- +# Run test in a subshell; some versions of sh will print an error if
- +# an executable is not found, even if stderr is redirected.
- +# Redirect stdin to placate older versions of autoconf. Sigh.
- +if ($2 --version) < /dev/null > /dev/null 2>&1; then
- + $1=$2
- + AC_MSG_RESULT(found)
- +else
- + $1="$3/missing $2"
- + AC_MSG_RESULT(missing)
- +fi
- +AC_SUBST($1)])
- +
- +# Like AC_CONFIG_HEADER, but automatically create stamp file.
- +
- +AC_DEFUN([AM_CONFIG_HEADER],
- +[AC_PREREQ([2.12])
- +AC_CONFIG_HEADER([$1])
- +dnl When config.status generates a header, we must update the stamp-h file.
- +dnl This file resides in the same directory as the config header
- +dnl that is generated. We must strip everything past the first ":",
- +dnl and everything past the last "/".
- +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
- +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
- +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
- +<<am_indx=1
- +for am_file in <<$1>>; do
- + case " <<$>>CONFIG_HEADERS " in
- + *" <<$>>am_file "*<<)>>
- + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
- + ;;
- + esac
- + am_indx=`expr "<<$>>am_indx" + 1`
- +done<<>>dnl>>)
- +changequote([,]))])
-
- -# Save cache, so that ltconfig can load it
- -AC_CACHE_SAVE
- +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
-
- -# Actually configure libtool. ac_aux_dir is where install-sh is found.
- -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
- -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
- -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
- -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
- -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
- -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
- -|| AC_MSG_ERROR([libtool configure failed])
- +# serial 46 AC_PROG_LIBTOOL
-
- -# Reload cache, that may have been modified by ltconfig
- -AC_CACHE_LOAD
- +AC_DEFUN([AC_PROG_LIBTOOL],
- +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-
- # This can be used to rebuild libtool when needed
- -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
- +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
- AC_SUBST(LIBTOOL)dnl
-
- -# Redirect the config.log output again, so that the ltconfig log is not
- -# clobbered by the next message.
- -exec 5>>./config.log
- +# Prevent multiple expansion
- +define([AC_PROG_LIBTOOL], [])
- ])
-
- -AC_DEFUN(AC_LIBTOOL_SETUP,
- +AC_DEFUN([AC_LIBTOOL_SETUP],
- [AC_PREREQ(2.13)dnl
- AC_REQUIRE([AC_ENABLE_SHARED])dnl
- AC_REQUIRE([AC_ENABLE_STATIC])dnl
- AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
- AC_REQUIRE([AC_CANONICAL_HOST])dnl
- AC_REQUIRE([AC_CANONICAL_BUILD])dnl
- -AC_REQUIRE([AC_PROG_RANLIB])dnl
- AC_REQUIRE([AC_PROG_CC])dnl
- AC_REQUIRE([AC_PROG_LD])dnl
- +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
- AC_REQUIRE([AC_PROG_NM])dnl
- +AC_REQUIRE([LT_AC_PROG_SED])dnl
- +
- AC_REQUIRE([AC_PROG_LN_S])dnl
- +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
- +AC_REQUIRE([AC_OBJEXT])dnl
- +AC_REQUIRE([AC_EXEEXT])dnl
- dnl
-
- -case "$target" in
- -NONE) lt_target="$host" ;;
- -*) lt_target="$target" ;;
- +_LT_AC_PROG_ECHO_BACKSLASH
- +# Only perform the check for file, if the check method requires it
- +case $deplibs_check_method in
- +file_magic*)
- + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- + AC_PATH_MAGIC
- + fi
- + ;;
- esac
-
- -# Check for any special flags to pass to ltconfig.
- -libtool_flags="--cache-file=$cache_file"
- -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
- -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
- -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
- -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
- -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
- -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
- -[libtool_flags="$libtool_flags --enable-dlopen"])
- +AC_CHECK_TOOL(RANLIB, ranlib, :)
- +AC_CHECK_TOOL(STRIP, strip, :)
- +
- +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
- ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
- -[libtool_flags="$libtool_flags --enable-win32-dll"])
- +enable_win32_dll=yes, enable_win32_dll=no)
- +
- AC_ARG_ENABLE(libtool-lock,
- [ --disable-libtool-lock avoid locking (might break parallel builds)])
- -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
- -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
- +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
- +
- +# Some flags need to be propagated to the compiler or linker for good
- +# libtool support.
- +case $host in
- +*-*-irix6*)
- + # Find out which ABI we are using.
- + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- + if AC_TRY_EVAL(ac_compile); then
- + case `/usr/bin/file conftest.$ac_objext` in
- + *32-bit*)
- + LD="${LD-ld} -32"
- + ;;
- + *N32*)
- + LD="${LD-ld} -n32"
- + ;;
- + *64-bit*)
- + LD="${LD-ld} -64"
- + ;;
- + esac
- + fi
- + rm -rf conftest*
- + ;;
- +
- +*-*-sco3.2v5*)
- + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- + SAVE_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -belf"
- + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- + [AC_LANG_SAVE
- + AC_LANG_C
- + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
- + AC_LANG_RESTORE])
- + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- + CFLAGS="$SAVE_CFLAGS"
- + fi
- + ;;
- +
- +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
- +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
- + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- + AC_CHECK_TOOL(AS, as, false)
- + AC_CHECK_TOOL(OBJDUMP, objdump, false)
- +
- + # recent cygwin and mingw systems supply a stub DllMain which the user
- + # can override, but on older systems we have to supply one
- + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
- + [AC_TRY_LINK([],
- + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
- + DllMain (0, 0, 0);],
- + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
- +
- + case $host/$CC in
- + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
- + # old mingw systems require "-dll" to link a DLL, while more recent ones
- + # require "-mdll"
- + SAVE_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -mdll"
- + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
- + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
- + CFLAGS="$SAVE_CFLAGS" ;;
- + *-*-cygwin* | *-*-pw32*)
- + # cygwin systems need to pass --dll to the linker, and not link
- + # crt.o which will require a WinMain@16 definition.
- + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
- + esac
- + ;;
- + ])
- +esac
- +
- +_LT_AC_LTCONFIG_HACK
- +
- +])
- +
- +# AC_LIBTOOL_HEADER_ASSERT
- +# ------------------------
- +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
- +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
- + [lt_cv_func_assert_works],
- + [case $host in
- + *-*-solaris*)
- + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
- + case `$CC --version 2>/dev/null` in
- + [[12]].*) lt_cv_func_assert_works=no ;;
- + *) lt_cv_func_assert_works=yes ;;
- + esac
- + fi
- + ;;
- + esac])
- +
- +if test "x$lt_cv_func_assert_works" = xyes; then
- + AC_CHECK_HEADERS(assert.h)
- +fi
- +])# AC_LIBTOOL_HEADER_ASSERT
- +
- +# _LT_AC_CHECK_DLFCN
- +# --------------------
- +AC_DEFUN([_LT_AC_CHECK_DLFCN],
- +[AC_CHECK_HEADERS(dlfcn.h)
- +])# _LT_AC_CHECK_DLFCN
- +
- +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
- +# ---------------------------------
- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
- +[AC_REQUIRE([AC_CANONICAL_HOST])
- +AC_REQUIRE([AC_PROG_NM])
- +AC_REQUIRE([AC_OBJEXT])
- +# Check for command to grab the raw symbol name followed by C symbol from nm.
- +AC_MSG_CHECKING([command to parse $NM output])
- +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
- +
- +# These are sane defaults that work on at least a few old systems.
- +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
- +
- +# Character class describing NM global symbol codes.
- +symcode='[[BCDEGRST]]'
- +
- +# Regexp to match symbols that can be accessed directly from C.
- +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
- +
- +# Transform the above into a raw symbol and a C symbol.
- +symxfrm='\1 \2\3 \3'
- +
- +# Transform an extracted symbol line into a proper C declaration
- +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
- +
- +# Transform an extracted symbol line into symbol name and symbol address
- +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- +
- +# Define system-specific variables.
- +case $host_os in
- +aix*)
- + symcode='[[BCDT]]'
- + ;;
- +cygwin* | mingw* | pw32*)
- + symcode='[[ABCDGISTW]]'
- + ;;
- +hpux*) # Its linker distinguishes data from code symbols
- + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- + ;;
- +irix* | nonstopux*)
- + symcode='[[BCDEGRST]]'
- + ;;
- +osf*)
- + symcode='[[BCDEGQRST]]'
- + ;;
- +solaris* | sysv5*)
- + symcode='[[BDT]]'
- + ;;
- +sysv4)
- + symcode='[[DFNSTU]]'
- + ;;
- +esac
- +
- +# Handle CRLF in mingw tool chain
- +opt_cr=
- +case $host_os in
- +mingw*)
- + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- + ;;
- +esac
- +
- +# If we're using GNU nm, then use its standard symbol codes.
- +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
- + symcode='[[ABCDGISTW]]'
- +fi
- +
- +# Try without a prefix undercore, then with it.
- +for ac_symprfx in "" "_"; do
- +
- + # Write the raw and C identifiers.
- +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
- +
- + # Check to see that the pipe works correctly.
- + pipe_works=no
- + rm -f conftest*
- + cat > conftest.$ac_ext <<EOF
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
- +char nm_test_var;
- +void nm_test_func(){}
- +#ifdef __cplusplus
- +}
- +#endif
- +int main(){nm_test_var='a';nm_test_func();return(0);}
- +EOF
- +
- + if AC_TRY_EVAL(ac_compile); then
- + # Now try to grab the symbols.
- + nlist=conftest.nm
- + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
- + # Try sorting and uniquifying the output.
- + if sort "$nlist" | uniq > "$nlist"T; then
- + mv -f "$nlist"T "$nlist"
- + else
- + rm -f "$nlist"T
- + fi
- +
- + # Make sure that we snagged all the symbols we need.
- + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
- + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
- + cat <<EOF > conftest.$ac_ext
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
- +
- +EOF
- + # Now generate the symbol file.
- + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
- +
- + cat <<EOF >> conftest.$ac_ext
- +#if defined (__STDC__) && __STDC__
- +# define lt_ptr void *
- +#else
- +# define lt_ptr char *
- +# define const
- +#endif
- +
- +/* The mapping between symbol names and symbols. */
- +const struct {
- + const char *name;
- + lt_ptr address;
- +}
- +lt_preloaded_symbols[[]] =
- +{
- +EOF
- + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
- + cat <<\EOF >> conftest.$ac_ext
- + {0, (lt_ptr) 0}
- +};
- +
- +#ifdef __cplusplus
- +}
- +#endif
- +EOF
- + # Now try linking the two files.
- + mv conftest.$ac_objext conftstm.$ac_objext
- + save_LIBS="$LIBS"
- + save_CFLAGS="$CFLAGS"
- + LIBS="conftstm.$ac_objext"
- + CFLAGS="$CFLAGS$no_builtin_flag"
- + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
- + pipe_works=yes
- + fi
- + LIBS="$save_LIBS"
- + CFLAGS="$save_CFLAGS"
- + else
- + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
- + fi
- + else
- + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
- + fi
- + else
- + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
- + fi
- + else
- + echo "$progname: failed program was:" >&AC_FD_CC
- + cat conftest.$ac_ext >&5
- + fi
- + rm -f conftest* conftst*
- +
- + # Do not use the global_symbol_pipe unless it works.
- + if test "$pipe_works" = yes; then
- + break
- + else
- + lt_cv_sys_global_symbol_pipe=
- + fi
- +done
- +])
- +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
- +if test -z "$lt_cv_sys_global_symbol_pipe"; then
- + global_symbol_to_cdecl=
- + global_symbol_to_c_name_address=
- +else
- + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
- + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
- +fi
- +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
- +then
- + AC_MSG_RESULT(failed)
- +else
- + AC_MSG_RESULT(ok)
- +fi
- +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
- +
- +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
- +# ---------------------------------
- +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
- +[# Find the correct PATH separator. Usually this is `:', but
- +# DJGPP uses `;' like DOS.
- +if test "X${PATH_SEPARATOR+set}" != Xset; then
- + UNAME=${UNAME-`uname 2>/dev/null`}
- + case X$UNAME in
- + *-DOS) lt_cv_sys_path_separator=';' ;;
- + *) lt_cv_sys_path_separator=':' ;;
- + esac
- + PATH_SEPARATOR=$lt_cv_sys_path_separator
- +fi
- +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
- +
- +# _LT_AC_PROG_ECHO_BACKSLASH
- +# --------------------------
- +# Add some code to the start of the generated configure script which
- +# will find an echo command which doesn't interpret backslashes.
- +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
- +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
- + [AC_DIVERT_PUSH(NOTICE)])
- +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
- +
- +# Check that we are running under the correct shell.
- +SHELL=${CONFIG_SHELL-/bin/sh}
- +
- +case X$ECHO in
- +X*--fallback-echo)
- + # Remove one level of quotation (which was required for Make).
- + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
- + ;;
- +esac
- +
- +echo=${ECHO-echo}
- +if test "X[$]1" = X--no-reexec; then
- + # Discard the --no-reexec flag, and continue.
- + shift
- +elif test "X[$]1" = X--fallback-echo; then
- + # Avoid inline document here, it may be left over
- + :
- +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
- + # Yippee, $echo works!
- + :
- +else
- + # Restart under the correct shell.
- + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
- +fi
- +
- +if test "X[$]1" = X--fallback-echo; then
- + # used as fallback echo
- + shift
- + cat <<EOF
- +$*
- +EOF
- + exit 0
- +fi
- +
- +# The HP-UX ksh and POSIX shell print the target directory to stdout
- +# if CDPATH is set.
- +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
- +
- +if test -z "$ECHO"; then
- +if test "X${echo_test_string+set}" != Xset; then
- +# find a string as large as possible, as long as the shell can cope with it
- + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
- + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
- + echo_test_string="`eval $cmd`" &&
- + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- + then
- + break
- + fi
- + done
- +fi
- +
- +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + :
- +else
- + # The Solaris, AIX, and Digital Unix default echo programs unquote
- + # backslashes. This makes it impossible to quote backslashes using
- + # echo "$something" | sed 's/\\/\\\\/g'
- + #
- + # So, first we look for a working echo in the user's PATH.
- +
- + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- + for dir in $PATH /usr/ucb; do
- + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + echo="$dir/echo"
- + break
- + fi
- + done
- + IFS="$save_ifs"
- +
- + if test "X$echo" = Xecho; then
- + # We didn't find a better echo, so look for alternatives.
- + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + # This shell has a builtin print -r that does the trick.
- + echo='print -r'
- + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- + test "X$CONFIG_SHELL" != X/bin/ksh; then
- + # If we have ksh, try running configure again with it.
- + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- + export ORIGINAL_CONFIG_SHELL
- + CONFIG_SHELL=/bin/ksh
- + export CONFIG_SHELL
- + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
- + else
- + # Try using printf.
- + echo='printf %s\n'
- + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + # Cool, printf works
- + :
- + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- + test "X$echo_testing_string" = 'X\t' &&
- + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- + export CONFIG_SHELL
- + SHELL="$CONFIG_SHELL"
- + export SHELL
- + echo="$CONFIG_SHELL [$]0 --fallback-echo"
- + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- + test "X$echo_testing_string" = 'X\t' &&
- + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + echo="$CONFIG_SHELL [$]0 --fallback-echo"
- + else
- + # maybe with a smaller string...
- + prev=:
- +
- + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
- + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- + then
- + break
- + fi
- + prev="$cmd"
- + done
- +
- + if test "$prev" != 'sed 50q "[$]0"'; then
- + echo_test_string=`eval $prev`
- + export echo_test_string
- + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
- + else
- + # Oops. We lost completely, so just stick with echo.
- + echo=echo
- + fi
- + fi
- + fi
- + fi
- +fi
- +fi
- +
- +# Copy echo and quote the copy suitably for passing to libtool from
- +# the Makefile, instead of quoting the original, which is used later.
- +ECHO=$echo
- +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
- + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
- +fi
- +
- +AC_SUBST(ECHO)
- +AC_DIVERT_POP
- +])# _LT_AC_PROG_ECHO_BACKSLASH
- +
- +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
- +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
- +# ------------------------------------------------------------------
- +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
- +[if test "$cross_compiling" = yes; then :
- + [$4]
- +else
- + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
- + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- + lt_status=$lt_dlunknown
- + cat > conftest.$ac_ext <<EOF
- +[#line __oline__ "configure"
- +#include "confdefs.h"
- +
- +#if HAVE_DLFCN_H
- +#include <dlfcn.h>
- +#endif
- +
- +#include <stdio.h>
- +
- +#ifdef RTLD_GLOBAL
- +# define LT_DLGLOBAL RTLD_GLOBAL
- +#else
- +# ifdef DL_GLOBAL
- +# define LT_DLGLOBAL DL_GLOBAL
- +# else
- +# define LT_DLGLOBAL 0
- +# endif
- +#endif
- +
- +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- + find out it does not work in some platform. */
- +#ifndef LT_DLLAZY_OR_NOW
- +# ifdef RTLD_LAZY
- +# define LT_DLLAZY_OR_NOW RTLD_LAZY
- +# else
- +# ifdef DL_LAZY
- +# define LT_DLLAZY_OR_NOW DL_LAZY
- +# else
- +# ifdef RTLD_NOW
- +# define LT_DLLAZY_OR_NOW RTLD_NOW
- +# else
- +# ifdef DL_NOW
- +# define LT_DLLAZY_OR_NOW DL_NOW
- +# else
- +# define LT_DLLAZY_OR_NOW 0
- +# endif
- +# endif
- +# endif
- +# endif
- +#endif
- +
- +#ifdef __cplusplus
- +extern "C" void exit (int);
- +#endif
- +
- +void fnord() { int i=42;}
- +int main ()
- +{
- + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- + int status = $lt_dlunknown;
- +
- + if (self)
- + {
- + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- + /* dlclose (self); */
- + }
- +
- + exit (status);
- +}]
- +EOF
- + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
- + (./conftest; exit; ) 2>/dev/null
- + lt_status=$?
- + case x$lt_status in
- + x$lt_dlno_uscore) $1 ;;
- + x$lt_dlneed_uscore) $2 ;;
- + x$lt_unknown|x*) $3 ;;
- + esac
- + else :
- + # compilation failed
- + $3
- + fi
- +fi
- +rm -fr conftest*
- +])# _LT_AC_TRY_DLOPEN_SELF
- +
- +# AC_LIBTOOL_DLOPEN_SELF
- +# -------------------
- +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
- +[if test "x$enable_dlopen" != xyes; then
- + enable_dlopen=unknown
- + enable_dlopen_self=unknown
- + enable_dlopen_self_static=unknown
- +else
- + lt_cv_dlopen=no
- + lt_cv_dlopen_libs=
- +
- + case $host_os in
- + beos*)
- + lt_cv_dlopen="load_add_on"
- + lt_cv_dlopen_libs=
- + lt_cv_dlopen_self=yes
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + lt_cv_dlopen="LoadLibrary"
- + lt_cv_dlopen_libs=
- + ;;
- +
- + *)
- + AC_CHECK_FUNC([shl_load],
- + [lt_cv_dlopen="shl_load"],
- + [AC_CHECK_LIB([dld], [shl_load],
- + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
- + [AC_CHECK_FUNC([dlopen],
- + [lt_cv_dlopen="dlopen"],
- + [AC_CHECK_LIB([dl], [dlopen],
- + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
- + [AC_CHECK_LIB([svld], [dlopen],
- + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
- + [AC_CHECK_LIB([dld], [dld_link],
- + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
- + ])
- + ])
- + ])
- + ])
- + ])
- + ;;
- + esac
- +
- + if test "x$lt_cv_dlopen" != xno; then
- + enable_dlopen=yes
- + else
- + enable_dlopen=no
- + fi
- +
- + case $lt_cv_dlopen in
- + dlopen)
- + save_CPPFLAGS="$CPPFLAGS"
- + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
- + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
- +
- + save_LDFLAGS="$LDFLAGS"
- + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
- +
- + save_LIBS="$LIBS"
- + LIBS="$lt_cv_dlopen_libs $LIBS"
- +
- + AC_CACHE_CHECK([whether a program can dlopen itself],
- + lt_cv_dlopen_self, [dnl
- + _LT_AC_TRY_DLOPEN_SELF(
- + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
- + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
- + ])
- +
- + if test "x$lt_cv_dlopen_self" = xyes; then
- + LDFLAGS="$LDFLAGS $link_static_flag"
- + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
- + lt_cv_dlopen_self_static, [dnl
- + _LT_AC_TRY_DLOPEN_SELF(
- + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
- + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
- + ])
- + fi
- +
- + CPPFLAGS="$save_CPPFLAGS"
- + LDFLAGS="$save_LDFLAGS"
- + LIBS="$save_LIBS"
- + ;;
- + esac
- +
- + case $lt_cv_dlopen_self in
- + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- + *) enable_dlopen_self=unknown ;;
- + esac
- +
- + case $lt_cv_dlopen_self_static in
- + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- + *) enable_dlopen_self_static=unknown ;;
- + esac
- +fi
- +])# AC_LIBTOOL_DLOPEN_SELF
- +
- +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
- +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
- +# Sed substitution that helps us do robust quoting. It backslashifies
- +# metacharacters that are still active within double-quoted strings.
- +Xsed='sed -e s/^X//'
- +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
- +
- +# Same as above, but do not quote variable references.
- +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
- +
- +# Sed substitution to delay expansion of an escaped shell variable in a
- +# double_quote_subst'ed string.
- +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
- +
- +# Constants:
- +rm="rm -f"
- +
- +# Global variables:
- +default_ofile=libtool
- +can_build_shared=yes
- +
- +# All known linkers require a `.a' archive for static linking (except M$VC,
- +# which needs '.lib').
- +libext=a
- +ltmain="$ac_aux_dir/ltmain.sh"
- +ofile="$default_ofile"
- +with_gnu_ld="$lt_cv_prog_gnu_ld"
- +need_locks="$enable_libtool_lock"
- +
- +old_CC="$CC"
- +old_CFLAGS="$CFLAGS"
- +
- +# Set sane defaults for various variables
- +test -z "$AR" && AR=ar
- +test -z "$AR_FLAGS" && AR_FLAGS=cru
- +test -z "$AS" && AS=as
- +test -z "$CC" && CC=cc
- +test -z "$DLLTOOL" && DLLTOOL=dlltool
- +test -z "$LD" && LD=ld
- +test -z "$LN_S" && LN_S="ln -s"
- +test -z "$MAGIC_CMD" && MAGIC_CMD=file
- +test -z "$NM" && NM=nm
- +test -z "$OBJDUMP" && OBJDUMP=objdump
- +test -z "$RANLIB" && RANLIB=:
- +test -z "$STRIP" && STRIP=:
- +test -z "$ac_objext" && ac_objext=o
- +
- +if test x"$host" != x"$build"; then
- + ac_tool_prefix=${host_alias}-
- +else
- + ac_tool_prefix=
- +fi
- +
- +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
- +case $host_os in
- +linux-gnu*) ;;
- +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
- +esac
- +
- +case $host_os in
- +aix3*)
- + # AIX sometimes has problems with the GCC collect2 program. For some
- + # reason, if we set the COLLECT_NAMES environment variable, the problems
- + # vanish in a puff of smoke.
- + if test "X${COLLECT_NAMES+set}" != Xset; then
- + COLLECT_NAMES=
- + export COLLECT_NAMES
- + fi
- + ;;
- +esac
- +
- +# Determine commands to create old-style static archives.
- +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
- +old_postinstall_cmds='chmod 644 $oldlib'
- +old_postuninstall_cmds=
- +
- +if test -n "$RANLIB"; then
- + case $host_os in
- + openbsd*)
- + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
- + ;;
- + *)
- + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
- + ;;
- + esac
- + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- +fi
- +
- +# Allow CC to be a program name with arguments.
- +set dummy $CC
- +compiler="[$]2"
- +
- +AC_MSG_CHECKING([for objdir])
- +rm -f .libs 2>/dev/null
- +mkdir .libs 2>/dev/null
- +if test -d .libs; then
- + objdir=.libs
- +else
- + # MS-DOS does not allow filenames that begin with a dot.
- + objdir=_libs
- +fi
- +rmdir .libs 2>/dev/null
- +AC_MSG_RESULT($objdir)
- +
- +
- +AC_ARG_WITH(pic,
- +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
- +pic_mode="$withval", pic_mode=default)
- +test -z "$pic_mode" && pic_mode=default
- +
- +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
- +# in isolation, and that seeing it set (from the cache) indicates that
- +# the associated values are set (in the cache) correctly too.
- +AC_MSG_CHECKING([for $compiler option to produce PIC])
- +AC_CACHE_VAL(lt_cv_prog_cc_pic,
- +[ lt_cv_prog_cc_pic=
- + lt_cv_prog_cc_shlib=
- + lt_cv_prog_cc_wl=
- + lt_cv_prog_cc_static=
- + lt_cv_prog_cc_no_builtin=
- + lt_cv_prog_cc_can_build_shared=$can_build_shared
- +
- + if test "$GCC" = yes; then
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-static'
- +
- + case $host_os in
- + aix*)
- + # Below there is a dirty hack to force normal static linking with -ldl
- + # The problem is because libdl dynamically linked with both libc and
- + # libC (AIX C++ library), which obviously doesn't included in libraries
- + # list by gcc. This cause undefined symbols with -static flags.
- + # This hack allows C programs to be linked with "-static -ldl", but
- + # not sure about C++ programs.
- + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
- + ;;
- + amigaos*)
- + # FIXME: we need at least 68020 code to build shared libraries, but
- + # adding the `-m68020' flag to GCC prevents building anything better,
- + # like `-m68040'.
- + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
- + ;;
- + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- + # PIC is the default for these OSes.
- + ;;
- + darwin* | rhapsody*)
- + # PIC is the default on this platform
- + # Common symbols not allowed in MH_DYLIB files
- + lt_cv_prog_cc_pic='-fno-common'
- + ;;
- + cygwin* | mingw* | pw32* | os2*)
- + # This hack is so that the source file can tell whether it is being
- + # built for inclusion in a dll (and should export symbols for example).
- + lt_cv_prog_cc_pic='-DDLL_EXPORT'
- + ;;
- + sysv4*MP*)
- + if test -d /usr/nec; then
- + lt_cv_prog_cc_pic=-Kconform_pic
- + fi
- + ;;
- + *)
- + lt_cv_prog_cc_pic='-fPIC'
- + ;;
- + esac
- + else
- + # PORTME Check for PIC flags for the system compiler.
- + case $host_os in
- + aix3* | aix4* | aix5*)
- + lt_cv_prog_cc_wl='-Wl,'
- + # All AIX code is PIC.
- + if test "$host_cpu" = ia64; then
- + # AIX 5 now supports IA64 processor
- + lt_cv_prog_cc_static='-Bstatic'
- + else
- + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
- + fi
- + ;;
- +
- + hpux9* | hpux10* | hpux11*)
- + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
- + lt_cv_prog_cc_pic='+Z'
- + ;;
- +
- + irix5* | irix6* | nonstopux*)
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-non_shared'
- + # PIC (with -KPIC) is the default.
- + ;;
- +
- + cygwin* | mingw* | pw32* | os2*)
- + # This hack is so that the source file can tell whether it is being
- + # built for inclusion in a dll (and should export symbols for example).
- + lt_cv_prog_cc_pic='-DDLL_EXPORT'
- + ;;
- +
- + newsos6)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + ;;
- +
- + osf3* | osf4* | osf5*)
- + # All OSF/1 code is PIC.
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-non_shared'
- + ;;
- +
- + sco3.2v5*)
- + lt_cv_prog_cc_pic='-Kpic'
- + lt_cv_prog_cc_static='-dn'
- + lt_cv_prog_cc_shlib='-belf'
- + ;;
- +
- + solaris*)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Wl,'
- + ;;
- +
- + sunos4*)
- + lt_cv_prog_cc_pic='-PIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Qoption ld '
- + ;;
- +
- + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Wl,'
- + ;;
- +
- + uts4*)
- + lt_cv_prog_cc_pic='-pic'
- + lt_cv_prog_cc_static='-Bstatic'
- + ;;
- +
- + sysv4*MP*)
- + if test -d /usr/nec ;then
- + lt_cv_prog_cc_pic='-Kconform_pic'
- + lt_cv_prog_cc_static='-Bstatic'
- + fi
- + ;;
- +
- + *)
- + lt_cv_prog_cc_can_build_shared=no
- + ;;
- + esac
- + fi
- +])
- +if test -z "$lt_cv_prog_cc_pic"; then
- + AC_MSG_RESULT([none])
- +else
- + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
- +
- + # Check to make sure the pic_flag actually works.
- + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
- + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
- + AC_TRY_COMPILE([], [], [dnl
- + case $host_os in
- + hpux9* | hpux10* | hpux11*)
- + # On HP-UX, both CC and GCC only warn that PIC is supported... then
- + # they create non-PIC objects. So, if there were any warnings, we
- + # assume that PIC is not supported.
- + if test -s conftest.err; then
- + lt_cv_prog_cc_pic_works=no
- + else
- + lt_cv_prog_cc_pic_works=yes
- + fi
- + ;;
- + *)
- + lt_cv_prog_cc_pic_works=yes
- + ;;
- + esac
- + ], [dnl
- + lt_cv_prog_cc_pic_works=no
- + ])
- + CFLAGS="$save_CFLAGS"
- + ])
- +
- + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
- + lt_cv_prog_cc_pic=
- + lt_cv_prog_cc_can_build_shared=no
- + else
- + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
- + fi
- +
- + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
- +fi
- +
- +# Check for any special shared library compilation flags.
- +if test -n "$lt_cv_prog_cc_shlib"; then
- + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
- + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
- + else
- + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
- + lt_cv_prog_cc_can_build_shared=no
- + fi
- +fi
- +
- +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
- +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
- + lt_cv_prog_cc_static_works=no
- + save_LDFLAGS="$LDFLAGS"
- + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
- + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
- + LDFLAGS="$save_LDFLAGS"
- +])
- +
- +# Belt *and* braces to stop my trousers falling down:
- +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
- +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
- +
- +pic_flag="$lt_cv_prog_cc_pic"
- +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
- +wl="$lt_cv_prog_cc_wl"
- +link_static_flag="$lt_cv_prog_cc_static"
- +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
- +can_build_shared="$lt_cv_prog_cc_can_build_shared"
- +
- +
- +# Check to see if options -o and -c are simultaneously supported by compiler
- +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
- +AC_CACHE_VAL([lt_cv_compiler_c_o], [
- +$rm -r conftest 2>/dev/null
- +mkdir conftest
- +cd conftest
- +echo "int some_variable = 0;" > conftest.$ac_ext
- +mkdir out
- +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
- +# that will create temporary files in the current directory regardless of
- +# the output directory. Thus, making CWD read-only will cause this test
- +# to fail, enabling locking or at least warning the user not to do parallel
- +# builds.
- +chmod -w .
- +save_CFLAGS="$CFLAGS"
- +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
- +compiler_c_o=no
- +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s out/conftest.err; then
- + lt_cv_compiler_c_o=no
- + else
- + lt_cv_compiler_c_o=yes
- + fi
- +else
- + # Append any errors to the config.log.
- + cat out/conftest.err 1>&AC_FD_CC
- + lt_cv_compiler_c_o=no
- +fi
- +CFLAGS="$save_CFLAGS"
- +chmod u+w .
- +$rm conftest* out/*
- +rmdir out
- +cd ..
- +rmdir conftest
- +$rm -r conftest 2>/dev/null
- +])
- +compiler_c_o=$lt_cv_compiler_c_o
- +AC_MSG_RESULT([$compiler_c_o])
- +
- +if test x"$compiler_c_o" = x"yes"; then
- + # Check to see if we can write to a .lo
- + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
- + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
- + lt_cv_compiler_o_lo=no
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -c -o conftest.lo"
- + save_objext="$ac_objext"
- + ac_objext=lo
- + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s conftest.err; then
- + lt_cv_compiler_o_lo=no
- + else
- + lt_cv_compiler_o_lo=yes
- + fi
- + ])
- + ac_objext="$save_objext"
- + CFLAGS="$save_CFLAGS"
- + ])
- + compiler_o_lo=$lt_cv_compiler_o_lo
- + AC_MSG_RESULT([$compiler_o_lo])
- +else
- + compiler_o_lo=no
- +fi
- +
- +# Check to see if we can do hard links to lock some files if needed
- +hard_links="nottested"
- +if test "$compiler_c_o" = no && test "$need_locks" != no; then
- + # do not overwrite the value of need_locks provided by the user
- + AC_MSG_CHECKING([if we can lock with hard links])
- + hard_links=yes
- + $rm conftest*
- + ln conftest.a conftest.b 2>/dev/null && hard_links=no
- + touch conftest.a
- + ln conftest.a conftest.b 2>&5 || hard_links=no
- + ln conftest.a conftest.b 2>/dev/null && hard_links=no
- + AC_MSG_RESULT([$hard_links])
- + if test "$hard_links" = no; then
- + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
- + need_locks=warn
- + fi
- +else
- + need_locks=no
- +fi
- +
- +if test "$GCC" = yes; then
- + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
- + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
- + echo "int some_variable = 0;" > conftest.$ac_ext
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
- + compiler_rtti_exceptions=no
- + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s conftest.err; then
- + compiler_rtti_exceptions=no
- + else
- + compiler_rtti_exceptions=yes
- + fi
- + ])
- + CFLAGS="$save_CFLAGS"
- + AC_MSG_RESULT([$compiler_rtti_exceptions])
- +
- + if test "$compiler_rtti_exceptions" = "yes"; then
- + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
- + else
- + no_builtin_flag=' -fno-builtin'
- + fi
- +fi
- +
- +# See if the linker supports building shared libraries.
- +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
- +
- +allow_undefined_flag=
- +no_undefined_flag=
- +need_lib_prefix=unknown
- +need_version=unknown
- +# when you set need_version to no, make sure it does not cause -set_version
- +# flags to be left without arguments
- +archive_cmds=
- +archive_expsym_cmds=
- +old_archive_from_new_cmds=
- +old_archive_from_expsyms_cmds=
- +export_dynamic_flag_spec=
- +whole_archive_flag_spec=
- +thread_safe_flag_spec=
- +hardcode_into_libs=no
- +hardcode_libdir_flag_spec=
- +hardcode_libdir_separator=
- +hardcode_direct=no
- +hardcode_minus_L=no
- +hardcode_shlibpath_var=unsupported
- +runpath_var=
- +link_all_deplibs=unknown
- +always_export_symbols=no
- +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
- +# include_expsyms should be a list of space-separated symbols to be *always*
- +# included in the symbol list
- +include_expsyms=
- +# exclude_expsyms can be an egrep regular expression of symbols to exclude
- +# it will be wrapped by ` (' and `)$', so one must not match beginning or
- +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- +# as well as any symbol that contains `d'.
- +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
- +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- +# platforms (ab)use it in PIC code, but their linkers get confused if
- +# the symbol is explicitly referenced. Since portable code cannot
- +# rely on this symbol name, it's probably fine to never include it in
- +# preloaded symbol tables.
- +extract_expsyms_cmds=
- +
- +case $host_os in
- +cygwin* | mingw* | pw32*)
- + # FIXME: the MSVC++ port hasn't been tested in a loooong time
- + # When not using gcc, we currently assume that we are using
- + # Microsoft Visual C++.
- + if test "$GCC" != yes; then
- + with_gnu_ld=no
- + fi
- + ;;
- +openbsd*)
- + with_gnu_ld=no
- + ;;
- +esac
- +
- +ld_shlibs=yes
- +if test "$with_gnu_ld" = yes; then
- + # If archive_cmds runs LD, not CC, wlarc should be empty
- + wlarc='${wl}'
- +
- + # See if GNU ld supports shared libraries.
- + case $host_os in
- + aix3* | aix4* | aix5*)
- + # On AIX, the GNU linker is very broken
- + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
- + ld_shlibs=no
- + cat <<EOF 1>&2
- +
- +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
- +*** to be unable to reliably create shared libraries on AIX.
- +*** Therefore, libtool is disabling shared libraries support. If you
- +*** really care for shared libraries, you may want to modify your PATH
- +*** so that a non-GNU linker is found, and then restart.
- +
- +EOF
- + ;;
- +
- + amigaos*)
- + 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)'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- +
- + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- + # that the semantics of dynamic libraries on AmigaOS, at least up
- + # to version 4, is to share data among multiple programs linked
- + # with the same dynamic library. Since this doesn't match the
- + # behavior of shared libraries on other platforms, we can use
- + # them.
- + ld_shlibs=no
- + ;;
- +
- + beos*)
- + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + allow_undefined_flag=unsupported
- + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- + # support --undefined. This deserves some investigation. FIXME
- + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + # hardcode_libdir_flag_spec is actually meaningless, as there is
- + # no search path for DLLs.
- + hardcode_libdir_flag_spec='-L$libdir'
- + allow_undefined_flag=unsupported
- + always_export_symbols=yes
- +
- + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
- + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
- + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
- + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
- + else $CC -o impgen impgen.c ; fi)~
- + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
- +
- + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
- +
- + # cygwin and mingw dlls have different entry points and sets of symbols
- + # to exclude.
- + # FIXME: what about values for MSVC?
- + dll_entry=__cygwin_dll_entry@12
- + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
- + case $host_os in
- + mingw*)
- + # mingw values
- + dll_entry=_DllMainCRTStartup@12
- + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
- + ;;
- + esac
- +
- + # mingw and cygwin differ, and it's simplest to just exclude the union
- + # of the two symbol sets.
- + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
- +
- + # recent cygwin and mingw systems supply a stub DllMain which the user
- + # can override, but on older systems we have to supply one (in ltdll.c)
- + if test "x$lt_cv_need_dllmain" = "xyes"; then
- + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
- + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
- + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
- + else
- + ltdll_obj=
- + ltdll_cmds=
- + fi
- +
- + # Extract the symbol export list from an `--export-all' def file,
- + # then regenerate the def file from the symbol export list, so that
- + # the compiled dll only exports the symbol export list.
- + # Be careful not to strip the DATA tag left be newer dlltools.
- + export_symbols_cmds="$ltdll_cmds"'
- + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
- + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
- +
- + # If the export-symbols file already is a .def file (1st line
- + # is EXPORTS), use it as is.
- + # If DATA tags from a recent dlltool are present, honour them!
- + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
- + cp $export_symbols $output_objdir/$soname-def;
- + else
- + echo EXPORTS > $output_objdir/$soname-def;
- + _lt_hint=1;
- + cat $export_symbols | while read symbol; do
- + set dummy \$symbol;
- + case \[$]# in
- + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
- + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
- + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
- + esac;
- + _lt_hint=`expr 1 + \$_lt_hint`;
- + done;
- + fi~
- + '"$ltdll_cmds"'
- + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
- + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
- + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
- + ;;
- +
- + netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- + wlarc=
- + else
- + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + fi
- + ;;
- +
- + solaris* | sysv5*)
- + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
- + ld_shlibs=no
- + cat <<EOF 1>&2
- +
- +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
- +*** create shared libraries on Solaris systems. Therefore, libtool
- +*** is disabling shared libraries support. We urge you to upgrade GNU
- +*** binutils to release 2.9.1 or newer. Another option is to modify
- +*** your PATH or compiler configuration so that the native linker is
- +*** used, and then restart.
- +
- +EOF
- + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- +
- + sunos4*)
- + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + wlarc=
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + *)
- + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- + esac
- +
- + if test "$ld_shlibs" = yes; then
- + runpath_var=LD_RUN_PATH
- + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- + export_dynamic_flag_spec='${wl}--export-dynamic'
- + case $host_os in
- + cygwin* | mingw* | pw32*)
- + # dlltool doesn't understand --whole-archive et. al.
- + whole_archive_flag_spec=
- + ;;
- + *)
- + # ancient GNU ld didn't support --whole-archive et. al.
- + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
- + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- + else
- + whole_archive_flag_spec=
- + fi
- + ;;
- + esac
- + fi
- +else
- + # PORTME fill in a description of your system's linker (not GNU ld)
- + case $host_os in
- + aix3*)
- + allow_undefined_flag=unsupported
- + always_export_symbols=yes
- + 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'
- + # Note: this linker hardcodes the directories in LIBPATH if there
- + # are no directories specified by -L.
- + hardcode_minus_L=yes
- + if test "$GCC" = yes && test -z "$link_static_flag"; then
- + # Neither direct hardcoding nor static linking is supported with a
- + # broken collect2.
- + hardcode_direct=unsupported
- + fi
- + ;;
- +
- + aix4* | aix5*)
- + if test "$host_cpu" = ia64; then
- + # On IA64, the linker does run time linking by default, so we don't
- + # have to do anything special.
- + aix_use_runtimelinking=no
- + exp_sym_flag='-Bexport'
- + no_entry_flag=""
- + else
- + aix_use_runtimelinking=no
- +
- + # Test if we are trying to use run time linking or normal
- + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- + # need to do runtime linking.
- + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- + for ld_flag in $LDFLAGS; do
- + case $ld_flag in
- + *-brtl*)
- + aix_use_runtimelinking=yes
- + break
- + ;;
- + esac
- + done
- + esac
- +
- + exp_sym_flag='-bexport'
- + no_entry_flag='-bnoentry'
- + fi
- +
- + # When large executables or shared objects are built, AIX ld can
- + # have problems creating the table of contents. If linking a library
- + # or program results in "error TOC overflow" add -mminimal-toc to
- + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
- +
- + hardcode_direct=yes
- + archive_cmds=''
- + hardcode_libdir_separator=':'
- + if test "$GCC" = yes; then
- + case $host_os in aix4.[[012]]|aix4.[[012]].*)
- + collect2name=`${CC} -print-prog-name=collect2`
- + if test -f "$collect2name" && \
- + strings "$collect2name" | grep resolve_lib_name >/dev/null
- + then
- + # We have reworked collect2
- + hardcode_direct=yes
- + else
- + # We have old collect2
- + hardcode_direct=unsupported
- + # It fails to find uninstalled libraries when the uninstalled
- + # path is not listed in the libpath. Setting hardcode_minus_L
- + # to unsupported forces relinking
- + hardcode_minus_L=yes
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_libdir_separator=
- + fi
- + esac
- +
- + shared_flag='-shared'
- + else
- + # not using gcc
- + if test "$host_cpu" = ia64; then
- + shared_flag='${wl}-G'
- + else
- + if test "$aix_use_runtimelinking" = yes; then
- + shared_flag='${wl}-G'
- + else
- + shared_flag='${wl}-bM:SRE'
- + fi
- + fi
- + fi
- +
- + # It seems that -bexpall can do strange things, so it is better to
- + # generate a list of symbols to export.
- + always_export_symbols=yes
- + if test "$aix_use_runtimelinking" = yes; then
- + # Warning - without using the other runtime loading flags (-brtl),
- + # -berok will link without error, but may produce a broken library.
- + allow_undefined_flag='-berok'
- + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- + else
- + if test "$host_cpu" = ia64; then
- + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- + allow_undefined_flag="-z nodefs"
- + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- + else
- + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
- + # Warning - without using the other run time loading flags,
- + # -berok will link without error, but may produce a broken library.
- + allow_undefined_flag='${wl}-berok'
- + # This is a bit strange, but is similar to how AIX traditionally builds
- + # it's shared libraries.
- + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
- + fi
- + fi
- + ;;
- +
- + amigaos*)
- + 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)'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- + # see comment about different semantics on the GNU ld section
- + ld_shlibs=no
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + # When not using gcc, we currently assume that we are using
- + # Microsoft Visual C++.
- + # hardcode_libdir_flag_spec is actually meaningless, as there is
- + # no search path for DLLs.
- + hardcode_libdir_flag_spec=' '
- + allow_undefined_flag=unsupported
- + # Tell ltmain to make .lib files, not .a files.
- + libext=lib
- + # FIXME: Setting linknames here is a bad hack.
- + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
- + # The linker will automatically build a .lib file if we build a DLL.
- + old_archive_from_new_cmds='true'
- + # FIXME: Should let the user specify the lib program.
- + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
- + fix_srcfile_path='`cygpath -w "$srcfile"`'
- + ;;
- +
- + darwin* | rhapsody*)
- + case "$host_os" in
- + rhapsody* | darwin1.[[012]])
- + allow_undefined_flag='-undefined suppress'
- + ;;
- + *) # Darwin 1.3 on
- + allow_undefined_flag='-flat_namespace -undefined suppress'
- + ;;
- + esac
- + # FIXME: Relying on posixy $() will cause problems for
- + # cross-compilation, but unfortunately the echo tests do not
- + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
- + # `"' quotes if we put them in here... so don't!
- + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
- + # We need to add '_' to the symbols in $export_symbols first
- + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + whole_archive_flag_spec='-all_load $convenience'
- + ;;
- +
- + freebsd1*)
- + ld_shlibs=no
- + ;;
- +
- + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- + # support. Future versions do this automatically, but an explicit c++rt0.o
- + # does not break anything, and helps significantly (at the cost of a little
- + # extra space).
- + freebsd2.2*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- + freebsd2*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_minus_L=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- + freebsd*)
- + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + hpux9* | hpux10* | hpux11*)
- + case $host_os in
- + hpux9*) 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' ;;
- + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
- + esac
- + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- + hardcode_libdir_separator=:
- + hardcode_direct=yes
- + hardcode_minus_L=yes # Not in the search PATH, but as the default
- + # location of the library.
- + export_dynamic_flag_spec='${wl}-E'
- + ;;
- +
- + irix5* | irix6* | nonstopux*)
- + if test "$GCC" = yes; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + else
- + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='-rpath $libdir'
- + fi
- + hardcode_libdir_separator=:
- + link_all_deplibs=yes
- + ;;
- +
- + netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- + else
- + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- + fi
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + newsos6)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + hardcode_libdir_separator=:
- + hardcode_shlibpath_var=no
- + ;;
- +
- + openbsd*)
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- + export_dynamic_flag_spec='${wl}-E'
- + else
- + case "$host_os" in
- + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-R$libdir'
- + ;;
- + *)
- + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- + ;;
- + esac
- + fi
- + ;;
- +
- + os2*)
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- + allow_undefined_flag=unsupported
- + 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'
- + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- + ;;
- +
- + osf3*)
- + if test "$GCC" = yes; then
- + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + else
- + allow_undefined_flag=' -expect_unresolved \*'
- + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + fi
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + hardcode_libdir_separator=:
- + ;;
- +
- + osf4* | osf5*) # as osf3* with the addition of -msym flag
- + if test "$GCC" = yes; then
- + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + else
- + allow_undefined_flag=' -expect_unresolved \*'
- + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
- +
- + #Both c and cxx compiler support -rpath directly
- + hardcode_libdir_flag_spec='-rpath $libdir'
- + fi
- + hardcode_libdir_separator=:
- + ;;
- +
- + sco3.2v5*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + runpath_var=LD_RUN_PATH
- + hardcode_runpath_var=yes
- + export_dynamic_flag_spec='${wl}-Bexport'
- + ;;
- +
- + solaris*)
- + # gcc --version < 3.0 without binutils cannot create self contained
- + # shared libraries reliably, requiring libgcc.a to resolve some of
- + # the object symbols generated in some cases. Libraries that use
- + # assert need libgcc.a to resolve __eprintf, for example. Linking
- + # a copy of libgcc.a into every shared library to guarantee resolving
- + # such symbols causes other problems: According to Tim Van Holder
- + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
- + # (to the application) exception stack for one thing.
- + no_undefined_flag=' -z defs'
- + if test "$GCC" = yes; then
- + case `$CC --version 2>/dev/null` in
- + [[12]].*)
- + cat <<EOF 1>&2
- +
- +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
- +*** create self contained shared libraries on Solaris systems, without
- +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
- +*** -no-undefined support, which will at least allow you to build shared
- +*** libraries. However, you may find that when you link such libraries
- +*** into an application without using GCC, you have to manually add
- +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
- +*** upgrade to a newer version of GCC. Another option is to rebuild your
- +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
- +
- +EOF
- + no_undefined_flag=
- + ;;
- + esac
- + fi
- + # $CC -shared without GNU ld will not create a library from C++
- + # object files and a static libstdc++, better avoid it by now
- + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_shlibpath_var=no
- + case $host_os in
- + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
- + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
- + esac
- + link_all_deplibs=yes
- + ;;
- +
- + sunos4*)
- + if test "x$host_vendor" = xsequent; then
- + # Use $CC to link under sequent, because it throws in some extra .o
- + # files that make .init and .fini sections work.
- + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- + else
- + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- + fi
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_direct=yes
- + hardcode_minus_L=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4)
- + case $host_vendor in
- + sni)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes # is this really true???
- + ;;
- + siemens)
- + ## LD is ld it makes a PLAMLIB
- + ## CC just makes a GrossModule.
- + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- + reload_cmds='$CC -r -o $output$reload_objs'
- + hardcode_direct=no
- + ;;
- + motorola)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- + ;;
- + esac
- + runpath_var='LD_RUN_PATH'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4.3*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + export_dynamic_flag_spec='-Bexport'
- + ;;
- +
- + sysv5*)
- + no_undefined_flag=' -z text'
- + # $CC -shared without GNU ld will not create a library from C++
- + # object files and a static libstdc++, better avoid it by now
- + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- + hardcode_libdir_flag_spec=
- + hardcode_shlibpath_var=no
- + runpath_var='LD_RUN_PATH'
- + ;;
- +
- + uts4*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + dgux*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4*MP*)
- + if test -d /usr/nec; then
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + runpath_var=LD_RUN_PATH
- + hardcode_runpath_var=yes
- + ld_shlibs=yes
- + fi
- + ;;
- +
- + sysv4.2uw2*)
- + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_minus_L=no
- + hardcode_shlibpath_var=no
- + hardcode_runpath_var=yes
- + runpath_var=LD_RUN_PATH
- + ;;
- +
- + sysv5uw7* | unixware7*)
- + no_undefined_flag='${wl}-z ${wl}text'
- + if test "$GCC" = yes; then
- + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- + else
- + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- + fi
- + runpath_var='LD_RUN_PATH'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + *)
- + ld_shlibs=no
- + ;;
- + esac
- +fi
- +AC_MSG_RESULT([$ld_shlibs])
- +test "$ld_shlibs" = no && can_build_shared=no
- +
- +# Check hardcoding attributes.
- +AC_MSG_CHECKING([how to hardcode library paths into programs])
- +hardcode_action=
- +if test -n "$hardcode_libdir_flag_spec" || \
- + test -n "$runpath_var"; then
- +
- + # We can hardcode non-existant directories.
- + if test "$hardcode_direct" != no &&
- + # If the only mechanism to avoid hardcoding is shlibpath_var, we
- + # have to relink, otherwise we might link with an installed library
- + # when we should be linking with a yet-to-be-installed one
- + ## test "$hardcode_shlibpath_var" != no &&
- + test "$hardcode_minus_L" != no; then
- + # Linking always hardcodes the temporary library directory.
- + hardcode_action=relink
- + else
- + # We can link without hardcoding, and we can hardcode nonexisting dirs.
- + hardcode_action=immediate
- + fi
- +else
- + # We cannot hardcode anything, or else we can only hardcode existing
- + # directories.
- + hardcode_action=unsupported
- +fi
- +AC_MSG_RESULT([$hardcode_action])
- +
- +striplib=
- +old_striplib=
- +AC_MSG_CHECKING([whether stripping libraries is possible])
- +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- + AC_MSG_RESULT([yes])
- +else
- + AC_MSG_RESULT([no])
- +fi
- +
- +reload_cmds='$LD$reload_flag -o $output$reload_objs'
- +test -z "$deplibs_check_method" && deplibs_check_method=unknown
- +
- +# PORTME Fill in your ld.so characteristics
- +AC_MSG_CHECKING([dynamic linker characteristics])
- +library_names_spec=
- +libname_spec='lib$name'
- +soname_spec=
- +postinstall_cmds=
- +postuninstall_cmds=
- +finish_cmds=
- +finish_eval=
- +shlibpath_var=
- +shlibpath_overrides_runpath=unknown
- +version_type=none
- +dynamic_linker="$host_os ld.so"
- +sys_lib_dlsearch_path_spec="/lib /usr/lib"
- +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
- +
- +case $host_os in
- +aix3*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix $libname.a'
- + shlibpath_var=LIBPATH
- +
- + # AIX has no versioning support, so we append a major version to the name.
- + soname_spec='${libname}${release}.so$major'
- + ;;
- +
- +aix4* | aix5*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + hardcode_into_libs=yes
- + if test "$host_cpu" = ia64; then
- + # AIX 5 supports IA64
- + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + else
- + # With GCC up to 2.95.x, collect2 would create an import file
- + # for dependence libraries. The import file would start with
- + # the line `#! .'. This would cause the generated library to
- + # depend on `.', always an invalid library. This was fixed in
- + # development snapshots of GCC prior to 3.0.
- + case $host_os in
- + aix4 | aix4.[[01]] | aix4.[[01]].*)
- + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- + echo ' yes '
- + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- + :
- + else
- + can_build_shared=no
- + fi
- + ;;
- + esac
- + # AIX (on Power*) has no versioning support, so currently we can
- + # not hardcode correct soname into executable. Probably we can
- + # add versioning support to collect2, so additional links can
- + # be useful in future.
- + if test "$aix_use_runtimelinking" = yes; then
- + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- + # instead of lib<name>.a to let people know that these are not
- + # typical AIX shared libraries.
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + else
- + # We preserve .a as extension for shared libraries through AIX4.2
- + # and later when we are not doing run time linking.
- + library_names_spec='${libname}${release}.a $libname.a'
- + soname_spec='${libname}${release}.so$major'
- + fi
- + shlibpath_var=LIBPATH
- + fi
- + hardcode_into_libs=yes
- + ;;
- +
- +amigaos*)
- + library_names_spec='$libname.ixlibrary $libname.a'
- + # Create ${libname}_ixlibrary.a entries in /sys/libs.
- + 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'
- + ;;
- +
- +beos*)
- + library_names_spec='${libname}.so'
- + dynamic_linker="$host_os ld.so"
- + shlibpath_var=LIBRARY_PATH
- + ;;
- +
- +bsdi4*)
- + version_type=linux
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- + export_dynamic_flag_spec=-rdynamic
- + # the default ld.so.conf also contains /usr/contrib/lib and
- + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- + # libtool to hard-code these into programs
- + ;;
- +
- +cygwin* | mingw* | pw32*)
- + version_type=windows
- + need_version=no
- + need_lib_prefix=no
- + case $GCC,$host_os in
- + yes,cygwin*)
- + library_names_spec='$libname.dll.a'
- + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
- + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
- + dldir=$destdir/`dirname \$dlpath`~
- + test -d \$dldir || mkdir -p \$dldir~
- + $install_prog .libs/$dlname \$dldir/$dlname'
- + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
- + dlpath=$dir/\$dldll~
- + $rm \$dlpath'
- + ;;
- + yes,mingw*)
- + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
- + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
- + ;;
- + yes,pw32*)
- + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- + ;;
- + *)
- + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
- + ;;
- + esac
- + dynamic_linker='Win32 ld.exe'
- + # FIXME: first we should search . and the directory the executable is in
- + shlibpath_var=PATH
- + ;;
- +
- +darwin* | rhapsody*)
- + dynamic_linker="$host_os dyld"
- + version_type=darwin
- + need_lib_prefix=no
- + need_version=no
- + # FIXME: Relying on posixy $() will cause problems for
- + # cross-compilation, but unfortunately the echo tests do not
- + # yet detect zsh echo's removal of \ escapes.
- + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
- + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
- + shlibpath_overrides_runpath=yes
- + shlibpath_var=DYLD_LIBRARY_PATH
- + ;;
- +
- +freebsd1*)
- + dynamic_linker=no
- + ;;
- +
- +freebsd*-gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=no
- + hardcode_into_libs=yes
- + dynamic_linker='GNU/FreeBSD ld.so'
- + ;;
- +
- +freebsd*)
- + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- + version_type=freebsd-$objformat
- + case $version_type in
- + freebsd-elf*)
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
- + need_version=no
- + need_lib_prefix=no
- + ;;
- + freebsd-*)
- + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
- + need_version=yes
- + ;;
- + esac
- + shlibpath_var=LD_LIBRARY_PATH
- + case $host_os in
- + freebsd2*)
- + shlibpath_overrides_runpath=yes
- + ;;
- + *)
- + shlibpath_overrides_runpath=no
- + hardcode_into_libs=yes
- + ;;
- + esac
- + ;;
- +
- +gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + hardcode_into_libs=yes
- + ;;
- +
- +hpux9* | hpux10* | hpux11*)
- + # Give a soname corresponding to the major version so that dld.sl refuses to
- + # link against other versions.
- + dynamic_linker="$host_os dld.sl"
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + shlibpath_var=SHLIB_PATH
- + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
- + soname_spec='${libname}${release}.sl$major'
- + # HP-UX runs *really* slowly unless shared libraries are mode 555.
- + postinstall_cmds='chmod 555 $lib'
- + ;;
- +
- +irix5* | irix6* | nonstopux*)
- + case $host_os in
- + nonstopux*) version_type=nonstopux ;;
- + *) version_type=irix ;;
- + esac
- + need_lib_prefix=no
- + need_version=no
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
- + case $host_os in
- + irix5* | nonstopux*)
- + libsuff= shlibsuff=
- + ;;
- + *)
- + case $LD in # libtool.m4 will add one of these switches to LD
- + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
- + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
- + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
- + *) libsuff= shlibsuff= libmagic=never-match;;
- + esac
- + ;;
- + esac
- + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- + shlibpath_overrides_runpath=no
- + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- + ;;
- +
- +# No shared lib support for Linux oldld, aout, or coff.
- +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
- + dynamic_linker=no
- + ;;
- +
- +# This must be Linux ELF.
- +linux-gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=no
- + # This implies no fast_install, which is unacceptable.
- + # Some rework will be needed to allow for fast_install
- + # before this can be enabled.
- + hardcode_into_libs=yes
- +
- + # We used to test for /lib/ld.so.1 and disable shared libraries on
- + # powerpc, because MkLinux only supported shared libraries with the
- + # GNU dynamic linker. Since this was broken with cross compilers,
- + # most powerpc-linux boxes support dynamic linking these days and
- + # people can always --disable-shared, the test was removed, and we
- + # assume the GNU/Linux dynamic linker is in use.
- + dynamic_linker='GNU/Linux ld.so'
- + ;;
- +
- +netbsd*)
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- + dynamic_linker='NetBSD (a.out) ld.so'
- + else
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
- + soname_spec='${libname}${release}.so$major'
- + dynamic_linker='NetBSD ld.elf_so'
- + fi
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + hardcode_into_libs=yes
- + ;;
- +
- +newsos6)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + ;;
- +
- +openbsd*)
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + case "$host_os" in
- + openbsd2.[[89]] | openbsd2.[[89]].*)
- + shlibpath_overrides_runpath=no
- + ;;
- + *)
- + shlibpath_overrides_runpath=yes
- + ;;
- + esac
- + else
- + shlibpath_overrides_runpath=yes
- + fi
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +os2*)
- + libname_spec='$name'
- + need_lib_prefix=no
- + library_names_spec='$libname.dll $libname.a'
- + dynamic_linker='OS/2 ld.exe'
- + shlibpath_var=LIBPATH
- + ;;
- +
- +osf3* | osf4* | osf5*)
- + version_type=osf
- + need_version=no
- + need_lib_prefix=no
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- + hardcode_into_libs=yes
- + ;;
- +
- +sco3.2v5*)
- + version_type=osf
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +solaris*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + hardcode_into_libs=yes
- + # ldd complains unless libraries are executable
- + postinstall_cmds='chmod +x $lib'
- + ;;
- +
- +sunos4*)
- + version_type=sunos
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + if test "$with_gnu_ld" = yes; then
- + need_lib_prefix=no
- + fi
- + need_version=yes
- + ;;
- +
- +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + case $host_vendor in
- + sni)
- + shlibpath_overrides_runpath=no
- + need_lib_prefix=no
- + export_dynamic_flag_spec='${wl}-Blargedynsym'
- + runpath_var=LD_RUN_PATH
- + ;;
- + siemens)
- + need_lib_prefix=no
- + ;;
- + motorola)
- + need_lib_prefix=no
- + need_version=no
- + shlibpath_overrides_runpath=no
- + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- + ;;
- + esac
- + ;;
- +
- +uts4*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +dgux*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +sysv4*MP*)
- + if test -d /usr/nec ;then
- + version_type=linux
- + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
- + soname_spec='$libname.so.$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + fi
- + ;;
- +
- +*)
- + dynamic_linker=no
- + ;;
- +esac
- +AC_MSG_RESULT([$dynamic_linker])
- +test "$dynamic_linker" = no && can_build_shared=no
- +
- +# Report the final consequences.
- +AC_MSG_CHECKING([if libtool supports shared libraries])
- +AC_MSG_RESULT([$can_build_shared])
- +
- +AC_MSG_CHECKING([whether to build shared libraries])
- +test "$can_build_shared" = "no" && enable_shared=no
- +
- +# On AIX, shared libraries and static libraries use the same namespace, and
- +# are all built from PIC.
- +case "$host_os" in
- +aix3*)
- + test "$enable_shared" = yes && enable_static=no
- + if test -n "$RANLIB"; then
- + archive_cmds="$archive_cmds~\$RANLIB \$lib"
- + postinstall_cmds='$RANLIB $lib'
- + fi
- + ;;
- +
- +aix4*)
- + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- + test "$enable_shared" = yes && enable_static=no
- + fi
- + ;;
- +esac
- +AC_MSG_RESULT([$enable_shared])
- +
- +AC_MSG_CHECKING([whether to build static libraries])
- +# Make sure either enable_shared or enable_static is yes.
- +test "$enable_shared" = yes || enable_static=yes
- +AC_MSG_RESULT([$enable_static])
- +
- +if test "$hardcode_action" = relink; then
- + # Fast installation is not supported
- + enable_fast_install=no
- +elif test "$shlibpath_overrides_runpath" = yes ||
- + test "$enable_shared" = no; then
- + # Fast installation is not necessary
- + enable_fast_install=needless
- +fi
- +
- +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
- +if test "$GCC" = yes; then
- + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
- +fi
- +
- +AC_LIBTOOL_DLOPEN_SELF
- +
- +if test "$enable_shared" = yes && test "$GCC" = yes; then
- + case $archive_cmds in
- + *'~'*)
- + # FIXME: we may have to deal with multi-command sequences.
- + ;;
- + '$CC '*)
- + # Test whether the compiler implicitly links with -lc since on some
- + # systems, -lgcc has to come before -lc. If gcc already passes -lc
- + # to ld, don't add -lc before -lgcc.
- + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
- + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
- + [$rm conftest*
- + echo 'static int dummy;' > conftest.$ac_ext
- +
- + if AC_TRY_EVAL(ac_compile); then
- + soname=conftest
- + lib=conftest
- + libobjs=conftest.$ac_objext
- + deplibs=
- + wl=$lt_cv_prog_cc_wl
- + compiler_flags=-v
- + linker_flags=-v
- + verstring=
- + output_objdir=.
- + libname=conftest
- + save_allow_undefined_flag=$allow_undefined_flag
- + allow_undefined_flag=
- + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
- + then
- + lt_cv_archive_cmds_need_lc=no
- + else
- + lt_cv_archive_cmds_need_lc=yes
- + fi
- + allow_undefined_flag=$save_allow_undefined_flag
- + else
- + cat conftest.err 1>&5
- + fi])
- + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
- + ;;
- + esac
- +fi
- +need_lc=${lt_cv_archive_cmds_need_lc-yes}
- +
- +# The second clause should only fire when bootstrapping the
- +# libtool distribution, otherwise you forgot to ship ltmain.sh
- +# with your package, and you will get complaints that there are
- +# no rules to generate ltmain.sh.
- +if test -f "$ltmain"; then
- + :
- +else
- + # If there is no Makefile yet, we rely on a make rule to execute
- + # `config.status --recheck' to rerun these tests and create the
- + # libtool script then.
- + test -f Makefile && make "$ltmain"
- +fi
- +
- +if test -f "$ltmain"; then
- + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
- + $rm -f "${ofile}T"
- +
- + echo creating $ofile
- +
- + # Now quote all the things that may contain metacharacters while being
- + # careful not to overquote the AC_SUBSTed values. We take copies of the
- + # variables and quote the copies for generation of the libtool script.
- + for var in echo old_CC old_CFLAGS SED \
- + AR AR_FLAGS CC LD LN_S NM SHELL \
- + reload_flag reload_cmds wl \
- + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
- + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
- + library_names_spec soname_spec \
- + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
- + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
- + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
- + old_striplib striplib file_magic_cmd export_symbols_cmds \
- + deplibs_check_method allow_undefined_flag no_undefined_flag \
- + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
- + global_symbol_to_c_name_address \
- + hardcode_libdir_flag_spec hardcode_libdir_separator \
- + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
- +
- + case $var in
- + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
- + old_postinstall_cmds | old_postuninstall_cmds | \
- + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
- + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
- + postinstall_cmds | postuninstall_cmds | \
- + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- + # Double-quote double-evaled strings.
- + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- + ;;
- + *)
- + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- + ;;
- + esac
- + done
- +
- + cat <<__EOF__ > "${ofile}T"
- +#! $SHELL
- +
- +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
- +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
- +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
- +#
- +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
- +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
- +#
- +# This program is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2 of the License, or
- +# (at your option) any later version.
- +#
- +# This program is distributed in the hope that it will be useful, but
- +# WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- +# General Public License for more details.
- +#
- +# You should have received a copy of the GNU General Public License
- +# along with this program; if not, write to the Free Software
- +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- +#
- +# As a special exception to the GNU General Public License, if you
- +# distribute this file as part of a program that contains a
- +# configuration script generated by Autoconf, you may include it under
- +# the same distribution terms that you use for the rest of that program.
- +
- +# A sed that does not truncate output.
- +SED=$lt_SED
- +
- +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
- +Xsed="${SED} -e s/^X//"
- +
- +# The HP-UX ksh and POSIX shell print the target directory to stdout
- +# if CDPATH is set.
- +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
- +
- +# ### BEGIN LIBTOOL CONFIG
- +
- +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- +
- +# Shell to use when invoking shell scripts.
- +SHELL=$lt_SHELL
- +
- +# Whether or not to build shared libraries.
- +build_libtool_libs=$enable_shared
- +
- +# Whether or not to build static libraries.
- +build_old_libs=$enable_static
- +
- +# Whether or not to add -lc for building shared libraries.
- +build_libtool_need_lc=$need_lc
- +
- +# Whether or not to optimize for fast installation.
- +fast_install=$enable_fast_install
- +
- +# The host system.
- +host_alias=$host_alias
- +host=$host
- +
- +# An echo program that does not interpret backslashes.
- +echo=$lt_echo
- +
- +# The archiver.
- +AR=$lt_AR
- +AR_FLAGS=$lt_AR_FLAGS
- +
- +# The default C compiler.
- +CC=$lt_CC
- +
- +# Is the compiler the GNU C compiler?
- +with_gcc=$GCC
- +
- +# The linker used to build libraries.
- +LD=$lt_LD
- +
- +# Whether we need hard or soft links.
- +LN_S=$lt_LN_S
- +
- +# A BSD-compatible nm program.
- +NM=$lt_NM
- +
- +# A symbol stripping program
- +STRIP=$STRIP
- +
- +# Used to examine libraries when file_magic_cmd begins "file"
- +MAGIC_CMD=$MAGIC_CMD
- +
- +# Used on cygwin: DLL creation program.
- +DLLTOOL="$DLLTOOL"
- +
- +# Used on cygwin: object dumper.
- +OBJDUMP="$OBJDUMP"
- +
- +# Used on cygwin: assembler.
- +AS="$AS"
- +
- +# The name of the directory that contains temporary libtool files.
- +objdir=$objdir
- +
- +# How to create reloadable object files.
- +reload_flag=$lt_reload_flag
- +reload_cmds=$lt_reload_cmds
- +
- +# How to pass a linker flag through the compiler.
- +wl=$lt_wl
- +
- +# Object file suffix (normally "o").
- +objext="$ac_objext"
- +
- +# Old archive suffix (normally "a").
- +libext="$libext"
- +
- +# Executable file suffix (normally "").
- +exeext="$exeext"
- +
- +# Additional compiler flags for building library objects.
- +pic_flag=$lt_pic_flag
- +pic_mode=$pic_mode
- +
- +# Does compiler simultaneously support -c and -o options?
- +compiler_c_o=$lt_compiler_c_o
- +
- +# Can we write directly to a .lo ?
- +compiler_o_lo=$lt_compiler_o_lo
- +
- +# Must we lock files when doing compilation ?
- +need_locks=$lt_need_locks
- +
- +# Do we need the lib prefix for modules?
- +need_lib_prefix=$need_lib_prefix
- +
- +# Do we need a version for libraries?
- +need_version=$need_version
- +
- +# Whether dlopen is supported.
- +dlopen_support=$enable_dlopen
- +
- +# Whether dlopen of programs is supported.
- +dlopen_self=$enable_dlopen_self
- +
- +# Whether dlopen of statically linked programs is supported.
- +dlopen_self_static=$enable_dlopen_self_static
- +
- +# Compiler flag to prevent dynamic linking.
- +link_static_flag=$lt_link_static_flag
- +
- +# Compiler flag to turn off builtin functions.
- +no_builtin_flag=$lt_no_builtin_flag
- +
- +# Compiler flag to allow reflexive dlopens.
- +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
- +
- +# Compiler flag to generate shared objects directly from archives.
- +whole_archive_flag_spec=$lt_whole_archive_flag_spec
- +
- +# Compiler flag to generate thread-safe objects.
- +thread_safe_flag_spec=$lt_thread_safe_flag_spec
- +
- +# Library versioning type.
- +version_type=$version_type
- +
- +# Format of library name prefix.
- +libname_spec=$lt_libname_spec
- +
- +# List of archive names. First name is the real one, the rest are links.
- +# The last name is the one that the linker finds with -lNAME.
- +library_names_spec=$lt_library_names_spec
- +
- +# The coded name of the library, if different from the real name.
- +soname_spec=$lt_soname_spec
- +
- +# Commands used to build and install an old-style archive.
- +RANLIB=$lt_RANLIB
- +old_archive_cmds=$lt_old_archive_cmds
- +old_postinstall_cmds=$lt_old_postinstall_cmds
- +old_postuninstall_cmds=$lt_old_postuninstall_cmds
- +
- +# Create an old-style archive from a shared archive.
- +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
- +
- +# Create a temporary old-style archive to link instead of a shared archive.
- +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
- +
- +# Commands used to build and install a shared archive.
- +archive_cmds=$lt_archive_cmds
- +archive_expsym_cmds=$lt_archive_expsym_cmds
- +postinstall_cmds=$lt_postinstall_cmds
- +postuninstall_cmds=$lt_postuninstall_cmds
- +
- +# Commands to strip libraries.
- +old_striplib=$lt_old_striplib
- +striplib=$lt_striplib
- +
- +# Method to check whether dependent libraries are shared objects.
- +deplibs_check_method=$lt_deplibs_check_method
- +
- +# Command to use when deplibs_check_method == file_magic.
- +file_magic_cmd=$lt_file_magic_cmd
- +
- +# Flag that allows shared libraries with undefined symbols to be built.
- +allow_undefined_flag=$lt_allow_undefined_flag
- +
- +# Flag that forces no undefined symbols.
- +no_undefined_flag=$lt_no_undefined_flag
- +
- +# Commands used to finish a libtool library installation in a directory.
- +finish_cmds=$lt_finish_cmds
- +
- +# Same as above, but a single script fragment to be evaled but not shown.
- +finish_eval=$lt_finish_eval
- +
- +# Take the output of nm and produce a listing of raw symbols and C names.
- +global_symbol_pipe=$lt_global_symbol_pipe
- +
- +# Transform the output of nm in a proper C declaration
- +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
- +
- +# Transform the output of nm in a C name address pair
- +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
- +
- +# This is the shared library runtime path variable.
- +runpath_var=$runpath_var
- +
- +# This is the shared library path variable.
- +shlibpath_var=$shlibpath_var
- +
- +# Is shlibpath searched before the hard-coded library search path?
- +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- +
- +# How to hardcode a shared library path into an executable.
- +hardcode_action=$hardcode_action
- +
- +# Whether we should hardcode library paths into libraries.
- +hardcode_into_libs=$hardcode_into_libs
- +
- +# Flag to hardcode \$libdir into a binary during linking.
- +# This must work even if \$libdir does not exist.
- +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
- +
- +# Whether we need a single -rpath flag with a separated argument.
- +hardcode_libdir_separator=$lt_hardcode_libdir_separator
- +
- +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
- +# resulting binary.
- +hardcode_direct=$hardcode_direct
- +
- +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- +# resulting binary.
- +hardcode_minus_L=$hardcode_minus_L
- +
- +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- +# the resulting binary.
- +hardcode_shlibpath_var=$hardcode_shlibpath_var
- +
- +# Variables whose values should be saved in libtool wrapper scripts and
- +# restored at relink time.
- +variables_saved_for_relink="$variables_saved_for_relink"
- +
- +# Whether libtool must link a program against all its dependency libraries.
- +link_all_deplibs=$link_all_deplibs
- +
- +# Compile-time system search path for libraries
- +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- +
- +# Run-time system search path for libraries
- +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- +
- +# Fix the shell variable \$srcfile for the compiler.
- +fix_srcfile_path="$fix_srcfile_path"
- +
- +# Set to yes if exported symbols are required.
- +always_export_symbols=$always_export_symbols
- +
- +# The commands to list exported symbols.
- +export_symbols_cmds=$lt_export_symbols_cmds
- +
- +# The commands to extract the exported symbol list from a shared archive.
- +extract_expsyms_cmds=$lt_extract_expsyms_cmds
- +
- +# Symbols that should not be listed in the preloaded symbols.
- +exclude_expsyms=$lt_exclude_expsyms
- +
- +# Symbols that must always be exported.
- +include_expsyms=$lt_include_expsyms
- +
- +# ### END LIBTOOL CONFIG
- +
- +__EOF__
- +
- + case $host_os in
- + aix3*)
- + cat <<\EOF >> "${ofile}T"
- +
- +# AIX sometimes has problems with the GCC collect2 program. For some
- +# reason, if we set the COLLECT_NAMES environment variable, the problems
- +# vanish in a puff of smoke.
- +if test "X${COLLECT_NAMES+set}" != Xset; then
- + COLLECT_NAMES=
- + export COLLECT_NAMES
- +fi
- +EOF
- + ;;
- + esac
- +
- + case $host_os in
- + cygwin* | mingw* | pw32* | os2*)
- + cat <<'EOF' >> "${ofile}T"
- + # This is a source program that is used to create dlls on Windows
- + # Don't remove nor modify the starting and closing comments
- +# /* ltdll.c starts here */
- +# #define WIN32_LEAN_AND_MEAN
- +# #include <windows.h>
- +# #undef WIN32_LEAN_AND_MEAN
- +# #include <stdio.h>
- +#
- +# #ifndef __CYGWIN__
- +# # ifdef __CYGWIN32__
- +# # define __CYGWIN__ __CYGWIN32__
- +# # endif
- +# #endif
- +#
- +# #ifdef __cplusplus
- +# extern "C" {
- +# #endif
- +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
- +# #ifdef __cplusplus
- +# }
- +# #endif
- +#
- +# #ifdef __CYGWIN__
- +# #include <cygwin/cygwin_dll.h>
- +# DECLARE_CYGWIN_DLL( DllMain );
- +# #endif
- +# HINSTANCE __hDllInstance_base;
- +#
- +# BOOL APIENTRY
- +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
- +# {
- +# __hDllInstance_base = hInst;
- +# return TRUE;
- +# }
- +# /* ltdll.c ends here */
- + # This is a source program that is used to create import libraries
- + # on Windows for dlls which lack them. Don't remove nor modify the
- + # starting and closing comments
- +# /* impgen.c starts here */
- +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
- +#
- +# This file is part of GNU libtool.
- +#
- +# This program is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2 of the License, or
- +# (at your option) any later version.
- +#
- +# This program is distributed in the hope that it will be useful,
- +# but WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- +# GNU General Public License for more details.
- +#
- +# You should have received a copy of the GNU General Public License
- +# along with this program; if not, write to the Free Software
- +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- +# */
- +#
- +# #include <stdio.h> /* for printf() */
- +# #include <unistd.h> /* for open(), lseek(), read() */
- +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
- +# #include <string.h> /* for strdup() */
- +#
- +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
- +# #ifndef O_BINARY
- +# #define O_BINARY 0
- +# #endif
- +#
- +# static unsigned int
- +# pe_get16 (fd, offset)
- +# int fd;
- +# int offset;
- +# {
- +# unsigned char b[2];
- +# lseek (fd, offset, SEEK_SET);
- +# read (fd, b, 2);
- +# return b[0] + (b[1]<<8);
- +# }
- +#
- +# static unsigned int
- +# pe_get32 (fd, offset)
- +# int fd;
- +# int offset;
- +# {
- +# unsigned char b[4];
- +# lseek (fd, offset, SEEK_SET);
- +# read (fd, b, 4);
- +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- +# }
- +#
- +# static unsigned int
- +# pe_as32 (ptr)
- +# void *ptr;
- +# {
- +# unsigned char *b = ptr;
- +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- +# }
- +#
- +# int
- +# main (argc, argv)
- +# int argc;
- +# char *argv[];
- +# {
- +# int dll;
- +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
- +# unsigned long export_rva, export_size, nsections, secptr, expptr;
- +# unsigned long name_rvas, nexp;
- +# unsigned char *expdata, *erva;
- +# char *filename, *dll_name;
- +#
- +# filename = argv[1];
- +#
- +# dll = open(filename, O_RDONLY|O_BINARY);
- +# if (dll < 1)
- +# return 1;
- +#
- +# dll_name = filename;
- +#
- +# for (i=0; filename[i]; i++)
- +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
- +# dll_name = filename + i +1;
- +#
- +# pe_header_offset = pe_get32 (dll, 0x3c);
- +# opthdr_ofs = pe_header_offset + 4 + 20;
- +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
- +#
- +# if (num_entries < 1) /* no exports */
- +# return 1;
- +#
- +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
- +# export_size = pe_get32 (dll, opthdr_ofs + 100);
- +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
- +# secptr = (pe_header_offset + 4 + 20 +
- +# pe_get16 (dll, pe_header_offset + 4 + 16));
- +#
- +# expptr = 0;
- +# for (i = 0; i < nsections; i++)
- +# {
- +# char sname[8];
- +# unsigned long secptr1 = secptr + 40 * i;
- +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
- +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
- +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
- +# lseek(dll, secptr1, SEEK_SET);
- +# read(dll, sname, 8);
- +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
- +# {
- +# expptr = fptr + (export_rva - vaddr);
- +# if (export_rva + export_size > vaddr + vsize)
- +# export_size = vsize - (export_rva - vaddr);
- +# break;
- +# }
- +# }
- +#
- +# expdata = (unsigned char*)malloc(export_size);
- +# lseek (dll, expptr, SEEK_SET);
- +# read (dll, expdata, export_size);
- +# erva = expdata - export_rva;
- +#
- +# nexp = pe_as32 (expdata+24);
- +# name_rvas = pe_as32 (expdata+32);
- +#
- +# printf ("EXPORTS\n");
- +# for (i = 0; i<nexp; i++)
- +# {
- +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
- +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
- +# }
- +#
- +# return 0;
- +# }
- +# /* impgen.c ends here */
-
- -# Some flags need to be propagated to the compiler or linker for good
- -# libtool support.
- -case "$lt_target" in
- -*-*-irix6*)
- - # Find out which ABI we are using.
- - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- - if AC_TRY_EVAL(ac_compile); then
- - case "`/usr/bin/file conftest.o`" in
- - *32-bit*)
- - LD="${LD-ld} -32"
- - ;;
- - *N32*)
- - LD="${LD-ld} -n32"
- - ;;
- - *64-bit*)
- - LD="${LD-ld} -64"
- - ;;
- - esac
- - fi
- - rm -rf conftest*
- - ;;
- +EOF
- + ;;
- + esac
-
- -*-*-sco3.2v5*)
- - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- - SAVE_CFLAGS="$CFLAGS"
- - CFLAGS="$CFLAGS -belf"
- - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
- - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- - CFLAGS="$SAVE_CFLAGS"
- - fi
- - ;;
- + # We use sed instead of cat because bash on DJGPP gets confused if
- + # if finds mixed CR/LF and LF-only lines. Since sed operates in
- + # text mode, it properly converts lines to CR/LF. This bash problem
- + # is reportedly fixed, but why not run on old versions too?
- + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
- +
- + mv -f "${ofile}T" "$ofile" || \
- + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
- + chmod +x "$ofile"
- +fi
-
- -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
- -[*-*-cygwin* | *-*-mingw*)
- - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- - AC_CHECK_TOOL(AS, as, false)
- - AC_CHECK_TOOL(OBJDUMP, objdump, false)
- - ;;
- -])
- -esac
- -])
- +])# _LT_AC_LTCONFIG_HACK
-
- # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
- -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
- +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
-
- # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
- -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
- +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
-
- # AC_ENABLE_SHARED - implement the --enable-shared flag
- # Usage: AC_ENABLE_SHARED[(DEFAULT)]
- # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
- # `yes'.
- -AC_DEFUN(AC_ENABLE_SHARED, [dnl
- -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
- +AC_DEFUN([AC_ENABLE_SHARED],
- +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
- AC_ARG_ENABLE(shared,
- changequote(<<, >>)dnl
- << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
- changequote([, ])dnl
- [p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- @@ -157,21 +3136,22 @@
- ])
-
- # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
- -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- +AC_DEFUN([AC_DISABLE_SHARED],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_ENABLE_SHARED(no)])
-
- # AC_ENABLE_STATIC - implement the --enable-static flag
- # Usage: AC_ENABLE_STATIC[(DEFAULT)]
- # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
- # `yes'.
- -AC_DEFUN(AC_ENABLE_STATIC, [dnl
- -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
- +AC_DEFUN([AC_ENABLE_STATIC],
- +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
- AC_ARG_ENABLE(static,
- changequote(<<, >>)dnl
- << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
- changequote([, ])dnl
- [p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- @@ -190,7 +3170,8 @@
- ])
-
- # AC_DISABLE_STATIC - set the default static flag to --disable-static
- -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- +AC_DEFUN([AC_DISABLE_STATIC],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_ENABLE_STATIC(no)])
-
-
- @@ -198,14 +3179,14 @@
- # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
- # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
- # `yes'.
- -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
- -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
- +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
- +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
- AC_ARG_ENABLE(fast-install,
- changequote(<<, >>)dnl
- << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
- changequote([, ])dnl
- [p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- @@ -223,29 +3204,120 @@
- enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
- ])
-
- -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
- -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
- +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_ENABLE_FAST_INSTALL(no)])
-
- +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
- +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
- +# Where MODE is either `yes' or `no'. If omitted, it defaults to
- +# `both'.
- +AC_DEFUN([AC_LIBTOOL_PICMODE],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- +pic_mode=ifelse($#,1,$1,default)])
- +
- +
- +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
- +AC_DEFUN([AC_PATH_TOOL_PREFIX],
- +[AC_MSG_CHECKING([for $1])
- +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
- +[case $MAGIC_CMD in
- + /*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- + ;;
- + ?:/*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- + ;;
- + *)
- + ac_save_MAGIC_CMD="$MAGIC_CMD"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- +dnl $ac_dummy forces splitting on constant user-supplied paths.
- +dnl POSIX.2 word splitting is done only on the output of word expansions,
- +dnl not every word. This closes a longstanding sh security hole.
- + ac_dummy="ifelse([$2], , $PATH, [$2])"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$1; then
- + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
- + if test -n "$file_magic_test_file"; then
- + case $deplibs_check_method in
- + "file_magic "*)
- + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- + egrep "$file_magic_regex" > /dev/null; then
- + :
- + else
- + cat <<EOF 1>&2
- +
- +*** Warning: the command libtool uses to detect shared libraries,
- +*** $file_magic_cmd, produces output that libtool cannot recognize.
- +*** The result is that libtool may fail to recognize shared libraries
- +*** as such. This will affect the creation of libtool libraries that
- +*** depend on shared libraries, but programs linked with such libtool
- +*** libraries will work regardless of this problem. Nevertheless, you
- +*** may want to report the problem to your system manager and/or to
- +*** bug-libtool@gnu.org
- +
- +EOF
- + fi ;;
- + esac
- + fi
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + MAGIC_CMD="$ac_save_MAGIC_CMD"
- + ;;
- +esac])
- +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- +if test -n "$MAGIC_CMD"; then
- + AC_MSG_RESULT($MAGIC_CMD)
- +else
- + AC_MSG_RESULT(no)
- +fi
- +])
- +
- +
- +# AC_PATH_MAGIC - find a file program which can recognise a shared library
- +AC_DEFUN([AC_PATH_MAGIC],
- +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
- +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
- +if test -z "$lt_cv_path_MAGIC_CMD"; then
- + if test -n "$ac_tool_prefix"; then
- + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
- + else
- + MAGIC_CMD=:
- + fi
- +fi
- +])
- +
- +
- # AC_PROG_LD - find the path to the GNU or non-GNU linker
- -AC_DEFUN(AC_PROG_LD,
- +AC_DEFUN([AC_PROG_LD],
- [AC_ARG_WITH(gnu-ld,
- [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
- test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
- AC_REQUIRE([AC_PROG_CC])dnl
- AC_REQUIRE([AC_CANONICAL_HOST])dnl
- AC_REQUIRE([AC_CANONICAL_BUILD])dnl
- +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
- ac_prog=ld
- -if test "$ac_cv_prog_gcc" = yes; then
- +if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING([for ld used by GCC])
- - ac_prog=`($CC -print-prog-name=ld) 2>&5`
- - case "$ac_prog" in
- + case $host in
- + *-*-mingw*)
- + # gcc leaves a trailing carriage return which upsets mingw
- + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- + *)
- + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- + esac
- + case $ac_prog in
- # Accept absolute paths.
- -changequote(,)dnl
- - [\\/]* | [A-Za-z]:[\\/]*)
- - re_direlt='/[^/][^/]*/\.\./'
- -changequote([,])dnl
- + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
- + re_direlt='/[[^/]][[^/]]*/\.\./'
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- @@ -267,17 +3339,17 @@
- else
- AC_MSG_CHECKING([for non-GNU ld])
- fi
- -AC_CACHE_VAL(ac_cv_path_LD,
- +AC_CACHE_VAL(lt_cv_path_LD,
- [if test -z "$LD"; then
- - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- - ac_cv_path_LD="$ac_dir/$ac_prog"
- + lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- @@ -286,9 +3358,9 @@
- done
- IFS="$ac_save_ifs"
- else
- - ac_cv_path_LD="$LD" # Let the user override the test with a path.
- + lt_cv_path_LD="$LD" # Let the user override the test with a path.
- fi])
- -LD="$ac_cv_path_LD"
- +LD="$lt_cv_path_LD"
- if test -n "$LD"; then
- AC_MSG_RESULT($LD)
- else
- @@ -298,56 +3370,255 @@
- AC_PROG_LD_GNU
- ])
-
- -AC_DEFUN(AC_PROG_LD_GNU,
- -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
- +# AC_PROG_LD_GNU -
- +AC_DEFUN([AC_PROG_LD_GNU],
- +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
- [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
- if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- - ac_cv_prog_gnu_ld=yes
- + lt_cv_prog_gnu_ld=yes
- else
- - ac_cv_prog_gnu_ld=no
- + lt_cv_prog_gnu_ld=no
- fi])
- +with_gnu_ld=$lt_cv_prog_gnu_ld
- +])
- +
- +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
- +# -- PORTME Some linkers may need a different reload flag.
- +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
- +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
- +[lt_cv_ld_reload_flag='-r'])
- +reload_flag=$lt_cv_ld_reload_flag
- +test -n "$reload_flag" && reload_flag=" $reload_flag"
- +])
- +
- +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
- +# -- PORTME fill in with the dynamic library characteristics
- +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
- +[AC_CACHE_CHECK([how to recognise dependent libraries],
- +lt_cv_deplibs_check_method,
- +[lt_cv_file_magic_cmd='$MAGIC_CMD'
- +lt_cv_file_magic_test_file=
- +lt_cv_deplibs_check_method='unknown'
- +# Need to set the preceding variable on all platforms that support
- +# interlibrary dependencies.
- +# 'none' -- dependencies not supported.
- +# `unknown' -- same as none, but documents that we really don't know.
- +# 'pass_all' -- all dependencies passed with no checks.
- +# 'test_compile' -- check by making test program.
- +# 'file_magic [[regex]]' -- check by looking for files in library path
- +# which responds to the $file_magic_cmd with a given egrep regex.
- +# If you have `file' or equivalent on your system and you're not sure
- +# whether `pass_all' will *always* work, you probably want this one.
- +
- +case $host_os in
- +aix4* | aix5*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +beos*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +bsdi4*)
- + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
- + lt_cv_file_magic_cmd='/usr/bin/file -L'
- + lt_cv_file_magic_test_file=/shlib/libc.so
- + ;;
- +
- +cygwin* | mingw* | pw32*)
- + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- + lt_cv_file_magic_cmd='$OBJDUMP -f'
- + ;;
- +
- +darwin* | rhapsody*)
- + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
- + lt_cv_file_magic_cmd='/usr/bin/file -L'
- + case "$host_os" in
- + rhapsody* | darwin1.[[012]])
- + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
- + ;;
- + *) # Darwin 1.3 on
- + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
- + ;;
- + esac
- + ;;
- +
- +freebsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- + case $host_cpu in
- + i*86 )
- + # Not sure whether the presence of OpenBSD here was a mistake.
- + # Let's accept both of them until this is cleared up.
- + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- + ;;
- + esac
- + else
- + lt_cv_deplibs_check_method=pass_all
- + fi
- + ;;
- +
- +gnu*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +hpux10.20*|hpux11*)
- + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=/usr/lib/libc.sl
- + ;;
- +
- +irix5* | irix6* | nonstopux*)
- + case $host_os in
- + irix5* | nonstopux*)
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
- + ;;
- + *)
- + case $LD in
- + *-32|*"-32 ") libmagic=32-bit;;
- + *-n32|*"-n32 ") libmagic=N32;;
- + *-64|*"-64 ") libmagic=64-bit;;
- + *) libmagic=never-match;;
- + esac
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
- + ;;
- + esac
- + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +# This must be Linux ELF.
- +linux-gnu*)
- + case $host_cpu in
- + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
- + lt_cv_deplibs_check_method=pass_all ;;
- + *)
- + # glibc up to 2.1.1 does not perform some relocations on ARM
- + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
- + esac
- + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
- + ;;
- +
- +netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
- + else
- + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
- + fi
- + ;;
- +
- +newos6*)
- + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=/usr/lib/libnls.so
- + ;;
- +
- +openbsd*)
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
- + else
- + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
- + fi
- + ;;
- +
- +osf3* | osf4* | osf5*)
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
- + lt_cv_file_magic_test_file=/shlib/libc.so
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +sco3.2v5*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +solaris*)
- + lt_cv_deplibs_check_method=pass_all
- + lt_cv_file_magic_test_file=/lib/libc.so
- + ;;
- +
- +sysv5uw[[78]]* | sysv4*uw2*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + case $host_vendor in
- + motorola)
- + 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]]'
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- + ;;
- + ncr)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- + sequent)
- + lt_cv_file_magic_cmd='/bin/file'
- + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
- + ;;
- + sni)
- + lt_cv_file_magic_cmd='/bin/file'
- + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
- + lt_cv_file_magic_test_file=/lib/libc.so
- + ;;
- + siemens)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- + esac
- + ;;
- +esac
- ])
- +file_magic_cmd=$lt_cv_file_magic_cmd
- +deplibs_check_method=$lt_cv_deplibs_check_method
- +])
- +
-
- # AC_PROG_NM - find the path to a BSD-compatible name lister
- -AC_DEFUN(AC_PROG_NM,
- -[AC_MSG_CHECKING([for BSD-compatible nm])
- -AC_CACHE_VAL(ac_cv_path_NM,
- +AC_DEFUN([AC_PROG_NM],
- +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
- +AC_MSG_CHECKING([for BSD-compatible nm])
- +AC_CACHE_VAL(lt_cv_path_NM,
- [if test -n "$NM"; then
- # Let the user override the test.
- - ac_cv_path_NM="$NM"
- + lt_cv_path_NM="$NM"
- else
- - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- test -z "$ac_dir" && ac_dir=.
- - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
- + tmp_nm=$ac_dir/${ac_tool_prefix}nm
- + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- - ac_cv_path_NM="$ac_dir/nm -B"
- + # Tru64's nm complains that /dev/null is an invalid object file
- + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
- + lt_cv_path_NM="$tmp_nm -B"
- break
- - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- - ac_cv_path_NM="$ac_dir/nm -p"
- + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- + lt_cv_path_NM="$tmp_nm -p"
- break
- else
- - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
- + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
- fi
- done
- IFS="$ac_save_ifs"
- - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
- + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
- fi])
- -NM="$ac_cv_path_NM"
- +NM="$lt_cv_path_NM"
- AC_MSG_RESULT([$NM])
- ])
-
- # AC_CHECK_LIBM - check for math library
- -AC_DEFUN(AC_CHECK_LIBM,
- +AC_DEFUN([AC_CHECK_LIBM],
- [AC_REQUIRE([AC_CANONICAL_HOST])dnl
- LIBM=
- -case "$lt_target" in
- -*-*-beos* | *-*-cygwin*)
- +case $host in
- +*-*-beos* | *-*-cygwin* | *-*-pw32*)
- # These system don't have libm
- ;;
- *-ncr-sysv4.3*)
- @@ -361,33 +3632,41 @@
- ])
-
- # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
- -# the libltdl convenience library, adds --enable-ltdl-convenience to
- -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
- -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
- -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
- -# '${top_builddir}/' (note the single quotes!) if your package is not
- -# flat, and, if you're not using automake, define top_builddir as
- -# appropriate in the Makefiles.
- -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- - case "$enable_ltdl_convenience" in
- +# the libltdl convenience library and LTDLINCL to the include flags for
- +# the libltdl header and adds --enable-ltdl-convenience to the
- +# configure arguments. Note that LIBLTDL and LTDLINCL are not
- +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
- +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
- +# with '${top_builddir}/' and LTDLINCL will be prefixed with
- +# '${top_srcdir}/' (note the single quotes!). If your package is not
- +# flat and you're not using automake, define top_builddir and
- +# top_srcdir appropriately in the Makefiles.
- +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- + case $enable_ltdl_convenience in
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
- "") enable_ltdl_convenience=yes
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
- esac
- - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
- - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
- + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
- + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- + # For backwards non-gettext consistent compatibility...
- + INCLTDL="$LTDLINCL"
- ])
-
- # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
- -# the libltdl installable library, and adds --enable-ltdl-install to
- -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
- -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
- -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
- -# '${top_builddir}/' (note the single quotes!) if your package is not
- -# flat, and, if you're not using automake, define top_builddir as
- -# appropriate in the Makefiles.
- +# the libltdl installable library and LTDLINCL to the include flags for
- +# the libltdl header and adds --enable-ltdl-install to the configure
- +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
- +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
- +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
- +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
- +# with '${top_srcdir}/' (note the single quotes!). If your package is
- +# not flat and you're not using automake, define top_builddir and
- +# top_srcdir appropriately in the Makefiles.
- # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
- -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
- +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_CHECK_LIB(ltdl, main,
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
- [if test x"$enable_ltdl_install" = xno; then
- @@ -398,148 +3677,124 @@
- ])
- if test x"$enable_ltdl_install" = x"yes"; then
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
- - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
- - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
- + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
- + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- else
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
- - INCLTDL=
- + LTDLINCL=
- fi
- + # For backwards non-gettext consistent compatibility...
- + INCLTDL="$LTDLINCL"
- ])
-
- -dnl old names
- -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
- -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
- -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
- -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
- -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
- -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
- -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
- -
- -dnl This is just to silence aclocal about the macro not being used
- -ifelse([AC_DISABLE_FAST_INSTALL])dnl
- -
- -# Do all the work for Automake. This macro actually does too much --
- -# some checks are only needed if your package does certain things.
- -# But this isn't really a big deal.
- -
- -# serial 1
- -
- -dnl Usage:
- -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
- -
- -AC_DEFUN(AM_INIT_AUTOMAKE,
- -[AC_REQUIRE([AC_PROG_INSTALL])
- -PACKAGE=[$1]
- -AC_SUBST(PACKAGE)
- -VERSION=[$2]
- -AC_SUBST(VERSION)
- -dnl test to see if srcdir already configured
- -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
- - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
- -fi
- -ifelse([$3],,
- -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
- -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
- -AC_REQUIRE([AM_SANITY_CHECK])
- -AC_REQUIRE([AC_ARG_PROGRAM])
- -dnl FIXME This is truly gross.
- -missing_dir=`cd $ac_aux_dir && pwd`
- -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
- -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
- -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
- -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
- -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
- -AC_REQUIRE([AC_PROG_MAKE_SET])])
- -
- -#
- -# Check to make sure that the build environment is sane.
- -#
- -
- -AC_DEFUN(AM_SANITY_CHECK,
- -[AC_MSG_CHECKING([whether build environment is sane])
- -# Just in case
- -sleep 1
- -echo timestamp > conftestfile
- -# Do `set' in a subshell so we don't clobber the current shell's
- -# arguments. Must try -L first in case configure is actually a
- -# symlink; some systems play weird games with the mod time of symlinks
- -# (eg FreeBSD returns the mod time of the symlink's containing
- -# directory).
- -if (
- - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
- - if test "[$]*" = "X"; then
- - # -L didn't work.
- - set X `ls -t $srcdir/configure conftestfile`
- - fi
- - if test "[$]*" != "X $srcdir/configure conftestfile" \
- - && test "[$]*" != "X conftestfile $srcdir/configure"; then
- -
- - # If neither matched, then we have a broken ls. This can happen
- - # if, for instance, CONFIG_SHELL is bash and it inherits a
- - # broken ls alias from the environment. This has actually
- - # happened. Such a system could not be considered "sane".
- - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
- -alias in your environment])
- - fi
- +# old names
- +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
- +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
- +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
- +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
- +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
- +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
- +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
- +
- +# This is just to silence aclocal about the macro not being used
- +ifelse([AC_DISABLE_FAST_INSTALL])
- +
- +# NOTE: This macro has been submitted for inclusion into #
- +# GNU Autoconf as AC_PROG_SED. When it is available in #
- +# a released version of Autoconf we should remove this #
- +# macro and use it instead. #
- +# LT_AC_PROG_SED
- +# --------------
- +# Check for a fully-functional sed program, that truncates
- +# as few characters as possible. Prefer GNU sed if found.
- +AC_DEFUN([LT_AC_PROG_SED],
- +[AC_MSG_CHECKING([for a sed that does not truncate output])
- +AC_CACHE_VAL(lt_cv_path_SED,
- +[# Loop through the user's path and test for sed and gsed.
- +# Then use that list of sed's as ones to test for truncation.
- +as_executable_p="test -f"
- +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- +for as_dir in $PATH
- +do
- + IFS=$as_save_IFS
- + test -z "$as_dir" && as_dir=.
- + for ac_prog in sed gsed; do
- + for ac_exec_ext in '' $ac_executable_extensions; do
- + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
- + fi
- + done
- + done
- +done
-
- - test "[$]2" = conftestfile
- - )
- -then
- - # Ok.
- - :
- -else
- - AC_MSG_ERROR([newly created file is older than distributed files!
- -Check your system clock])
- -fi
- -rm -f conftest*
- -AC_MSG_RESULT(yes)])
- + # Create a temporary directory, and hook for its removal unless debugging.
- +$debug ||
- +{
- + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
- + trap '{ (exit 1); exit 1; }' 1 2 13 15
- +}
-
- -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
- -dnl The program must properly implement --version.
- -AC_DEFUN(AM_MISSING_PROG,
- -[AC_MSG_CHECKING(for working $2)
- -# Run test in a subshell; some versions of sh will print an error if
- -# an executable is not found, even if stderr is redirected.
- -# Redirect stdin to placate older versions of autoconf. Sigh.
- -if ($2 --version) < /dev/null > /dev/null 2>&1; then
- - $1=$2
- - AC_MSG_RESULT(found)
- +# Create a (secure) tmp directory for tmp files.
- +: ${TMPDIR=/tmp}
- +{
- + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
- + test -n "$tmp" && test -d "$tmp"
- +} ||
- +{
- + tmp=$TMPDIR/sed$$-$RANDOM
- + (umask 077 && mkdir $tmp)
- +} ||
- +{
- + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
- + { (exit 1); exit 1; }
- +}
- + _max=0
- + _count=0
- + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
- + # along with /bin/sed that truncates output.
- + for _sed in $_sed_list /usr/xpg4/bin/sed; do
- + test ! -f ${_sed} && break
- + cat /dev/null > "$tmp/sed.in"
- + _count=0
- + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
- + # Check for GNU sed and select it if it is found.
- + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
- + lt_cv_path_SED=${_sed}
- + break
- + fi
- + while true; do
- + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
- + mv "$tmp/sed.tmp" "$tmp/sed.in"
- + cp "$tmp/sed.in" "$tmp/sed.nl"
- + echo >>"$tmp/sed.nl"
- + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
- + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
- + # 40000 chars as input seems more than enough
- + test $_count -gt 10 && break
- + _count=`expr $_count + 1`
- + if test $_count -gt $_max; then
- + _max=$_count
- + lt_cv_path_SED=$_sed
- + fi
- + done
- + done
- + rm -rf "$tmp"
- +])
- +if test "X$SED" != "X"; then
- + lt_cv_path_SED=$SED
- else
- - $1="$3/missing $2"
- - AC_MSG_RESULT(missing)
- + SED=$lt_cv_path_SED
- fi
- -AC_SUBST($1)])
- -
- -# Like AC_CONFIG_HEADER, but automatically create stamp file.
- -
- -AC_DEFUN(AM_CONFIG_HEADER,
- -[AC_PREREQ([2.12])
- -AC_CONFIG_HEADER([$1])
- -dnl When config.status generates a header, we must update the stamp-h file.
- -dnl This file resides in the same directory as the config header
- -dnl that is generated. We must strip everything past the first ":",
- -dnl and everything past the last "/".
- -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
- -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
- -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
- -<<am_indx=1
- -for am_file in <<$1>>; do
- - case " <<$>>CONFIG_HEADERS " in
- - *" <<$>>am_file "*<<)>>
- - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
- - ;;
- - esac
- - am_indx=`expr "<<$>>am_indx" + 1`
- -done<<>>dnl>>)
- -changequote([,]))])
- +AC_MSG_RESULT([$SED])
- +])
-
- # Add --enable-maintainer-mode option to configure.
- # From Jim Meyering
-
- # serial 1
-
- -AC_DEFUN(AM_MAINTAINER_MODE,
- +AC_DEFUN([AM_MAINTAINER_MODE],
- [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode is disabled by default
- AC_ARG_ENABLE(maintainer-mode,
- @@ -556,7 +3811,7 @@
-
- # Define a conditional.
-
- -AC_DEFUN(AM_CONDITIONAL,
- +AC_DEFUN([AM_CONDITIONAL],
- [AC_SUBST($1_TRUE)
- AC_SUBST($1_FALSE)
- if $2; then
- @@ -585,7 +3840,7 @@
- # program @code{ansi2knr}, which comes with Ghostscript.
- # @end defmac
-
- -AC_DEFUN(AM_PROG_CC_STDC,
- +AC_DEFUN([AM_PROG_CC_STDC],
- [AC_REQUIRE([AC_PROG_CC])
- AC_BEFORE([$0], [AC_C_INLINE])
- AC_BEFORE([$0], [AC_C_CONST])
- --- glib1.2-1.2.10.orig/config.guess
- +++ glib1.2-1.2.10/config.guess
- @@ -1,8 +1,10 @@
- #! /bin/sh
- # Attempt to guess a canonical system name.
- -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
- -# Free Software Foundation, Inc.
- -#
- +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
- +
- +timestamp='2003-05-09'
- +
- # This file is free software; you can redistribute it and/or modify it
- # under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- @@ -22,99 +24,262 @@
- # configuration script generated by Autoconf, you may include it under
- # the same distribution terms that you use for the rest of that program.
-
- -# Written by Per Bothner <bothner@cygnus.com>.
- -# The master version of this file is at the FSF in /home/gd/gnu/lib.
- -# Please send patches to <autoconf-patches@gnu.org>.
- +# Originally written by Per Bothner <per@bothner.com>.
- +# Please send patches to <config-patches@gnu.org>. Submit a context
- +# diff and a properly formatted ChangeLog entry.
- #
- # This script attempts to guess a canonical system name similar to
- # config.sub. If it succeeds, it prints the system name on stdout, and
- # exits with 0. Otherwise, it exits with 1.
- #
- # The plan is that this can be called by configure scripts if you
- -# don't specify an explicit system type (host/target name).
- -#
- -# Only a few systems have been added to this list; please add others
- -# (but try to keep the structure clean).
- -#
- +# don't specify an explicit build system type.
-
- -# Use $HOST_CC if defined. $CC may point to a cross-compiler
- -if test x"$CC_FOR_BUILD" = x; then
- - if test x"$HOST_CC" != x; then
- - CC_FOR_BUILD="$HOST_CC"
- - else
- - if test x"$CC" != x; then
- - CC_FOR_BUILD="$CC"
- - else
- - CC_FOR_BUILD=cc
- - fi
- - fi
- +me=`echo "$0" | sed -e 's,.*/,,'`
- +
- +usage="\
- +Usage: $0 [OPTION]
- +
- +Output the configuration name of the system \`$me' is run on.
- +
- +Operation modes:
- + -h, --help print this help, then exit
- + -t, --time-stamp print date of last modification, then exit
- + -v, --version print version number, then exit
- +
- +Report bugs and patches to <config-patches@gnu.org>."
- +
- +version="\
- +GNU config.guess ($timestamp)
- +
- +Originally written by Per Bothner.
- +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
- +Free Software Foundation, Inc.
- +
- +This is free software; see the source for copying conditions. There is NO
- +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
- +
- +help="
- +Try \`$me --help' for more information."
- +
- +# Parse command line
- +while test $# -gt 0 ; do
- + case $1 in
- + --time-stamp | --time* | -t )
- + echo "$timestamp" ; exit 0 ;;
- + --version | -v )
- + echo "$version" ; exit 0 ;;
- + --help | --h* | -h )
- + echo "$usage"; exit 0 ;;
- + -- ) # Stop option processing
- + shift; break ;;
- + - ) # Use stdin as input.
- + break ;;
- + -* )
- + echo "$me: invalid option $1$help" >&2
- + exit 1 ;;
- + * )
- + break ;;
- + esac
- +done
- +
- +if test $# != 0; then
- + echo "$me: too many arguments$help" >&2
- + exit 1
- fi
-
- +trap 'exit 1' 1 2 15
- +
- +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
- +# compiler to aid in system detection is discouraged as it requires
- +# temporary files to be created and, as you can see below, it is a
- +# headache to deal with in a portable fashion.
- +
- +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
- +# use `HOST_CC' if defined, but it is deprecated.
- +
- +# Portable tmp directory creation inspired by the Autoconf team.
- +
- +set_cc_for_build='
- +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
- +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
- +: ${TMPDIR=/tmp} ;
- + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
- +dummy=$tmp/dummy ;
- +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
- +case $CC_FOR_BUILD,$HOST_CC,$CC in
- + ,,) echo "int x;" > $dummy.c ;
- + for c in cc gcc c89 c99 ; do
- + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- + CC_FOR_BUILD="$c"; break ;
- + fi ;
- + done ;
- + if test x"$CC_FOR_BUILD" = x ; then
- + CC_FOR_BUILD=no_compiler_found ;
- + fi
- + ;;
- + ,,*) CC_FOR_BUILD=$CC ;;
- + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
- +esac ;'
-
- # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
- -# (ghazi@noc.rutgers.edu 8/24/94.)
- +# (ghazi@noc.rutgers.edu 1994-08-24)
- if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
- PATH=$PATH:/.attbin ; export PATH
- fi
-
- UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
- UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
- -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
- +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
- UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
- -dummy=dummy-$$
- -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
- -
- # Note: order is significant - the case branches are not exclusive.
-
- case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
- + *:NetBSD:*:*)
- + # NetBSD (nbsd) targets should (where applicable) match one or
- + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
- + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
- + # switched to ELF, *-*-netbsd* would select the old
- + # object file format. This provides both forward
- + # compatibility and a consistent mechanism for selecting the
- + # object file format.
- + #
- + # Note: NetBSD doesn't particularly care about the vendor
- + # portion of the name. We always set it to "unknown".
- + sysctl="sysctl -n hw.machine_arch"
- + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
- + case "${UNAME_MACHINE_ARCH}" in
- + armeb) machine=armeb-unknown ;;
- + arm*) machine=arm-unknown ;;
- + sh3el) machine=shl-unknown ;;
- + sh3eb) machine=sh-unknown ;;
- + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- + esac
- + # The Operating System including object format, if it has switched
- + # to ELF recently, or will in the future.
- + case "${UNAME_MACHINE_ARCH}" in
- + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- + eval $set_cc_for_build
- + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- + | grep __ELF__ >/dev/null
- + then
- + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
- + # Return netbsd for either. FIX?
- + os=netbsd
- + else
- + os=netbsdelf
- + fi
- + ;;
- + *)
- + os=netbsd
- + ;;
- + esac
- + # The OS release
- + # Debian GNU/NetBSD machines have a different userland, and
- + # thus, need a distinct triplet. However, they do not need
- + # kernel version information, so it can be replaced with a
- + # suitable tag, in the style of linux-gnu.
- + case "${UNAME_VERSION}" in
- + Debian*)
- + release='-gnu'
- + ;;
- + *)
- + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- + ;;
- + esac
- + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
- + # contains redundant information, the shorter form:
- + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- + echo "${machine}-${os}${release}"
- + exit 0 ;;
- + amiga:OpenBSD:*:*)
- + echo m68k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + arc:OpenBSD:*:*)
- + echo mipsel-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + hp300:OpenBSD:*:*)
- + echo m68k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + mac68k:OpenBSD:*:*)
- + echo m68k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + macppc:OpenBSD:*:*)
- + echo powerpc-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + mvme68k:OpenBSD:*:*)
- + echo m68k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + mvme88k:OpenBSD:*:*)
- + echo m88k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + mvmeppc:OpenBSD:*:*)
- + echo powerpc-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + pmax:OpenBSD:*:*)
- + echo mipsel-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + sgi:OpenBSD:*:*)
- + echo mipseb-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + sun3:OpenBSD:*:*)
- + echo m68k-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + wgrisc:OpenBSD:*:*)
- + echo mipsel-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- + *:OpenBSD:*:*)
- + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
- + exit 0 ;;
- alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
- + # According to Compaq, /usr/sbin/psrinfo has been available on
- + # OSF/1 and Tru64 systems produced since 1995. I hope that
- + # covers most systems running today. This code pipes the CPU
- + # types through head -n 1, so we only detect the type of CPU 0.
- + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
- + case "$ALPHA_CPU_TYPE" in
- + "EV4 (21064)")
- + UNAME_MACHINE="alpha" ;;
- + "EV4.5 (21064)")
- + UNAME_MACHINE="alpha" ;;
- + "LCA4 (21066/21068)")
- + UNAME_MACHINE="alpha" ;;
- + "EV5 (21164)")
- + UNAME_MACHINE="alphaev5" ;;
- + "EV5.6 (21164A)")
- + UNAME_MACHINE="alphaev56" ;;
- + "EV5.6 (21164PC)")
- + UNAME_MACHINE="alphapca56" ;;
- + "EV5.7 (21164PC)")
- + UNAME_MACHINE="alphapca57" ;;
- + "EV6 (21264)")
- + UNAME_MACHINE="alphaev6" ;;
- + "EV6.7 (21264A)")
- + UNAME_MACHINE="alphaev67" ;;
- + "EV6.8CB (21264C)")
- + UNAME_MACHINE="alphaev68" ;;
- + "EV6.8AL (21264B)")
- + UNAME_MACHINE="alphaev68" ;;
- + "EV6.8CX (21264D)")
- + UNAME_MACHINE="alphaev68" ;;
- + "EV6.9A (21264/EV69A)")
- + UNAME_MACHINE="alphaev69" ;;
- + "EV7 (21364)")
- + UNAME_MACHINE="alphaev7" ;;
- + "EV7.9 (21364A)")
- + UNAME_MACHINE="alphaev79" ;;
- + esac
- # A Vn.n version is a released version.
- # A Tn.n version is a released field test version.
- # A Xn.n version is an unreleased experimental baselevel.
- # 1.2 uses "1.2" for uname -r.
- - cat <<EOF >$dummy.s
- - .globl main
- - .ent main
- -main:
- - .frame \$30,0,\$26,0
- - .prologue 0
- - .long 0x47e03d80 # implver $0
- - lda \$2,259
- - .long 0x47e20c21 # amask $2,$1
- - srl \$1,8,\$2
- - sll \$2,2,\$2
- - sll \$0,3,\$0
- - addl \$1,\$0,\$0
- - addl \$2,\$0,\$0
- - ret \$31,(\$26),1
- - .end main
- -EOF
- - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- - if test "$?" = 0 ; then
- - ./$dummy
- - case "$?" in
- - 7)
- - UNAME_MACHINE="alpha"
- - ;;
- - 15)
- - UNAME_MACHINE="alphaev5"
- - ;;
- - 14)
- - UNAME_MACHINE="alphaev56"
- - ;;
- - 10)
- - UNAME_MACHINE="alphapca56"
- - ;;
- - 16)
- - UNAME_MACHINE="alphaev6"
- - ;;
- - esac
- - fi
- - rm -f $dummy.s $dummy
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit 0 ;;
- Alpha\ *:Windows_NT*:*)
- @@ -127,34 +292,13 @@
- echo alpha-dec-winnt3.5
- exit 0 ;;
- Amiga*:UNIX_System_V:4.0:*)
- - echo m68k-cbm-sysv4
- + echo m68k-unknown-sysv4
- exit 0;;
- - amiga:NetBSD:*:*)
- - echo m68k-cbm-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- - amiga:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- *:[Aa]miga[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
- - arc64:OpenBSD:*:*)
- - echo mips64el-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - arc:OpenBSD:*:*)
- - echo mipsel-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - hkmips:OpenBSD:*:*)
- - echo mips-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - pmax:OpenBSD:*:*)
- - echo mipsel-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - sgi:OpenBSD:*:*)
- - echo mips-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - wgrisc:OpenBSD:*:*)
- - echo mipsel-unknown-openbsd${UNAME_RELEASE}
- + *:[Mm]orph[Oo][Ss]:*:*)
- + echo ${UNAME_MACHINE}-unknown-morphos
- exit 0 ;;
- *:OS/390:*:*)
- echo i370-ibm-openedition
- @@ -162,10 +306,7 @@
- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
- echo arm-acorn-riscix${UNAME_RELEASE}
- exit 0;;
- - arm32:NetBSD:*:*)
- - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- - exit 0 ;;
- - SR2?01:HI-UX/MPP:*:*)
- + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
- echo hppa1.1-hitachi-hiuxmpp
- exit 0;;
- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
- @@ -179,6 +320,10 @@
- NILE*:*:*:dcosx)
- echo pyramid-pyramid-svr4
- exit 0 ;;
- + DRS?6000:UNIX_SV:4.2*:7*)
- + case `/usr/bin/uname -p` in
- + sparc) echo sparc-icl-nx7 && exit 0 ;;
- + esac ;;
- sun4H:SunOS:5.*:*)
- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
- @@ -207,7 +352,7 @@
- echo m68k-sun-sunos${UNAME_RELEASE}
- exit 0 ;;
- sun*:*:4.2BSD:*)
- - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
- case "`/bin/arch`" in
- sun3)
- @@ -221,15 +366,9 @@
- aushp:SunOS:*:*)
- echo sparc-auspex-sunos${UNAME_RELEASE}
- exit 0 ;;
- - atari*:NetBSD:*:*)
- - echo m68k-atari-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- - atari*:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- # The situation for MiNT is a little confusing. The machine name
- # can be virtually everything (everything which is not
- - # "atarist" or "atariste" at least should have a processor
- + # "atarist" or "atariste" at least should have a processor
- # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
- # to the lowercase version "mint" (or "freemint"). Finally
- # the system name "TOS" denotes a system which is actually not
- @@ -253,30 +392,9 @@
- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit 0 ;;
- - sun3*:NetBSD:*:*)
- - echo m68k-sun-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- - sun3*:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - mac68k:NetBSD:*:*)
- - echo m68k-apple-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- - mac68k:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - mvme68k:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - mvme88k:OpenBSD:*:*)
- - echo m88k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- powerpc:machten:*:*)
- echo powerpc-apple-machten${UNAME_RELEASE}
- exit 0 ;;
- - macppc:NetBSD:*:*)
- - echo powerpc-apple-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- RISC*:Mach:*:*)
- echo mips-dec-mach_bsd4.3
- exit 0 ;;
- @@ -290,8 +408,10 @@
- echo clipper-intergraph-clix${UNAME_RELEASE}
- exit 0 ;;
- mips:*:*:UMIPS | mips:*:*:RISCos)
- + eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #ifdef __cplusplus
- +#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
- #else
- int main (argc, argv) int argc; char *argv[]; {
- @@ -310,12 +430,20 @@
- exit (-1);
- }
- EOF
- - $CC_FOR_BUILD $dummy.c -o $dummy \
- - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- - && rm $dummy.c $dummy && exit 0
- - rm -f $dummy.c $dummy
- + $CC_FOR_BUILD -o $dummy $dummy.c \
- + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- + && exit 0
- echo mips-mips-riscos${UNAME_RELEASE}
- exit 0 ;;
- + Motorola:PowerMAX_OS:*:*)
- + echo powerpc-motorola-powermax
- + exit 0 ;;
- + Motorola:*:4.3:PL8-*)
- + echo powerpc-harris-powermax
- + exit 0 ;;
- + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
- + echo powerpc-harris-powermax
- + exit 0 ;;
- Night_Hawk:Power_UNIX:*:*)
- echo powerpc-harris-powerunix
- exit 0 ;;
- @@ -331,7 +459,7 @@
- AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
- - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
- + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
- then
- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
- [ ${TARGET_BINARY_INTERFACE}x = x ]
- @@ -363,11 +491,20 @@
- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
- - i?86:AIX:*:*)
- + i*86:AIX:*:*)
- echo i386-ibm-aix
- exit 0 ;;
- + ia64:AIX:*:*)
- + if [ -x /usr/bin/oslevel ] ; then
- + IBM_REV=`/usr/bin/oslevel`
- + else
- + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- + fi
- + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- + exit 0 ;;
- *:AIX:2:3)
- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
- + eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <sys/systemcfg.h>
-
- @@ -379,8 +516,7 @@
- exit(0);
- }
- EOF
- - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
- - rm -f $dummy.c $dummy
- + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
- echo rs6000-ibm-aix3.2.5
- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
- echo rs6000-ibm-aix3.2.4
- @@ -388,9 +524,9 @@
- echo rs6000-ibm-aix3.2
- fi
- exit 0 ;;
- - *:AIX:*:4)
- - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
- - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
- + *:AIX:*:[45])
- + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
- + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
- IBM_ARCH=rs6000
- else
- IBM_ARCH=powerpc
- @@ -398,7 +534,7 @@
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- - IBM_REV=4.${UNAME_RELEASE}
- + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit 0 ;;
- @@ -408,7 +544,7 @@
- ibmrt:4.4BSD:*|romp-ibm:BSD:*)
- echo romp-ibm-bsd4.4
- exit 0 ;;
- - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
- + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit 0 ;; # report: romp-ibm BSD 4.3
- *:BOSX:*:*)
- @@ -424,11 +560,30 @@
- echo m68k-hp-bsd4.4
- exit 0 ;;
- 9000/[34678]??:HP-UX:*:*)
- + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- case "${UNAME_MACHINE}" in
- 9000/31? ) HP_ARCH=m68000 ;;
- 9000/[34]?? ) HP_ARCH=m68k ;;
- 9000/[678][0-9][0-9])
- - sed 's/^ //' << EOF >$dummy.c
- + if [ -x /usr/bin/getconf ]; then
- + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- + case "${sc_cpu_version}" in
- + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- + 532) # CPU_PA_RISC2_0
- + case "${sc_kernel_bits}" in
- + 32) HP_ARCH="hppa2.0n" ;;
- + 64) HP_ARCH="hppa2.0w" ;;
- + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- + esac ;;
- + esac
- + fi
- + if [ "${HP_ARCH}" = "" ]; then
- + eval $set_cc_for_build
- + sed 's/^ //' << EOF >$dummy.c
- +
- + #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- @@ -459,13 +614,29 @@
- exit (0);
- }
- EOF
- - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
- - rm -f $dummy.c $dummy
- + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
- + test -z "$HP_ARCH" && HP_ARCH=hppa
- + fi ;;
- esac
- - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- + if [ ${HP_ARCH} = "hppa2.0w" ]
- + then
- + # avoid double evaluation of $set_cc_for_build
- + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
- + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
- + then
- + HP_ARCH="hppa2.0w"
- + else
- + HP_ARCH="hppa64"
- + fi
- + fi
- echo ${HP_ARCH}-hp-hpux${HPUX_REV}
- exit 0 ;;
- + ia64:HP-UX:*:*)
- + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- + echo ia64-hp-hpux${HPUX_REV}
- + exit 0 ;;
- 3050*:HI-UX:*:*)
- + eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <unistd.h>
- int
- @@ -491,8 +662,7 @@
- exit (0);
- }
- EOF
- - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
- - rm -f $dummy.c $dummy
- + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
- echo unknown-hitachi-hiuxwe2
- exit 0 ;;
- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
- @@ -501,7 +671,7 @@
- 9000/8??:4.3bsd:*:*)
- echo hppa1.0-hp-bsd
- exit 0 ;;
- - *9??*:MPE/iX:*:*)
- + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
- echo hppa1.0-hp-mpeix
- exit 0 ;;
- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
- @@ -510,7 +680,7 @@
- hp8??:OSF1:*:*)
- echo hppa1.0-hp-osf
- exit 0 ;;
- - i?86:OSF1:*:*)
- + i*86:OSF1:*:*)
- if [ -x /usr/sbin/sysversion ] ; then
- echo ${UNAME_MACHINE}-unknown-osf1mk
- else
- @@ -520,9 +690,6 @@
- parisc*:Lites*:*:*)
- echo hppa1.1-hp-lites
- exit 0 ;;
- - hppa*:OpenBSD:*:*)
- - echo hppa-unknown-openbsd
- - exit 0 ;;
- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
- echo c1-convex-bsd
- exit 0 ;;
- @@ -541,41 +708,34 @@
- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
- echo c4-convex-bsd
- exit 0 ;;
- - CRAY*X-MP:*:*:*)
- - echo xmp-cray-unicos
- - exit 0 ;;
- CRAY*Y-MP:*:*:*)
- - echo ymp-cray-unicos${UNAME_RELEASE}
- + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*[A-Z]90:*:*:*)
- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
- - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
- + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
- + -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*TS:*:*:*)
- - echo t90-cray-unicos${UNAME_RELEASE}
- + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*T3E:*:*:*)
- - echo alpha-cray-unicosmk${UNAME_RELEASE}
- + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- - CRAY-2:*:*:*)
- - echo cray2-cray-unicos
- - exit 0 ;;
- - F300:UNIX_System_V:*:*)
- + CRAY*SV1:*:*:*)
- + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- + exit 0 ;;
- + *:UNICOS/mp:*:*)
- + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- + exit 0 ;;
- + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
- + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit 0 ;;
- - F301:UNIX_System_V:*:*)
- - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
- - exit 0 ;;
- - hp3[0-9][05]:NetBSD:*:*)
- - echo m68k-hp-netbsd${UNAME_RELEASE}
- - exit 0 ;;
- - hp300:OpenBSD:*:*)
- - echo m68k-unknown-openbsd${UNAME_RELEASE}
- - exit 0 ;;
- - i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
- + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
- exit 0 ;;
- sparc*:BSD/OS:*:*)
- @@ -584,20 +744,19 @@
- *:BSD/OS:*:*)
- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
- - *:FreeBSD:*:*)
- - if test -x /usr/bin/objformat; then
- - if test "elf" = "`/usr/bin/objformat`"; then
- - echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
- - exit 0
- - fi
- - fi
- - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
- - exit 0 ;;
- - *:NetBSD:*:*)
- - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
- - exit 0 ;;
- - *:OpenBSD:*:*)
- - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
- + # Determine whether the default compiler uses glibc.
- + eval $set_cc_for_build
- + sed 's/^ //' << EOF >$dummy.c
- + #include <features.h>
- + #if __GLIBC__ >= 2
- + LIBC=gnu
- + #else
- + LIBC=
- + #endif
- +EOF
- + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
- exit 0 ;;
- i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin
- @@ -605,11 +764,20 @@
- i*:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
- exit 0 ;;
- + i*:PW*:*)
- + echo ${UNAME_MACHINE}-pc-pw32
- + exit 0 ;;
- + x86:Interix*:3*)
- + echo i586-pc-interix3
- + exit 0 ;;
- + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
- + echo i${UNAME_MACHINE}-pc-mks
- + exit 0 ;;
- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
- # UNAME_MACHINE based on the output of uname instead of i386?
- - echo i386-pc-interix
- + echo i586-pc-interix
- exit 0 ;;
- i*:UWIN*:*)
- echo ${UNAME_MACHINE}-pc-uwin
- @@ -623,201 +791,159 @@
- *:GNU:*:*)
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit 0 ;;
- - *:Linux:*:*)
- -
- + i*86:Minix:*:*)
- + echo ${UNAME_MACHINE}-pc-minix
- + exit 0 ;;
- + arm*:Linux:*:*)
- + echo ${UNAME_MACHINE}-unknown-linux-gnu
- + exit 0 ;;
- + ia64:Linux:*:*)
- + echo ${UNAME_MACHINE}-unknown-linux-gnu
- + exit 0 ;;
- + m68*:Linux:*:*)
- + echo ${UNAME_MACHINE}-unknown-linux-gnu
- + exit 0 ;;
- + mips:Linux:*:*)
- + eval $set_cc_for_build
- + sed 's/^ //' << EOF >$dummy.c
- + #undef CPU
- + #undef mips
- + #undef mipsel
- + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- + CPU=mipsel
- + #else
- + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- + CPU=mips
- + #else
- + CPU=
- + #endif
- + #endif
- +EOF
- + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
- + ;;
- + mips64:Linux:*:*)
- + eval $set_cc_for_build
- + sed 's/^ //' << EOF >$dummy.c
- + #undef CPU
- + #undef mips64
- + #undef mips64el
- + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- + CPU=mips64el
- + #else
- + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- + CPU=mips64
- + #else
- + CPU=
- + #endif
- + #endif
- +EOF
- + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
- + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
- + ;;
- + ppc:Linux:*:*)
- + echo powerpc-unknown-linux-gnu
- + exit 0 ;;
- + ppc64:Linux:*:*)
- + echo powerpc64-unknown-linux-gnu
- + exit 0 ;;
- + alpha:Linux:*:*)
- + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- + EV5) UNAME_MACHINE=alphaev5 ;;
- + EV56) UNAME_MACHINE=alphaev56 ;;
- + PCA56) UNAME_MACHINE=alphapca56 ;;
- + PCA57) UNAME_MACHINE=alphapca56 ;;
- + EV6) UNAME_MACHINE=alphaev6 ;;
- + EV67) UNAME_MACHINE=alphaev67 ;;
- + EV68*) UNAME_MACHINE=alphaev68 ;;
- + esac
- + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
- + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
- + exit 0 ;;
- + parisc:Linux:*:* | hppa:Linux:*:*)
- + # Look for CPU level
- + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- + PA7*) echo hppa1.1-unknown-linux-gnu ;;
- + PA8*) echo hppa2.0-unknown-linux-gnu ;;
- + *) echo hppa-unknown-linux-gnu ;;
- + esac
- + exit 0 ;;
- + parisc64:Linux:*:* | hppa64:Linux:*:*)
- + echo hppa64-unknown-linux-gnu
- + exit 0 ;;
- + s390:Linux:*:* | s390x:Linux:*:*)
- + echo ${UNAME_MACHINE}-ibm-linux
- + exit 0 ;;
- + sh*:Linux:*:*)
- + echo ${UNAME_MACHINE}-unknown-linux-gnu
- + exit 0 ;;
- + sparc:Linux:*:* | sparc64:Linux:*:*)
- + echo ${UNAME_MACHINE}-unknown-linux-gnu
- + exit 0 ;;
- + x86_64:Linux:*:*)
- + echo x86_64-unknown-linux-gnu
- + exit 0 ;;
- + i*86:Linux:*:*)
- # The BFD linker knows what the default object file format is, so
- # first see if it will tell us. cd to the root directory to prevent
- # problems with other programs or directories called `ld' in the path.
- - ld_help_string=`cd /; ld --help 2>&1`
- - ld_supported_emulations=`echo $ld_help_string \
- - | sed -ne '/supported emulations:/!d
- + # Set LC_ALL=C to ensure ld outputs messages in English.
- + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
- + | sed -ne '/supported targets:/!d
- s/[ ][ ]*/ /g
- - s/.*supported emulations: *//
- + s/.*supported targets: *//
- s/ .*//
- p'`
- - case "$ld_supported_emulations" in
- - *ia64)
- - echo "${UNAME_MACHINE}-unknown-linux"
- - exit 0
- + case "$ld_supported_targets" in
- + elf32-i386)
- + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
- ;;
- - i?86linux)
- + a.out-i386-linux)
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- - exit 0
- - ;;
- - i?86coff)
- + exit 0 ;;
- + coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- - exit 0
- - ;;
- - sparclinux)
- - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- - exit 0
- - ;;
- - armlinux)
- - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- - exit 0
- - ;;
- - elf32arm*)
- - echo "${UNAME_MACHINE}-unknown-linux-gnu"
- - exit 0
- - ;;
- - armelf_linux*)
- - echo "${UNAME_MACHINE}-unknown-linux-gnu"
- - exit 0
- - ;;
- - m68klinux)
- - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
- - exit 0
- - ;;
- - elf32ppc)
- - # Determine Lib Version
- - cat >$dummy.c <<EOF
- -#include <features.h>
- -#if defined(__GLIBC__)
- -extern char __libc_version[];
- -extern char __libc_release[];
- -#endif
- -main(argc, argv)
- - int argc;
- - char *argv[];
- -{
- -#if defined(__GLIBC__)
- - printf("%s %s\n", __libc_version, __libc_release);
- -#else
- - printf("unkown\n");
- -#endif
- - return 0;
- -}
- -EOF
- - LIBC=""
- - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
- - if test "$?" = 0 ; then
- - ./$dummy | grep 1\.99 > /dev/null
- - if test "$?" = 0 ; then
- - LIBC="libc1"
- - fi
- - fi
- - rm -f $dummy.c $dummy
- - echo powerpc-unknown-linux-gnu${LIBC}
- - exit 0
- - ;;
- + exit 0 ;;
- + "")
- + # Either a pre-BFD a.out linker (linux-gnuoldld) or
- + # one that does not give us useful --help.
- + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
- + exit 0 ;;
- esac
- -
- - if test "${UNAME_MACHINE}" = "alpha" ; then
- - sed 's/^ //' <<EOF >$dummy.s
- - .globl main
- - .ent main
- - main:
- - .frame \$30,0,\$26,0
- - .prologue 0
- - .long 0x47e03d80 # implver $0
- - lda \$2,259
- - .long 0x47e20c21 # amask $2,$1
- - srl \$1,8,\$2
- - sll \$2,2,\$2
- - sll \$0,3,\$0
- - addl \$1,\$0,\$0
- - addl \$2,\$0,\$0
- - ret \$31,(\$26),1
- - .end main
- -EOF
- - LIBC=""
- - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- - if test "$?" = 0 ; then
- - ./$dummy
- - case "$?" in
- - 7)
- - UNAME_MACHINE="alpha"
- - ;;
- - 15)
- - UNAME_MACHINE="alphaev5"
- - ;;
- - 14)
- - UNAME_MACHINE="alphaev56"
- - ;;
- - 10)
- - UNAME_MACHINE="alphapca56"
- - ;;
- - 16)
- - UNAME_MACHINE="alphaev6"
- - ;;
- - esac
- -
- - objdump --private-headers $dummy | \
- - grep ld.so.1 > /dev/null
- - if test "$?" = 0 ; then
- - LIBC="libc1"
- - fi
- - fi
- - rm -f $dummy.s $dummy
- - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
- - elif test "${UNAME_MACHINE}" = "mips" ; then
- - cat >$dummy.c <<EOF
- -#ifdef __cplusplus
- - int main (int argc, char *argv[]) {
- -#else
- - int main (argc, argv) int argc; char *argv[]; {
- -#endif
- -#ifdef __MIPSEB__
- - printf ("%s-unknown-linux-gnu\n", argv[1]);
- -#endif
- -#ifdef __MIPSEL__
- - printf ("%sel-unknown-linux-gnu\n", argv[1]);
- -#endif
- - return 0;
- -}
- -EOF
- - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
- - rm -f $dummy.c $dummy
- - else
- - # Either a pre-BFD a.out linker (linux-gnuoldld)
- - # or one that does not give us useful --help.
- - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
- - # If ld does not provide *any* "supported emulations:"
- - # that means it is gnuoldld.
- - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
- - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
- -
- - case "${UNAME_MACHINE}" in
- - i?86)
- - VENDOR=pc;
- - ;;
- - *)
- - VENDOR=unknown;
- - ;;
- - esac
- - # Determine whether the default compiler is a.out or elf
- - cat >$dummy.c <<EOF
- -#include <features.h>
- -#ifdef __cplusplus
- - int main (int argc, char *argv[]) {
- -#else
- - int main (argc, argv) int argc; char *argv[]; {
- -#endif
- -#ifdef __ELF__
- -# ifdef __GLIBC__
- -# if __GLIBC__ >= 2
- - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
- -# else
- - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
- -# endif
- -# else
- - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
- -# endif
- -#else
- - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
- -#endif
- - return 0;
- -}
- + # Determine whether the default compiler is a.out or elf
- + eval $set_cc_for_build
- + sed 's/^ //' << EOF >$dummy.c
- + #include <features.h>
- + #ifdef __ELF__
- + # ifdef __GLIBC__
- + # if __GLIBC__ >= 2
- + LIBC=gnu
- + # else
- + LIBC=gnulibc1
- + # endif
- + # else
- + LIBC=gnulibc1
- + # endif
- + #else
- + #ifdef __INTEL_COMPILER
- + LIBC=gnu
- + #else
- + LIBC=gnuaout
- + #endif
- + #endif
- EOF
- - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
- - rm -f $dummy.c $dummy
- - fi ;;
- -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
- -# are messed up and put the nodename in both sysname and nodename.
- - i?86:DYNIX/ptx:4*:*)
- + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
- + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
- + ;;
- + i*86:DYNIX/ptx:4*:*)
- + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
- + # earlier versions are messed up and put the nodename in both
- + # sysname and nodename.
- echo i386-sequent-sysv4
- exit 0 ;;
- - i?86:UNIX_SV:4.2MP:2.*)
- + i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
- @@ -825,7 +951,24 @@
- # Use sysv4.2uw... so that sysv4* matches it.
- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit 0 ;;
- - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
- + i*86:OS/2:*:*)
- + # If we were able to find `uname', then EMX Unix compatibility
- + # is probably installed.
- + echo ${UNAME_MACHINE}-pc-os2-emx
- + exit 0 ;;
- + i*86:XTS-300:*:STOP)
- + echo ${UNAME_MACHINE}-unknown-stop
- + exit 0 ;;
- + i*86:atheos:*:*)
- + echo ${UNAME_MACHINE}-unknown-atheos
- + exit 0 ;;
- + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
- + echo i386-unknown-lynxos${UNAME_RELEASE}
- + exit 0 ;;
- + i*86:*DOS:*:*)
- + echo ${UNAME_MACHINE}-pc-msdosdjgpp
- + exit 0 ;;
- + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
- @@ -833,27 +976,26 @@
- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
- fi
- exit 0 ;;
- - i?86:*:5:7*)
- - # Fixed at (any) Pentium or better
- - UNAME_MACHINE=i586
- - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
- - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
- - else
- - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
- - fi
- + i*86:*:5:[78]*)
- + case `/bin/uname -X | grep "^Machine"` in
- + *486*) UNAME_MACHINE=i486 ;;
- + *Pentium) UNAME_MACHINE=i586 ;;
- + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
- + esac
- + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
- exit 0 ;;
- - i?86:*:3.2:*)
- + i*86:*:3.2:*)
- if test -f /usr/options/cb.name; then
- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
- elif /bin/uname -X 2>/dev/null >/dev/null ; then
- - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
- - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
- - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
- + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
- + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
- + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
- && UNAME_MACHINE=i586
- - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
- + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
- && UNAME_MACHINE=i686
- - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
- + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
- && UNAME_MACHINE=i686
- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
- else
- @@ -861,6 +1003,7 @@
- fi
- exit 0 ;;
- pc:*:*:*)
- + # Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
- echo i386-pc-msdosdjgpp
- @@ -882,9 +1025,15 @@
- # "miniframe"
- echo m68010-convergent-sysv
- exit 0 ;;
- + mc68k:UNIX:SYSTEM5:3.51m)
- + echo m68k-convergent-sysv
- + exit 0 ;;
- + M680?0:D-NIX:5.3:*)
- + echo m68k-diab-dnix
- + exit 0 ;;
- M68*:*:R3V[567]*:*)
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
- + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
- OS_REL=''
- test -r /etc/.relid \
- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
- @@ -895,21 +1044,21 @@
- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && echo i486-ncr-sysv4 && exit 0 ;;
- - m68*:LynxOS:2.*:*)
- + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
- echo m68k-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- mc68030:UNIX_System_V:4.*:*)
- echo m68k-atari-sysv4
- exit 0 ;;
- - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
- - echo i386-unknown-lynxos${UNAME_RELEASE}
- - exit 0 ;;
- TSUNAMI:LynxOS:2.*:*)
- echo sparc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
- + rs6000:LynxOS:2.*:*)
- echo rs6000-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
- + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
- + echo powerpc-unknown-lynxos${UNAME_RELEASE}
- + exit 0 ;;
- SM[BE]S:UNIX_SV:*:*)
- echo mips-dde-sysv${UNAME_RELEASE}
- exit 0 ;;
- @@ -927,8 +1076,8 @@
- echo ns32k-sni-sysv
- fi
- exit 0 ;;
- - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- - # says <Richard.M.Bartel@ccMail.Census.GOV>
- + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- + # says <Richard.M.Bartel@ccMail.Census.GOV>
- echo i586-unisys-sysv4
- exit 0 ;;
- *:UNIX_System_V:4*:FTX*)
- @@ -940,10 +1089,14 @@
- # From seanf@swdc.stratus.com.
- echo i860-stratus-sysv4
- exit 0 ;;
- + *:VOS:*:*)
- + # From Paul.Green@stratus.com.
- + echo hppa1.1-stratus-vos
- + exit 0 ;;
- mc68*:A/UX:*:*)
- echo m68k-apple-aux${UNAME_RELEASE}
- exit 0 ;;
- - news*:NEWS-OS:*:6*)
- + news*:NEWS-OS:6*:*)
- echo mips-sony-newsos6
- exit 0 ;;
- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
- @@ -968,20 +1121,80 @@
- SX-5:SUPER-UX:*:*)
- echo sx5-nec-superux${UNAME_RELEASE}
- exit 0 ;;
- + SX-6:SUPER-UX:*:*)
- + echo sx6-nec-superux${UNAME_RELEASE}
- + exit 0 ;;
- Power*:Rhapsody:*:*)
- echo powerpc-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
- *:Rhapsody:*:*)
- echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
- + *:Darwin:*:*)
- + case `uname -p` in
- + *86) UNAME_PROCESSOR=i686 ;;
- + powerpc) UNAME_PROCESSOR=powerpc ;;
- + esac
- + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
- + exit 0 ;;
- + *:procnto*:*:* | *:QNX:[0123456789]*:*)
- + UNAME_PROCESSOR=`uname -p`
- + if test "$UNAME_PROCESSOR" = "x86"; then
- + UNAME_PROCESSOR=i386
- + UNAME_MACHINE=pc
- + fi
- + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
- + exit 0 ;;
- *:QNX:*:4*)
- - echo i386-qnx-qnx${UNAME_VERSION}
- + echo i386-pc-qnx
- + exit 0 ;;
- + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
- + echo nsr-tandem-nsk${UNAME_RELEASE}
- + exit 0 ;;
- + *:NonStop-UX:*:*)
- + echo mips-compaq-nonstopux
- + exit 0 ;;
- + BS2000:POSIX*:*:*)
- + echo bs2000-siemens-sysv
- + exit 0 ;;
- + DS/*:UNIX_System_V:*:*)
- + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
- + exit 0 ;;
- + *:Plan9:*:*)
- + # "uname -m" is not consistent, so use $cputype instead. 386
- + # is converted to i386 for consistency with other x86
- + # operating systems.
- + if test "$cputype" = "386"; then
- + UNAME_MACHINE=i386
- + else
- + UNAME_MACHINE="$cputype"
- + fi
- + echo ${UNAME_MACHINE}-unknown-plan9
- + exit 0 ;;
- + *:TOPS-10:*:*)
- + echo pdp10-unknown-tops10
- + exit 0 ;;
- + *:TENEX:*:*)
- + echo pdp10-unknown-tenex
- + exit 0 ;;
- + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
- + echo pdp10-dec-tops20
- + exit 0 ;;
- + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
- + echo pdp10-xkl-tops20
- + exit 0 ;;
- + *:TOPS-20:*:*)
- + echo pdp10-unknown-tops20
- + exit 0 ;;
- + *:ITS:*:*)
- + echo pdp10-unknown-its
- exit 0 ;;
- esac
-
- #echo '(No uname command or uname output not recognized.)' 1>&2
- #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
- +eval $set_cc_for_build
- cat >$dummy.c <<EOF
- #ifdef _SEQUENT_
- # include <sys/types.h>
- @@ -1068,11 +1281,24 @@
- #endif
-
- #if defined (vax)
- -#if !defined (ultrix)
- - printf ("vax-dec-bsd\n"); exit (0);
- -#else
- - printf ("vax-dec-ultrix\n"); exit (0);
- -#endif
- +# if !defined (ultrix)
- +# include <sys/param.h>
- +# if defined (BSD)
- +# if BSD == 43
- + printf ("vax-dec-bsd4.3\n"); exit (0);
- +# else
- +# if BSD == 199006
- + printf ("vax-dec-bsd4.3reno\n"); exit (0);
- +# else
- + printf ("vax-dec-bsd\n"); exit (0);
- +# endif
- +# endif
- +# else
- + printf ("vax-dec-bsd\n"); exit (0);
- +# endif
- +# else
- + printf ("vax-dec-ultrix\n"); exit (0);
- +# endif
- #endif
-
- #if defined (alliant) && defined (i860)
- @@ -1083,8 +1309,7 @@
- }
- EOF
-
- -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
- -rm -f $dummy.c $dummy
- +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
-
- # Apollos put the system type in the environment.
-
- @@ -1116,6 +1341,48 @@
- esac
- fi
-
- -#echo '(Unable to guess system type)' 1>&2
- +cat >&2 <<EOF
- +$0: unable to guess system type
- +
- +This script, last modified $timestamp, has failed to recognize
- +the operating system you are using. It is advised that you
- +download the most up to date version of the config scripts from
- +
- + ftp://ftp.gnu.org/pub/gnu/config/
- +
- +If the version you run ($0) is already up to date, please
- +send the following data and any information you think might be
- +pertinent to <config-patches@gnu.org> in order to provide the needed
- +information to handle your system.
- +
- +config.guess timestamp = $timestamp
- +
- +uname -m = `(uname -m) 2>/dev/null || echo unknown`
- +uname -r = `(uname -r) 2>/dev/null || echo unknown`
- +uname -s = `(uname -s) 2>/dev/null || echo unknown`
- +uname -v = `(uname -v) 2>/dev/null || echo unknown`
- +
- +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
- +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
- +
- +hostinfo = `(hostinfo) 2>/dev/null`
- +/bin/universe = `(/bin/universe) 2>/dev/null`
- +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
- +/bin/arch = `(/bin/arch) 2>/dev/null`
- +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
- +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
- +
- +UNAME_MACHINE = ${UNAME_MACHINE}
- +UNAME_RELEASE = ${UNAME_RELEASE}
- +UNAME_SYSTEM = ${UNAME_SYSTEM}
- +UNAME_VERSION = ${UNAME_VERSION}
- +EOF
-
- exit 1
- +
- +# Local variables:
- +# eval: (add-hook 'write-file-hooks 'time-stamp)
- +# time-stamp-start: "timestamp='"
- +# time-stamp-format: "%:y-%02m-%02d"
- +# time-stamp-end: "'"
- +# End:
- --- glib1.2-1.2.10.orig/config.sub
- +++ glib1.2-1.2.10/config.sub
- @@ -1,6 +1,10 @@
- #! /bin/sh
- -# Configuration validation subroutine script, version 1.1.
- -# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
- +# Configuration validation subroutine script.
- +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
- +
- +timestamp='2003-05-09'
- +
- # This file is (in principle) common to ALL GNU software.
- # The presence of a machine in this file suggests that SOME GNU software
- # can handle that machine. It does not imply ALL GNU software can.
- @@ -25,6 +29,9 @@
- # configuration script generated by Autoconf, you may include it under
- # the same distribution terms that you use for the rest of that program.
-
- +# Please send patches to <config-patches@gnu.org>. Submit a context
- +# diff and a properly formatted ChangeLog entry.
- +#
- # Configuration subroutine to validate and canonicalize a configuration type.
- # Supply the specified configuration type as an argument.
- # If it is invalid, we print an error message on stderr and exit with code 1.
- @@ -45,30 +52,73 @@
- # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
- # It is wrong to echo any other type of specification.
-
- -if [ x$1 = x ]
- -then
- - echo Configuration name missing. 1>&2
- - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
- - echo "or $0 ALIAS" 1>&2
- - echo where ALIAS is a recognized configuration type. 1>&2
- - exit 1
- -fi
- +me=`echo "$0" | sed -e 's,.*/,,'`
-
- -# First pass through any local machine types.
- -case $1 in
- - *local*)
- - echo $1
- - exit 0
- - ;;
- - *)
- - ;;
- +usage="\
- +Usage: $0 [OPTION] CPU-MFR-OPSYS
- + $0 [OPTION] ALIAS
- +
- +Canonicalize a configuration name.
- +
- +Operation modes:
- + -h, --help print this help, then exit
- + -t, --time-stamp print date of last modification, then exit
- + -v, --version print version number, then exit
- +
- +Report bugs and patches to <config-patches@gnu.org>."
- +
- +version="\
- +GNU config.sub ($timestamp)
- +
- +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
- +Free Software Foundation, Inc.
- +
- +This is free software; see the source for copying conditions. There is NO
- +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
- +
- +help="
- +Try \`$me --help' for more information."
- +
- +# Parse command line
- +while test $# -gt 0 ; do
- + case $1 in
- + --time-stamp | --time* | -t )
- + echo "$timestamp" ; exit 0 ;;
- + --version | -v )
- + echo "$version" ; exit 0 ;;
- + --help | --h* | -h )
- + echo "$usage"; exit 0 ;;
- + -- ) # Stop option processing
- + shift; break ;;
- + - ) # Use stdin as input.
- + break ;;
- + -* )
- + echo "$me: invalid option $1$help"
- + exit 1 ;;
- +
- + *local*)
- + # First pass through any local machine types.
- + echo $1
- + exit 0;;
- +
- + * )
- + break ;;
- + esac
- +done
- +
- +case $# in
- + 0) echo "$me: missing argument$help" >&2
- + exit 1;;
- + 1) ;;
- + *) echo "$me: too many arguments$help" >&2
- + exit 1;;
- esac
-
- # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
- # Here we must recognize all the valid KERNEL-OS combinations.
- maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
- case $maybe_os in
- - linux-gnu*)
- + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- @@ -94,7 +144,7 @@
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- - -apple)
- + -apple | -axis)
- os=
- basic_machine=$1
- ;;
- @@ -108,6 +158,14 @@
- os=-vxworks
- basic_machine=$1
- ;;
- + -chorusos*)
- + os=-chorusos
- + basic_machine=$1
- + ;;
- + -chorusrdb)
- + os=-chorusrdb
- + basic_machine=$1
- + ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- @@ -166,27 +224,62 @@
- case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
- - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
- - | 580 | i960 | h8300 \
- - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
- - | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
- - | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
- - | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
- - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
- - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
- - | mips64vr5000 | miprs64vr5000el | mcore \
- - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
- - | thumb | d10v | fr30)
- + 1750a | 580 \
- + | a29k \
- + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- + | clipper \
- + | d10v | d30v | dlx | dsp16xx \
- + | fr30 | frv \
- + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- + | i370 | i860 | i960 | ia64 \
- + | ip2k \
- + | m32r | m68000 | m68k | m88k | mcore \
- + | mips | mipsbe | mipseb | mipsel | mipsle \
- + | mips16 \
- + | mips64 | mips64el \
- + | mips64vr | mips64vrel \
- + | mips64orion | mips64orionel \
- + | mips64vr4100 | mips64vr4100el \
- + | mips64vr4300 | mips64vr4300el \
- + | mips64vr5000 | mips64vr5000el \
- + | mipsisa32 | mipsisa32el \
- + | mipsisa32r2 | mipsisa32r2el \
- + | mipsisa64 | mipsisa64el \
- + | mipsisa64sb1 | mipsisa64sb1el \
- + | mipsisa64sr71k | mipsisa64sr71kel \
- + | mipstx39 | mipstx39el \
- + | mn10200 | mn10300 \
- + | msp430 \
- + | ns16k | ns32k \
- + | openrisc | or32 \
- + | pdp10 | pdp11 | pj | pjl \
- + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
- + | pyramid \
- + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
- + | sh64 | sh64le \
- + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
- + | strongarm \
- + | tahoe | thumb | tic80 | tron \
- + | v850 | v850e \
- + | we32k \
- + | x86 | xscale | xstormy16 | xtensa \
- + | z8k)
- + basic_machine=$basic_machine-unknown
- + ;;
- + m6811 | m68hc11 | m6812 | m68hc12)
- + # Motorola 68HC11/12.
- basic_machine=$basic_machine-unknown
- + os=-none
- ;;
- - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
- + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- - i[34567]86)
- + i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- @@ -195,24 +288,60 @@
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- - # FIXME: clean up the formatting here.
- - vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
- - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
- - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
- - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
- - | xmp-* | ymp-* \
- - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
- - | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
- - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
- - | clipper-* | orion-* \
- - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
- - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
- - | mips64el-* | mips64orion-* | mips64orionel-* \
- - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
- - | mipstx39-* | mipstx39el-* | mcore-* \
- - | f301-* | armv*-* | t3e-* \
- - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
- - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
- + 580-* \
- + | a29k-* \
- + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- + | avr-* \
- + | bs2000-* \
- + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
- + | clipper-* | cydra-* \
- + | d10v-* | d30v-* | dlx-* \
- + | elxsi-* \
- + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
- + | h8300-* | h8500-* \
- + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- + | i*86-* | i860-* | i960-* | ia64-* \
- + | ip2k-* \
- + | m32r-* \
- + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- + | m88110-* | m88k-* | mcore-* \
- + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
- + | mips16-* \
- + | mips64-* | mips64el-* \
- + | mips64vr-* | mips64vrel-* \
- + | mips64orion-* | mips64orionel-* \
- + | mips64vr4100-* | mips64vr4100el-* \
- + | mips64vr4300-* | mips64vr4300el-* \
- + | mips64vr5000-* | mips64vr5000el-* \
- + | mipsisa32-* | mipsisa32el-* \
- + | mipsisa32r2-* | mipsisa32r2el-* \
- + | mipsisa64-* | mipsisa64el-* \
- + | mipsisa64sb1-* | mipsisa64sb1el-* \
- + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
- + | mipstx39-* | mipstx39el-* \
- + | msp430-* \
- + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
- + | orion-* \
- + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
- + | pyramid-* \
- + | romp-* | rs6000-* \
- + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
- + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
- + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
- + | tahoe-* | thumb-* \
- + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
- + | tron-* \
- + | v850-* | v850e-* | vax-* \
- + | we32k-* \
- + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
- + | xtensa-* \
- + | ymp-* \
- + | z8k-*)
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- @@ -244,19 +373,22 @@
- basic_machine=a29k-none
- os=-bsd
- ;;
- + amd64)
- + basic_machine=x86_64-pc
- + ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- - basic_machine=m68k-cbm
- + basic_machine=m68k-unknown
- ;;
- amigaos | amigados)
- - basic_machine=m68k-cbm
- + basic_machine=m68k-unknown
- os=-amigaos
- ;;
- amigaunix | amix)
- - basic_machine=m68k-cbm
- + basic_machine=m68k-unknown
- os=-sysv4
- ;;
- apollo68)
- @@ -275,6 +407,10 @@
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- + c90)
- + basic_machine=c90-cray
- + os=-unicos
- + ;;
- convex-c1)
- basic_machine=c1-convex
- os=-bsd
- @@ -295,27 +431,30 @@
- basic_machine=c38-convex
- os=-bsd
- ;;
- - cray | ymp)
- - basic_machine=ymp-cray
- - os=-unicos
- - ;;
- - cray2)
- - basic_machine=cray2-cray
- - os=-unicos
- - ;;
- - [ctj]90-cray)
- - basic_machine=c90-cray
- + cray | j90)
- + basic_machine=j90-cray
- os=-unicos
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- + cris | cris-* | etrax*)
- + basic_machine=cris-axis
- + ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- + decsystem10* | dec10*)
- + basic_machine=pdp10-dec
- + os=-tops10
- + ;;
- + decsystem20* | dec20*)
- + basic_machine=pdp10-dec
- + os=-tops20
- + ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- @@ -357,6 +496,10 @@
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- + go32)
- + basic_machine=i386-pc
- + os=-go32
- + ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- @@ -432,19 +575,19 @@
- basic_machine=i370-ibm
- ;;
- # I'm not sure what "Sysv32" means. Should this be sysv3.2?
- - i[34567]86v32)
- + i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- - i[34567]86v4*)
- + i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- - i[34567]86v)
- + i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- - i[34567]86sol2)
- + i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- @@ -456,17 +599,6 @@
- basic_machine=i386-unknown
- os=-vsta
- ;;
- - i386-go32 | go32)
- - basic_machine=i386-unknown
- - os=-go32
- - ;;
- - i386-mingw32 | mingw32)
- - basic_machine=i386-unknown
- - os=-mingw32
- - ;;
- - i386-qnx | qnx)
- - basic_machine=i386-qnx
- - ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- @@ -492,6 +624,10 @@
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- + mingw32)
- + basic_machine=i386-pc
- + os=-mingw32
- + ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- @@ -499,26 +635,26 @@
- basic_machine=m68k-atari
- os=-mint
- ;;
- - mipsel*-linux*)
- - basic_machine=mipsel-unknown
- - os=-linux-gnu
- - ;;
- - mips*-linux*)
- - basic_machine=mips-unknown
- - os=-linux-gnu
- - ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- + mmix*)
- + basic_machine=mmix-knuth
- + os=-mmixware
- + ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- + morphos)
- + basic_machine=powerpc-unknown
- + os=-morphos
- + ;;
- msdos)
- - basic_machine=i386-unknown
- + basic_machine=i386-pc
- os=-msdos
- ;;
- mvs)
- @@ -582,13 +718,28 @@
- basic_machine=i960-intel
- os=-mon960
- ;;
- + nonstopux)
- + basic_machine=mips-compaq
- + os=-nonstopux
- + ;;
- np1)
- basic_machine=np1-gould
- ;;
- + nv1)
- + basic_machine=nv1-cray
- + os=-unicosmp
- + ;;
- + nsr-tandem)
- + basic_machine=nsr-tandem
- + ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- + or32 | or32-*)
- + basic_machine=or32-unknown
- + os=-coff
- + ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- @@ -611,45 +762,59 @@
- pbb)
- basic_machine=m68k-tti
- ;;
- - pc532 | pc532-*)
- + pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- - pentium | p5 | k5 | k6 | nexen)
- + pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- - pentiumpro | p6 | 6x86)
- + pentiumpro | p6 | 6x86 | athlon | athlon_*)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2)
- - basic_machine=i786-pc
- + basic_machine=i686-pc
- ;;
- - pentium-* | p5-* | k5-* | k6-* | nexen-*)
- + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- - pentiumpro-* | p6-* | 6x86-*)
- + pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-*)
- - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
- + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- - power) basic_machine=rs6000-ibm
- + power) basic_machine=power-ibm
- ;;
- ppc) basic_machine=powerpc-unknown
- - ;;
- + ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- - ;;
- + ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- + ppc64) basic_machine=powerpc64-unknown
- + ;;
- + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- + ;;
- + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- + basic_machine=powerpc64le-unknown
- + ;;
- + ppc64le-* | powerpc64little-*)
- + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- + ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- + pw32)
- + basic_machine=i586-unknown
- + os=-pw32
- + ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- @@ -660,10 +825,22 @@
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- + s390 | s390-*)
- + basic_machine=s390-ibm
- + ;;
- + s390x | s390x-*)
- + basic_machine=s390x-ibm
- + ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- + sb1)
- + basic_machine=mipsisa64sb1-unknown
- + ;;
- + sb1el)
- + basic_machine=mipsisa64sb1el-unknown
- + ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- @@ -671,7 +848,7 @@
- basic_machine=sh-hitachi
- os=-hms
- ;;
- - sparclite-wrs)
- + sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- @@ -729,20 +906,48 @@
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- + sv1)
- + basic_machine=sv1-cray
- + os=-unicos
- + ;;
- symmetry)
- basic_machine=i386-sequent
- os=-dynix
- ;;
- t3e)
- - basic_machine=t3e-cray
- + basic_machine=alphaev5-cray
- os=-unicos
- ;;
- + t90)
- + basic_machine=t90-cray
- + os=-unicos
- + ;;
- + tic4x | c4x*)
- + basic_machine=tic4x-unknown
- + os=-coff
- + ;;
- + tic54x | c54x*)
- + basic_machine=tic54x-unknown
- + os=-coff
- + ;;
- + tic55x | c55x*)
- + basic_machine=tic55x-unknown
- + os=-coff
- + ;;
- + tic6x | c6x*)
- + basic_machine=tic6x-unknown
- + os=-coff
- + ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- + toad1)
- + basic_machine=pdp10-xkl
- + os=-tops20
- + ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- @@ -767,8 +972,8 @@
- os=-vms
- ;;
- vpp*|vx|vx-*)
- - basic_machine=f301-fujitsu
- - ;;
- + basic_machine=f301-fujitsu
- + ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- @@ -789,13 +994,13 @@
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- - xmp)
- - basic_machine=xmp-cray
- - os=-unicos
- - ;;
- - xps | xps100)
- + xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- + ymp)
- + basic_machine=ymp-cray
- + os=-unicos
- + ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- @@ -816,13 +1021,6 @@
- op60c)
- basic_machine=hppa1.1-oki
- ;;
- - mips)
- - if [ x$os = x-linux-gnu ]; then
- - basic_machine=mips-unknown
- - else
- - basic_machine=mips-mips
- - fi
- - ;;
- romp)
- basic_machine=romp-ibm
- ;;
- @@ -832,16 +1030,26 @@
- vax)
- basic_machine=vax-dec
- ;;
- + pdp10)
- + # there are many clones, so DEC is not a safe bet
- + basic_machine=pdp10-unknown
- + ;;
- pdp11)
- basic_machine=pdp11-dec
- ;;
- we32k)
- basic_machine=we32k-att
- ;;
- - sparc | sparcv9)
- + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
- + basic_machine=sh-unknown
- + ;;
- + sh64)
- + basic_machine=sh64-unknown
- + ;;
- + sparc | sparcv9 | sparcv9b)
- basic_machine=sparc-sun
- ;;
- - cydra)
- + cydra)
- basic_machine=cydra-cydrome
- ;;
- orion)
- @@ -856,9 +1064,8 @@
- pmac | pmac-mpw)
- basic_machine=powerpc-apple
- ;;
- - c4x*)
- - basic_machine=c4x-none
- - os=-coff
- + *-unknown)
- + # Make sure to match an already-canonicalized machine name.
- ;;
- *)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- @@ -916,14 +1123,34 @@
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- + | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
- - | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
- + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
- + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
- + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- + | -powermax* | -dnix*)
- # Remember, each alternative MUST END IN *, to match a version number.
- ;;
- + -qnx*)
- + case $basic_machine in
- + x86-* | i*86-*)
- + ;;
- + *)
- + os=-nto$os
- + ;;
- + esac
- + ;;
- + -nto-qnx*)
- + ;;
- + -nto*)
- + os=`echo $os | sed -e 's|nto|nto-qnx|'`
- + ;;
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
- - | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
- + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
- ;;
- -mac*)
- os=`echo $os | sed -e 's|mac|macos|'`
- @@ -940,6 +1167,9 @@
- -opened*)
- os=-openedition
- ;;
- + -wince*)
- + os=-wince
- + ;;
- -osfrose*)
- os=-osfrose
- ;;
- @@ -955,14 +1185,23 @@
- -acis*)
- os=-aos
- ;;
- + -atheos*)
- + os=-atheos
- + ;;
- -386bsd)
- os=-bsd
- ;;
- -ctix* | -uts*)
- os=-sysv
- ;;
- + -nova*)
- + os=-rtmk-nova
- + ;;
- -ns2 )
- - os=-nextstep2
- + os=-nextstep2
- + ;;
- + -nsk*)
- + os=-nsk
- ;;
- # Preserve the version number of sinix5.
- -sinix5.*)
- @@ -977,9 +1216,6 @@
- -oss*)
- os=-sysv3
- ;;
- - -qnx)
- - os=-qnx4
- - ;;
- -svr4)
- os=-sysv4
- ;;
- @@ -1001,8 +1237,14 @@
- -xenix)
- os=-xenix
- ;;
- - -*mint | -*MiNT)
- - os=-mint
- + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- + os=-mint
- + ;;
- + -aros*)
- + os=-aros
- + ;;
- + -kaos*)
- + os=-kaos
- ;;
- -none)
- ;;
- @@ -1035,7 +1277,11 @@
- arm*-semi)
- os=-aout
- ;;
- - pdp11-*)
- + # This must come before the *-dec entry.
- + pdp10-*)
- + os=-tops20
- + ;;
- + pdp11-*)
- os=-none
- ;;
- *-dec | vax-*)
- @@ -1062,6 +1308,9 @@
- mips*-*)
- os=-elf
- ;;
- + or32-*)
- + os=-coff
- + ;;
- *-tti) # must be before sparc entry or we get the wrong os.
- os=-sysv3
- ;;
- @@ -1125,25 +1374,25 @@
- *-next)
- os=-nextstep3
- ;;
- - *-gould)
- + *-gould)
- os=-sysv
- ;;
- - *-highlevel)
- + *-highlevel)
- os=-bsd
- ;;
- *-encore)
- os=-bsd
- ;;
- - *-sgi)
- + *-sgi)
- os=-irix
- ;;
- - *-siemens)
- + *-siemens)
- os=-sysv4
- ;;
- *-masscomp)
- os=-rtu
- ;;
- - f301-fujitsu)
- + f30[01]-fujitsu | f700-fujitsu)
- os=-uxpv
- ;;
- *-rom68k)
- @@ -1209,7 +1458,7 @@
- -ptx*)
- vendor=sequent
- ;;
- - -vxsim* | -vxworks*)
- + -vxsim* | -vxworks* | -windiss*)
- vendor=wrs
- ;;
- -aux*)
- @@ -1221,12 +1470,23 @@
- -mpw* | -macos*)
- vendor=apple
- ;;
- - -*mint | -*MiNT)
- + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- vendor=atari
- ;;
- + -vos*)
- + vendor=stratus
- + ;;
- esac
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
- ;;
- esac
-
- echo $basic_machine$os
- +exit 0
- +
- +# Local variables:
- +# eval: (add-hook 'write-file-hooks 'time-stamp)
- +# time-stamp-start: "timestamp='"
- +# time-stamp-format: "%:y-%02m-%02d"
- +# time-stamp-end: "'"
- +# End:
- --- glib1.2-1.2.10.orig/configure
- +++ glib1.2-1.2.10/configure
- @@ -38,9 +38,170 @@
- --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
- ac_help="$ac_help
- --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
- +
- +# Find the correct PATH separator. Usually this is `:', but
- +# DJGPP uses `;' like DOS.
- +if test "X${PATH_SEPARATOR+set}" != Xset; then
- + UNAME=${UNAME-`uname 2>/dev/null`}
- + case X$UNAME in
- + *-DOS) lt_cv_sys_path_separator=';' ;;
- + *) lt_cv_sys_path_separator=':' ;;
- + esac
- + PATH_SEPARATOR=$lt_cv_sys_path_separator
- +fi
- +
- +
- +# Check that we are running under the correct shell.
- +SHELL=${CONFIG_SHELL-/bin/sh}
- +
- +case X$ECHO in
- +X*--fallback-echo)
- + # Remove one level of quotation (which was required for Make).
- + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
- + ;;
- +esac
- +
- +echo=${ECHO-echo}
- +if test "X$1" = X--no-reexec; then
- + # Discard the --no-reexec flag, and continue.
- + shift
- +elif test "X$1" = X--fallback-echo; then
- + # Avoid inline document here, it may be left over
- + :
- +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
- + # Yippee, $echo works!
- + :
- +else
- + # Restart under the correct shell.
- + exec $SHELL "$0" --no-reexec ${1+"$@"}
- +fi
- +
- +if test "X$1" = X--fallback-echo; then
- + # used as fallback echo
- + shift
- + cat <<EOF
- +
- +EOF
- + exit 0
- +fi
- +
- +# The HP-UX ksh and POSIX shell print the target directory to stdout
- +# if CDPATH is set.
- +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
- +
- +if test -z "$ECHO"; then
- +if test "X${echo_test_string+set}" != Xset; then
- +# find a string as large as possible, as long as the shell can cope with it
- + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
- + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
- + echo_test_string="`eval $cmd`" &&
- + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- + then
- + break
- + fi
- + done
- +fi
- +
- +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + :
- +else
- + # The Solaris, AIX, and Digital Unix default echo programs unquote
- + # backslashes. This makes it impossible to quote backslashes using
- + # echo "$something" | sed 's/\\/\\\\/g'
- + #
- + # So, first we look for a working echo in the user's PATH.
- +
- + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- + for dir in $PATH /usr/ucb; do
- + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + echo="$dir/echo"
- + break
- + fi
- + done
- + IFS="$save_ifs"
- +
- + if test "X$echo" = Xecho; then
- + # We didn't find a better echo, so look for alternatives.
- + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + # This shell has a builtin print -r that does the trick.
- + echo='print -r'
- + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- + test "X$CONFIG_SHELL" != X/bin/ksh; then
- + # If we have ksh, try running configure again with it.
- + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- + export ORIGINAL_CONFIG_SHELL
- + CONFIG_SHELL=/bin/ksh
- + export CONFIG_SHELL
- + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
- + else
- + # Try using printf.
- + echo='printf %s\n'
- + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + # Cool, printf works
- + :
- + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- + test "X$echo_testing_string" = 'X\t' &&
- + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- + export CONFIG_SHELL
- + SHELL="$CONFIG_SHELL"
- + export SHELL
- + echo="$CONFIG_SHELL $0 --fallback-echo"
- + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- + test "X$echo_testing_string" = 'X\t' &&
- + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- + test "X$echo_testing_string" = "X$echo_test_string"; then
- + echo="$CONFIG_SHELL $0 --fallback-echo"
- + else
- + # maybe with a smaller string...
- + prev=:
- +
- + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
- + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- + then
- + break
- + fi
- + prev="$cmd"
- + done
- +
- + if test "$prev" != 'sed 50q "$0"'; then
- + echo_test_string=`eval $prev`
- + export echo_test_string
- + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
- + else
- + # Oops. We lost completely, so just stick with echo.
- + echo=echo
- + fi
- + fi
- + fi
- + fi
- +fi
- +fi
- +
- +# Copy echo and quote the copy suitably for passing to libtool from
- +# the Makefile, instead of quoting the original, which is used later.
- +ECHO=$echo
- +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
- + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
- +fi
- +
- +
- ac_help="$ac_help
- --disable-libtool-lock avoid locking (might break parallel builds)"
- ac_help="$ac_help
- + --with-pic try to use only PIC/non-PIC objects [default=use both]"
- +ac_help="$ac_help
- --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer"
- if test `expr $GLIB_MINOR_VERSION \% 2` = 1 ; then
- @@ -618,6 +779,7 @@
- ac_config_sub=$ac_aux_dir/config.sub
- ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-
- +am__api_version="1.4"
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- @@ -630,7 +792,7 @@
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- -echo "configure:634: checking for a BSD compatible install" >&5
- +echo "configure:796: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -683,7 +845,7 @@
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
- echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
- -echo "configure:687: checking whether build environment is sane" >&5
- +echo "configure:849: checking whether build environment is sane" >&5
- # Just in case
- sleep 1
- echo timestamp > conftestfile
- @@ -740,7 +902,7 @@
- test "$program_transform_name" = "" && program_transform_name="s,x,x,"
-
- echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
- -echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
- +echo "configure:906: checking whether ${MAKE-make} sets \${MAKE}" >&5
- set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -778,21 +940,21 @@
-
-
- missing_dir=`cd $ac_aux_dir && pwd`
- -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
- -echo "configure:783: checking for working aclocal" >&5
- +echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
- +echo "configure:945: checking for working aclocal-${am__api_version}" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- - ACLOCAL=aclocal
- +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
- + ACLOCAL=aclocal-${am__api_version}
- echo "$ac_t""found" 1>&6
- else
- - ACLOCAL="$missing_dir/missing aclocal"
- + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
- -echo "configure:796: checking for working autoconf" >&5
- +echo "configure:958: checking for working autoconf" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- @@ -804,21 +966,21 @@
- echo "$ac_t""missing" 1>&6
- fi
-
- -echo $ac_n "checking for working automake""... $ac_c" 1>&6
- -echo "configure:809: checking for working automake" >&5
- +echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
- +echo "configure:971: checking for working automake-${am__api_version}" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- -if (automake --version) < /dev/null > /dev/null 2>&1; then
- - AUTOMAKE=automake
- +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
- + AUTOMAKE=automake-${am__api_version}
- echo "$ac_t""found" 1>&6
- else
- - AUTOMAKE="$missing_dir/missing automake"
- + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
- echo "$ac_t""missing" 1>&6
- fi
-
- echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
- -echo "configure:822: checking for working autoheader" >&5
- +echo "configure:984: checking for working autoheader" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- @@ -831,7 +993,7 @@
- fi
-
- echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
- -echo "configure:835: checking for working makeinfo" >&5
- +echo "configure:997: checking for working makeinfo" >&5
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
- # Redirect stdin to placate older versions of autoconf. Sigh.
- @@ -871,11 +1033,164 @@
- EOF
-
-
- +# Find the correct PATH separator. Usually this is `:', but
- +# DJGPP uses `;' like DOS.
- +if test "X${PATH_SEPARATOR+set}" != Xset; then
- + UNAME=${UNAME-`uname 2>/dev/null`}
- + case X$UNAME in
- + *-DOS) lt_cv_sys_path_separator=';' ;;
- + *) lt_cv_sys_path_separator=':' ;;
- + esac
- + PATH_SEPARATOR=$lt_cv_sys_path_separator
- +fi
- +
- +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
- +echo "configure:1049: checking for Cygwin environment" >&5
- +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + cat > conftest.$ac_ext <<EOF
- +#line 1054 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +
- +#ifndef __CYGWIN__
- +#define __CYGWIN__ __CYGWIN32__
- +#endif
- +return __CYGWIN__;
- +; return 0; }
- +EOF
- +if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + rm -rf conftest*
- + ac_cv_cygwin=yes
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + ac_cv_cygwin=no
- +fi
- +rm -f conftest*
- +rm -f conftest*
- +fi
- +
- +echo "$ac_t""$ac_cv_cygwin" 1>&6
- +CYGWIN=
- +test "$ac_cv_cygwin" = yes && CYGWIN=yes
- +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
- +echo "configure:1082: checking for mingw32 environment" >&5
- +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + cat > conftest.$ac_ext <<EOF
- +#line 1087 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +return __MINGW32__;
- +; return 0; }
- +EOF
- +if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + rm -rf conftest*
- + ac_cv_mingw32=yes
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + ac_cv_mingw32=no
- +fi
- +rm -f conftest*
- +rm -f conftest*
- +fi
- +
- +echo "$ac_t""$ac_cv_mingw32" 1>&6
- +MINGW32=
- +test "$ac_cv_mingw32" = yes && MINGW32=yes
- +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- +echo "configure:1111: checking how to run the C preprocessor" >&5
- +# On Suns, sometimes $CPP names a directory.
- +if test -n "$CPP" && test -d "$CPP"; then
- + CPP=
- +fi
- +if test -z "$CPP"; then
- +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + # This must be in double quotes, not single quotes, because CPP may get
- + # substituted into the Makefile and "${CC-cc}" will confuse make.
- + CPP="${CC-cc} -E"
- + # On the NeXT, cc -E runs the code through the compiler's parser,
- + # not just through cpp.
- + cat > conftest.$ac_ext <<EOF
- +#line 1126 "configure"
- +#include "confdefs.h"
- +#include <assert.h>
- +Syntax Error
- +EOF
- +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- +{ (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- +if test -z "$ac_err"; then
- + :
- +else
- + echo "$ac_err" >&5
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + CPP="${CC-cc} -E -traditional-cpp"
- + cat > conftest.$ac_ext <<EOF
- +#line 1143 "configure"
- +#include "confdefs.h"
- +#include <assert.h>
- +Syntax Error
- +EOF
- +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- +{ (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- +if test -z "$ac_err"; then
- + :
- +else
- + echo "$ac_err" >&5
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + CPP="${CC-cc} -nologo -E"
- + cat > conftest.$ac_ext <<EOF
- +#line 1160 "configure"
- +#include "confdefs.h"
- +#include <assert.h>
- +Syntax Error
- +EOF
- +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- +{ (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- +if test -z "$ac_err"; then
- + :
- +else
- + echo "$ac_err" >&5
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + CPP=/lib/cpp
- +fi
- +rm -f conftest*
- +fi
- +rm -f conftest*
- +fi
- +rm -f conftest*
- + ac_cv_prog_CPP="$CPP"
- +fi
- + CPP="$ac_cv_prog_CPP"
- +else
- + ac_cv_prog_CPP="$CPP"
- +fi
- +echo "$ac_t""$CPP" 1>&6
- +
- # Check whether --enable-shared or --disable-shared was given.
- if test "${enable_shared+set}" = set; then
- enableval="$enable_shared"
- p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- @@ -898,7 +1213,7 @@
- if test "${enable_static+set}" = set; then
- enableval="$enable_static"
- p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- @@ -921,7 +1236,7 @@
- if test "${enable_fast_install+set}" = set; then
- enableval="$enable_fast_install"
- p=${PACKAGE-default}
- -case "$enableval" in
- +case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- @@ -947,7 +1262,7 @@
- fi
-
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- -echo "configure:951: checking host system type" >&5
- +echo "configure:1266: checking host system type" >&5
-
- host_alias=$host
- case "$host_alias" in
- @@ -968,7 +1283,7 @@
- echo "$ac_t""$host" 1>&6
-
- echo $ac_n "checking build system type""... $ac_c" 1>&6
- -echo "configure:972: checking build system type" >&5
- +echo "configure:1287: checking build system type" >&5
-
- build_alias=$build
- case "$build_alias" in
- @@ -985,40 +1300,10 @@
- build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
- echo "$ac_t""$build" 1>&6
-
- -# Extract the first word of "ranlib", so it can be a program name with args.
- -set dummy ranlib; ac_word=$2
- -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:992: checking for $ac_word" >&5
- -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- - echo $ac_n "(cached) $ac_c" 1>&6
- -else
- - if test -n "$RANLIB"; then
- - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- -else
- - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- - ac_dummy="$PATH"
- - for ac_dir in $ac_dummy; do
- - test -z "$ac_dir" && ac_dir=.
- - if test -f $ac_dir/$ac_word; then
- - ac_cv_prog_RANLIB="ranlib"
- - break
- - fi
- - done
- - IFS="$ac_save_ifs"
- - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- -fi
- -fi
- -RANLIB="$ac_cv_prog_RANLIB"
- -if test -n "$RANLIB"; then
- - echo "$ac_t""$RANLIB" 1>&6
- -else
- - echo "$ac_t""no" 1>&6
- -fi
- -
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1022: checking for $ac_word" >&5
- +echo "configure:1307: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1048,7 +1333,7 @@
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1052: checking for $ac_word" >&5
- +echo "configure:1337: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1099,7 +1384,7 @@
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1103: checking for $ac_word" >&5
- +echo "configure:1388: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1131,7 +1416,7 @@
- fi
-
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- -echo "configure:1135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- +echo "configure:1420: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- @@ -1142,12 +1427,12 @@
-
- cat > conftest.$ac_ext << EOF
-
- -#line 1146 "configure"
- +#line 1431 "configure"
- #include "confdefs.h"
-
- main(){return(0);}
- EOF
- -if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- @@ -1173,12 +1458,12 @@
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- -echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- +echo "configure:1462: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- -echo "configure:1182: checking whether we are using GNU C" >&5
- +echo "configure:1467: checking whether we are using GNU C" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1187,7 +1472,7 @@
- yes;
- #endif
- EOF
- -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- @@ -1206,7 +1491,7 @@
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- -echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
- +echo "configure:1495: checking whether ${CC-cc} accepts -g" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1246,12 +1531,18 @@
- fi
-
- ac_prog=ld
- -if test "$ac_cv_prog_gcc" = yes; then
- +if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
- -echo "configure:1253: checking for ld used by GCC" >&5
- - ac_prog=`($CC -print-prog-name=ld) 2>&5`
- - case "$ac_prog" in
- +echo "configure:1538: checking for ld used by GCC" >&5
- + case $host in
- + *-*-mingw*)
- + # gcc leaves a trailing carriage return which upsets mingw
- + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- + *)
- + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- + esac
- + case $ac_prog in
- # Accept absolute paths.
- [\\/]* | [A-Za-z]:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- @@ -1273,24 +1564,24 @@
- esac
- elif test "$with_gnu_ld" = yes; then
- echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
- -echo "configure:1277: checking for GNU ld" >&5
- +echo "configure:1568: checking for GNU ld" >&5
- else
- echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
- -echo "configure:1280: checking for non-GNU ld" >&5
- +echo "configure:1571: checking for non-GNU ld" >&5
- fi
- -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
- +if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -z "$LD"; then
- - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- - ac_cv_path_LD="$ac_dir/$ac_prog"
- + lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- @@ -1299,11 +1590,11 @@
- done
- IFS="$ac_save_ifs"
- else
- - ac_cv_path_LD="$LD" # Let the user override the test with a path.
- + lt_cv_path_LD="$LD" # Let the user override the test with a path.
- fi
- fi
-
- -LD="$ac_cv_path_LD"
- +LD="$lt_cv_path_LD"
- if test -n "$LD"; then
- echo "$ac_t""$LD" 1>&6
- else
- @@ -1311,245 +1602,3880 @@
- fi
- test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
- echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
- -echo "configure:1315: checking if the linker ($LD) is GNU ld" >&5
- -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
- +echo "configure:1606: checking if the linker ($LD) is GNU ld" >&5
- +if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- # I'd rather use --version here, but apparently some GNU ld's only accept -v.
- if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- - ac_cv_prog_gnu_ld=yes
- + lt_cv_prog_gnu_ld=yes
- else
- - ac_cv_prog_gnu_ld=no
- + lt_cv_prog_gnu_ld=no
- fi
- fi
-
- -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
- +echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
- +with_gnu_ld=$lt_cv_prog_gnu_ld
- +
- +
- +echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
- +echo "configure:1623: checking for $LD option to reload object files" >&5
- +if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + lt_cv_ld_reload_flag='-r'
- +fi
-
- +echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
- +reload_flag=$lt_cv_ld_reload_flag
- +test -n "$reload_flag" && reload_flag=" $reload_flag"
-
- echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
- -echo "configure:1331: checking for BSD-compatible nm" >&5
- -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
- +echo "configure:1635: checking for BSD-compatible nm" >&5
- +if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test -n "$NM"; then
- # Let the user override the test.
- - ac_cv_path_NM="$NM"
- + lt_cv_path_NM="$NM"
- else
- - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- test -z "$ac_dir" && ac_dir=.
- - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
- + tmp_nm=$ac_dir/${ac_tool_prefix}nm
- + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- - ac_cv_path_NM="$ac_dir/nm -B"
- + # Tru64's nm complains that /dev/null is an invalid object file
- + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
- + lt_cv_path_NM="$tmp_nm -B"
- break
- - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- - ac_cv_path_NM="$ac_dir/nm -p"
- + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- + lt_cv_path_NM="$tmp_nm -p"
- break
- else
- - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
- + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
- fi
- done
- IFS="$ac_save_ifs"
- - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
- + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
- +fi
- +fi
- +
- +NM="$lt_cv_path_NM"
- +echo "$ac_t""$NM" 1>&6
- +
- +echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
- +echo "configure:1673: checking for a sed that does not truncate output" >&5
- +if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + # Loop through the user's path and test for sed and gsed.
- +# Then use that list of sed's as ones to test for truncation.
- +as_executable_p="test -f"
- +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- +for as_dir in $PATH
- +do
- + IFS=$as_save_IFS
- + test -z "$as_dir" && as_dir=.
- + for ac_prog in sed gsed; do
- + for ac_exec_ext in '' $ac_executable_extensions; do
- + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
- + fi
- + done
- + done
- +done
- +
- + # Create a temporary directory, and hook for its removal unless debugging.
- +$debug ||
- +{
- + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
- + trap '{ (exit 1); exit 1; }' 1 2 13 15
- +}
- +
- +# Create a (secure) tmp directory for tmp files.
- +: ${TMPDIR=/tmp}
- +{
- + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
- + test -n "$tmp" && test -d "$tmp"
- +} ||
- +{
- + tmp=$TMPDIR/sed$$-$RANDOM
- + (umask 077 && mkdir $tmp)
- +} ||
- +{
- + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
- + { (exit 1); exit 1; }
- +}
- + _max=0
- + _count=0
- + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
- + # along with /bin/sed that truncates output.
- + for _sed in $_sed_list /usr/xpg4/bin/sed; do
- + test ! -f ${_sed} && break
- + cat /dev/null > "$tmp/sed.in"
- + _count=0
- + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
- + # Check for GNU sed and select it if it is found.
- + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
- + lt_cv_path_SED=${_sed}
- + break
- + fi
- + while true; do
- + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
- + mv "$tmp/sed.tmp" "$tmp/sed.in"
- + cp "$tmp/sed.in" "$tmp/sed.nl"
- + echo >>"$tmp/sed.nl"
- + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
- + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
- + # 40000 chars as input seems more than enough
- + test $_count -gt 10 && break
- + _count=`expr $_count + 1`
- + if test $_count -gt $_max; then
- + _max=$_count
- + lt_cv_path_SED=$_sed
- + fi
- + done
- + done
- + rm -rf "$tmp"
- +
- +fi
- +
- +if test "X$SED" != "X"; then
- + lt_cv_path_SED=$SED
- +else
- + SED=$lt_cv_path_SED
- +fi
- +echo "$ac_t""$SED" 1>&6
- +
- +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
- +echo "configure:1757: checking whether ln -s works" >&5
- +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + rm -f conftestdata
- +if ln -s X conftestdata 2>/dev/null
- +then
- + rm -f conftestdata
- + ac_cv_prog_LN_S="ln -s"
- +else
- + ac_cv_prog_LN_S=ln
- fi
- fi
- +LN_S="$ac_cv_prog_LN_S"
- +if test "$ac_cv_prog_LN_S" = "ln -s"; then
- + echo "$ac_t""yes" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
- +echo "configure:1778: checking how to recognise dependent libraries" >&5
- +if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + lt_cv_file_magic_cmd='$MAGIC_CMD'
- +lt_cv_file_magic_test_file=
- +lt_cv_deplibs_check_method='unknown'
- +# Need to set the preceding variable on all platforms that support
- +# interlibrary dependencies.
- +# 'none' -- dependencies not supported.
- +# `unknown' -- same as none, but documents that we really don't know.
- +# 'pass_all' -- all dependencies passed with no checks.
- +# 'test_compile' -- check by making test program.
- +# 'file_magic [[regex]]' -- check by looking for files in library path
- +# which responds to the $file_magic_cmd with a given egrep regex.
- +# If you have `file' or equivalent on your system and you're not sure
- +# whether `pass_all' will *always* work, you probably want this one.
- +
- +case $host_os in
- +aix4* | aix5*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +beos*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +bsdi4*)
- + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- + lt_cv_file_magic_cmd='/usr/bin/file -L'
- + lt_cv_file_magic_test_file=/shlib/libc.so
- + ;;
- +
- +cygwin* | mingw* | pw32*)
- + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- + lt_cv_file_magic_cmd='$OBJDUMP -f'
- + ;;
- +
- +darwin* | rhapsody*)
- + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
- + lt_cv_file_magic_cmd='/usr/bin/file -L'
- + case "$host_os" in
- + rhapsody* | darwin1.[012])
- + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
- + ;;
- + *) # Darwin 1.3 on
- + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
- + ;;
- + esac
- + ;;
- +
- +freebsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- + case $host_cpu in
- + i*86 )
- + # Not sure whether the presence of OpenBSD here was a mistake.
- + # Let's accept both of them until this is cleared up.
- + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- + ;;
- + esac
- + else
- + lt_cv_deplibs_check_method=pass_all
- + fi
- + ;;
- +
- +gnu*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +hpux10.20*|hpux11*)
- + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=/usr/lib/libc.sl
- + ;;
- +
- +irix5* | irix6* | nonstopux*)
- + case $host_os in
- + irix5* | nonstopux*)
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
- + ;;
- + *)
- + case $LD in
- + *-32|*"-32 ") libmagic=32-bit;;
- + *-n32|*"-n32 ") libmagic=N32;;
- + *-64|*"-64 ") libmagic=64-bit;;
- + *) libmagic=never-match;;
- + esac
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
- + ;;
- + esac
- + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +# This must be Linux ELF.
- +linux-gnu*)
- + case $host_cpu in
- + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
- + lt_cv_deplibs_check_method=pass_all ;;
- + *)
- + # glibc up to 2.1.1 does not perform some relocations on ARM
- + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
- + esac
- + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
- + ;;
- +
- +netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
- + else
- + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
- + fi
- + ;;
- +
- +newos6*)
- + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=/usr/lib/libnls.so
- + ;;
- +
- +openbsd*)
- + lt_cv_file_magic_cmd=/usr/bin/file
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
- + else
- + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
- + fi
- + ;;
- +
- +osf3* | osf4* | osf5*)
- + # this will be overridden with pass_all, but let us keep it just in case
- + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
- + lt_cv_file_magic_test_file=/shlib/libc.so
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +sco3.2v5*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +solaris*)
- + lt_cv_deplibs_check_method=pass_all
- + lt_cv_file_magic_test_file=/lib/libc.so
- + ;;
- +
- +sysv5uw[78]* | sysv4*uw2*)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- +
- +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + case $host_vendor in
- + motorola)
- + 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]'
- + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- + ;;
- + ncr)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- + sequent)
- + lt_cv_file_magic_cmd='/bin/file'
- + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
- + ;;
- + sni)
- + lt_cv_file_magic_cmd='/bin/file'
- + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
- + lt_cv_file_magic_test_file=/lib/libc.so
- + ;;
- + siemens)
- + lt_cv_deplibs_check_method=pass_all
- + ;;
- + esac
- + ;;
- +esac
- +
- +fi
- +
- +echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
- +file_magic_cmd=$lt_cv_file_magic_cmd
- +deplibs_check_method=$lt_cv_deplibs_check_method
- +
- +echo $ac_n "checking for object suffix""... $ac_c" 1>&6
- +echo "configure:1964: checking for object suffix" >&5
- +if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + rm -f conftest*
- +echo 'int i = 1;' > conftest.$ac_ext
- +if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + for ac_file in conftest.*; do
- + case $ac_file in
- + *.c) ;;
- + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
- + esac
- + done
- +else
- + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
- +fi
- +rm -f conftest*
- +fi
- +
- +echo "$ac_t""$ac_cv_objext" 1>&6
- +OBJEXT=$ac_cv_objext
- +ac_objext=$ac_cv_objext
- +
- +
- +
- +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
- +echo "configure:1990: checking for executable suffix" >&5
- +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
- + ac_cv_exeext=.exe
- +else
- + rm -f conftest*
- + echo 'int main () { return 0; }' > conftest.$ac_ext
- + ac_cv_exeext=
- + if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
- + for file in conftest.*; do
- + case $file in
- + *.$ac_ext | *.c | *.o | *.obj) ;;
- + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
- + esac
- + done
- + else
- + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
- + fi
- + rm -f conftest*
- + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
- +fi
- +fi
- +
- +EXEEXT=""
- +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
- +echo "$ac_t""${ac_cv_exeext}" 1>&6
- +ac_exeext=$EXEEXT
- +
- +if test $host != $build; then
- + ac_tool_prefix=${host_alias}-
- +else
- + ac_tool_prefix=
- +fi
- +
- +
- +
- +
- +# Check for command to grab the raw symbol name followed by C symbol from nm.
- +echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
- +echo "configure:2031: checking command to parse $NM output" >&5
- +if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- +
- +# These are sane defaults that work on at least a few old systems.
- +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
- +
- +# Character class describing NM global symbol codes.
- +symcode='[BCDEGRST]'
- +
- +# Regexp to match symbols that can be accessed directly from C.
- +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
- +
- +# Transform the above into a raw symbol and a C symbol.
- +symxfrm='\1 \2\3 \3'
- +
- +# Transform an extracted symbol line into a proper C declaration
- +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
- +
- +# Transform an extracted symbol line into symbol name and symbol address
- +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- +
- +# Define system-specific variables.
- +case $host_os in
- +aix*)
- + symcode='[BCDT]'
- + ;;
- +cygwin* | mingw* | pw32*)
- + symcode='[ABCDGISTW]'
- + ;;
- +hpux*) # Its linker distinguishes data from code symbols
- + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- + ;;
- +irix* | nonstopux*)
- + symcode='[BCDEGRST]'
- + ;;
- +osf*)
- + symcode='[BCDEGQRST]'
- + ;;
- +solaris* | sysv5*)
- + symcode='[BDT]'
- + ;;
- +sysv4)
- + symcode='[DFNSTU]'
- + ;;
- +esac
- +
- +# Handle CRLF in mingw tool chain
- +opt_cr=
- +case $host_os in
- +mingw*)
- + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- + ;;
- +esac
- +
- +# If we're using GNU nm, then use its standard symbol codes.
- +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
- + symcode='[ABCDGISTW]'
- +fi
- +
- +# Try without a prefix undercore, then with it.
- +for ac_symprfx in "" "_"; do
- +
- + # Write the raw and C identifiers.
- +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
- +
- + # Check to see that the pipe works correctly.
- + pipe_works=no
- + rm -f conftest*
- + cat > conftest.$ac_ext <<EOF
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
- +char nm_test_var;
- +void nm_test_func(){}
- +#ifdef __cplusplus
- +}
- +#endif
- +int main(){nm_test_var='a';nm_test_func();return(0);}
- +EOF
- +
- + if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + # Now try to grab the symbols.
- + nlist=conftest.nm
- + if { (eval echo configure:2117: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
- + # Try sorting and uniquifying the output.
- + if sort "$nlist" | uniq > "$nlist"T; then
- + mv -f "$nlist"T "$nlist"
- + else
- + rm -f "$nlist"T
- + fi
- +
- + # Make sure that we snagged all the symbols we need.
- + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
- + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
- + cat <<EOF > conftest.$ac_ext
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
- +
- +EOF
- + # Now generate the symbol file.
- + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
- +
- + cat <<EOF >> conftest.$ac_ext
- +#if defined (__STDC__) && __STDC__
- +# define lt_ptr void *
- +#else
- +# define lt_ptr char *
- +# define const
- +#endif
- +
- +/* The mapping between symbol names and symbols. */
- +const struct {
- + const char *name;
- + lt_ptr address;
- +}
- +lt_preloaded_symbols[] =
- +{
- +EOF
- + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
- + cat <<\EOF >> conftest.$ac_ext
- + {0, (lt_ptr) 0}
- +};
- +
- +#ifdef __cplusplus
- +}
- +#endif
- +EOF
- + # Now try linking the two files.
- + mv conftest.$ac_objext conftstm.$ac_objext
- + save_LIBS="$LIBS"
- + save_CFLAGS="$CFLAGS"
- + LIBS="conftstm.$ac_objext"
- + CFLAGS="$CFLAGS$no_builtin_flag"
- + if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
- + pipe_works=yes
- + fi
- + LIBS="$save_LIBS"
- + CFLAGS="$save_CFLAGS"
- + else
- + echo "cannot find nm_test_func in $nlist" >&5
- + fi
- + else
- + echo "cannot find nm_test_var in $nlist" >&5
- + fi
- + else
- + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
- + fi
- + else
- + echo "$progname: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + fi
- + rm -f conftest* conftst*
- +
- + # Do not use the global_symbol_pipe unless it works.
- + if test "$pipe_works" = yes; then
- + break
- + else
- + lt_cv_sys_global_symbol_pipe=
- + fi
- +done
- +
- +fi
- +
- +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
- +if test -z "$lt_cv_sys_global_symbol_pipe"; then
- + global_symbol_to_cdecl=
- + global_symbol_to_c_name_address=
- +else
- + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
- + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
- +fi
- +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
- +then
- + echo "$ac_t""failed" 1>&6
- +else
- + echo "$ac_t""ok" 1>&6
- +fi
- +
- +for ac_hdr in dlfcn.h
- +do
- +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- +echo "configure:2217: checking for $ac_hdr" >&5
- +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + cat > conftest.$ac_ext <<EOF
- +#line 2222 "configure"
- +#include "confdefs.h"
- +#include <$ac_hdr>
- +EOF
- +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- +{ (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- +if test -z "$ac_err"; then
- + rm -rf conftest*
- + eval "ac_cv_header_$ac_safe=yes"
- +else
- + echo "$ac_err" >&5
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_header_$ac_safe=no"
- +fi
- +rm -f conftest*
- +fi
- +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- + cat >> confdefs.h <<EOF
- +#define $ac_tr_hdr 1
- +EOF
- +
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +done
- +
- +
- +
- +
- +
- +
- +# Only perform the check for file, if the check method requires it
- +case $deplibs_check_method in
- +file_magic*)
- + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- + echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
- +echo "configure:2263: checking for ${ac_tool_prefix}file" >&5
- +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + case $MAGIC_CMD in
- + /*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- + ;;
- + ?:/*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- + ;;
- + *)
- + ac_save_MAGIC_CMD="$MAGIC_CMD"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="/usr/bin:$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/${ac_tool_prefix}file; then
- + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
- + if test -n "$file_magic_test_file"; then
- + case $deplibs_check_method in
- + "file_magic "*)
- + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- + egrep "$file_magic_regex" > /dev/null; then
- + :
- + else
- + cat <<EOF 1>&2
- +
- +*** Warning: the command libtool uses to detect shared libraries,
- +*** $file_magic_cmd, produces output that libtool cannot recognize.
- +*** The result is that libtool may fail to recognize shared libraries
- +*** as such. This will affect the creation of libtool libraries that
- +*** depend on shared libraries, but programs linked with such libtool
- +*** libraries will work regardless of this problem. Nevertheless, you
- +*** may want to report the problem to your system manager and/or to
- +*** bug-libtool@gnu.org
- +
- +EOF
- + fi ;;
- + esac
- + fi
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + MAGIC_CMD="$ac_save_MAGIC_CMD"
- + ;;
- +esac
- +fi
- +
- +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- +if test -n "$MAGIC_CMD"; then
- + echo "$ac_t""$MAGIC_CMD" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +if test -z "$lt_cv_path_MAGIC_CMD"; then
- + if test -n "$ac_tool_prefix"; then
- + echo $ac_n "checking for file""... $ac_c" 1>&6
- +echo "configure:2325: checking for file" >&5
- +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + case $MAGIC_CMD in
- + /*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- + ;;
- + ?:/*)
- + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
- + ;;
- + *)
- + ac_save_MAGIC_CMD="$MAGIC_CMD"
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="/usr/bin:$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/file; then
- + lt_cv_path_MAGIC_CMD="$ac_dir/file"
- + if test -n "$file_magic_test_file"; then
- + case $deplibs_check_method in
- + "file_magic "*)
- + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- + egrep "$file_magic_regex" > /dev/null; then
- + :
- + else
- + cat <<EOF 1>&2
- +
- +*** Warning: the command libtool uses to detect shared libraries,
- +*** $file_magic_cmd, produces output that libtool cannot recognize.
- +*** The result is that libtool may fail to recognize shared libraries
- +*** as such. This will affect the creation of libtool libraries that
- +*** depend on shared libraries, but programs linked with such libtool
- +*** libraries will work regardless of this problem. Nevertheless, you
- +*** may want to report the problem to your system manager and/or to
- +*** bug-libtool@gnu.org
- +
- +EOF
- + fi ;;
- + esac
- + fi
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + MAGIC_CMD="$ac_save_MAGIC_CMD"
- + ;;
- +esac
- +fi
- +
- +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- +if test -n "$MAGIC_CMD"; then
- + echo "$ac_t""$MAGIC_CMD" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- + else
- + MAGIC_CMD=:
- + fi
- +fi
- +
- + fi
- + ;;
- +esac
- +
- +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
- +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
- +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- +echo "configure:2396: checking for $ac_word" >&5
- +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test -n "$RANLIB"; then
- + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- +else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- +fi
- +fi
- +RANLIB="$ac_cv_prog_RANLIB"
- +if test -n "$RANLIB"; then
- + echo "$ac_t""$RANLIB" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +
- +if test -z "$ac_cv_prog_RANLIB"; then
- +if test -n "$ac_tool_prefix"; then
- + # Extract the first word of "ranlib", so it can be a program name with args.
- +set dummy ranlib; ac_word=$2
- +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- +echo "configure:2428: checking for $ac_word" >&5
- +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test -n "$RANLIB"; then
- + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- +else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_RANLIB="ranlib"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
- +fi
- +fi
- +RANLIB="$ac_cv_prog_RANLIB"
- +if test -n "$RANLIB"; then
- + echo "$ac_t""$RANLIB" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +else
- + RANLIB=":"
- +fi
- +fi
- +
- +# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
- +set dummy ${ac_tool_prefix}strip; ac_word=$2
- +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- +echo "configure:2463: checking for $ac_word" >&5
- +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test -n "$STRIP"; then
- + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
- +else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- +fi
- +fi
- +STRIP="$ac_cv_prog_STRIP"
- +if test -n "$STRIP"; then
- + echo "$ac_t""$STRIP" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +
- +if test -z "$ac_cv_prog_STRIP"; then
- +if test -n "$ac_tool_prefix"; then
- + # Extract the first word of "strip", so it can be a program name with args.
- +set dummy strip; ac_word=$2
- +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- +echo "configure:2495: checking for $ac_word" >&5
- +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test -n "$STRIP"; then
- + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
- +else
- + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- + ac_dummy="$PATH"
- + for ac_dir in $ac_dummy; do
- + test -z "$ac_dir" && ac_dir=.
- + if test -f $ac_dir/$ac_word; then
- + ac_cv_prog_STRIP="strip"
- + break
- + fi
- + done
- + IFS="$ac_save_ifs"
- + test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
- +fi
- +fi
- +STRIP="$ac_cv_prog_STRIP"
- +if test -n "$STRIP"; then
- + echo "$ac_t""$STRIP" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +else
- + STRIP=":"
- +fi
- +fi
- +
- +
- +enable_dlopen=no
- +enable_win32_dll=no
- +
- +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
- +if test "${enable_libtool_lock+set}" = set; then
- + enableval="$enable_libtool_lock"
- + :
- +fi
- +
- +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
- +
- +# Some flags need to be propagated to the compiler or linker for good
- +# libtool support.
- +case $host in
- +*-*-irix6*)
- + # Find out which ABI we are using.
- + echo '#line 2544 "configure"' > conftest.$ac_ext
- + if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + case `/usr/bin/file conftest.$ac_objext` in
- + *32-bit*)
- + LD="${LD-ld} -32"
- + ;;
- + *N32*)
- + LD="${LD-ld} -n32"
- + ;;
- + *64-bit*)
- + LD="${LD-ld} -64"
- + ;;
- + esac
- + fi
- + rm -rf conftest*
- + ;;
- +
- +*-*-sco3.2v5*)
- + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- + SAVE_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -belf"
- + echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
- +echo "configure:2566: checking whether the C compiler needs -belf" >&5
- +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- +
- + ac_ext=c
- +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- +ac_cpp='$CPP $CPPFLAGS'
- +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- +cross_compiling=$ac_cv_prog_cc_cross
- +
- + cat > conftest.$ac_ext <<EOF
- +#line 2579 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +
- +; return 0; }
- +EOF
- +if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + lt_cv_cc_needs_belf=yes
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + lt_cv_cc_needs_belf=no
- +fi
- +rm -f conftest*
- + ac_ext=c
- +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- +ac_cpp='$CPP $CPPFLAGS'
- +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- +cross_compiling=$ac_cv_prog_cc_cross
- +
- +fi
- +
- +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
- + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- + CFLAGS="$SAVE_CFLAGS"
- + fi
- + ;;
- +
- +
- +esac
- +
- +# Sed substitution that helps us do robust quoting. It backslashifies
- +# metacharacters that are still active within double-quoted strings.
- +Xsed='sed -e s/^X//'
- +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
- +
- +# Same as above, but do not quote variable references.
- +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
- +
- +# Sed substitution to delay expansion of an escaped shell variable in a
- +# double_quote_subst'ed string.
- +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
- +
- +# Constants:
- +rm="rm -f"
- +
- +# Global variables:
- +default_ofile=libtool
- +can_build_shared=yes
- +
- +# All known linkers require a `.a' archive for static linking (except M$VC,
- +# which needs '.lib').
- +libext=a
- +ltmain="$ac_aux_dir/ltmain.sh"
- +ofile="$default_ofile"
- +with_gnu_ld="$lt_cv_prog_gnu_ld"
- +need_locks="$enable_libtool_lock"
- +
- +old_CC="$CC"
- +old_CFLAGS="$CFLAGS"
- +
- +# Set sane defaults for various variables
- +test -z "$AR" && AR=ar
- +test -z "$AR_FLAGS" && AR_FLAGS=cru
- +test -z "$AS" && AS=as
- +test -z "$CC" && CC=cc
- +test -z "$DLLTOOL" && DLLTOOL=dlltool
- +test -z "$LD" && LD=ld
- +test -z "$LN_S" && LN_S="ln -s"
- +test -z "$MAGIC_CMD" && MAGIC_CMD=file
- +test -z "$NM" && NM=nm
- +test -z "$OBJDUMP" && OBJDUMP=objdump
- +test -z "$RANLIB" && RANLIB=:
- +test -z "$STRIP" && STRIP=:
- +test -z "$ac_objext" && ac_objext=o
- +
- +if test x"$host" != x"$build"; then
- + ac_tool_prefix=${host_alias}-
- +else
- + ac_tool_prefix=
- +fi
- +
- +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
- +case $host_os in
- +linux-gnu*) ;;
- +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
- +esac
- +
- +case $host_os in
- +aix3*)
- + # AIX sometimes has problems with the GCC collect2 program. For some
- + # reason, if we set the COLLECT_NAMES environment variable, the problems
- + # vanish in a puff of smoke.
- + if test "X${COLLECT_NAMES+set}" != Xset; then
- + COLLECT_NAMES=
- + export COLLECT_NAMES
- + fi
- + ;;
- +esac
- +
- +# Determine commands to create old-style static archives.
- +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
- +old_postinstall_cmds='chmod 644 $oldlib'
- +old_postuninstall_cmds=
- +
- +if test -n "$RANLIB"; then
- + case $host_os in
- + openbsd*)
- + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
- + ;;
- + *)
- + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
- + ;;
- + esac
- + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- +fi
- +
- +# Allow CC to be a program name with arguments.
- +set dummy $CC
- +compiler="$2"
- +
- +echo $ac_n "checking for objdir""... $ac_c" 1>&6
- +echo "configure:2706: checking for objdir" >&5
- +rm -f .libs 2>/dev/null
- +mkdir .libs 2>/dev/null
- +if test -d .libs; then
- + objdir=.libs
- +else
- + # MS-DOS does not allow filenames that begin with a dot.
- + objdir=_libs
- +fi
- +rmdir .libs 2>/dev/null
- +echo "$ac_t""$objdir" 1>&6
- +
- +
- +# Check whether --with-pic or --without-pic was given.
- +if test "${with_pic+set}" = set; then
- + withval="$with_pic"
- + pic_mode="$withval"
- +else
- + pic_mode=default
- +fi
- +
- +test -z "$pic_mode" && pic_mode=default
- +
- +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
- +# in isolation, and that seeing it set (from the cache) indicates that
- +# the associated values are set (in the cache) correctly too.
- +echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
- +echo "configure:2733: checking for $compiler option to produce PIC" >&5
- +if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + lt_cv_prog_cc_pic=
- + lt_cv_prog_cc_shlib=
- + lt_cv_prog_cc_wl=
- + lt_cv_prog_cc_static=
- + lt_cv_prog_cc_no_builtin=
- + lt_cv_prog_cc_can_build_shared=$can_build_shared
- +
- + if test "$GCC" = yes; then
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-static'
- +
- + case $host_os in
- + aix*)
- + # Below there is a dirty hack to force normal static linking with -ldl
- + # The problem is because libdl dynamically linked with both libc and
- + # libC (AIX C++ library), which obviously doesn't included in libraries
- + # list by gcc. This cause undefined symbols with -static flags.
- + # This hack allows C programs to be linked with "-static -ldl", but
- + # not sure about C++ programs.
- + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
- + ;;
- + amigaos*)
- + # FIXME: we need at least 68020 code to build shared libraries, but
- + # adding the `-m68020' flag to GCC prevents building anything better,
- + # like `-m68040'.
- + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
- + ;;
- + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- + # PIC is the default for these OSes.
- + ;;
- + darwin* | rhapsody*)
- + # PIC is the default on this platform
- + # Common symbols not allowed in MH_DYLIB files
- + lt_cv_prog_cc_pic='-fno-common'
- + ;;
- + cygwin* | mingw* | pw32* | os2*)
- + # This hack is so that the source file can tell whether it is being
- + # built for inclusion in a dll (and should export symbols for example).
- + lt_cv_prog_cc_pic='-DDLL_EXPORT'
- + ;;
- + sysv4*MP*)
- + if test -d /usr/nec; then
- + lt_cv_prog_cc_pic=-Kconform_pic
- + fi
- + ;;
- + *)
- + lt_cv_prog_cc_pic='-fPIC'
- + ;;
- + esac
- + else
- + # PORTME Check for PIC flags for the system compiler.
- + case $host_os in
- + aix3* | aix4* | aix5*)
- + lt_cv_prog_cc_wl='-Wl,'
- + # All AIX code is PIC.
- + if test "$host_cpu" = ia64; then
- + # AIX 5 now supports IA64 processor
- + lt_cv_prog_cc_static='-Bstatic'
- + else
- + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
- + fi
- + ;;
- +
- + hpux9* | hpux10* | hpux11*)
- + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
- + lt_cv_prog_cc_pic='+Z'
- + ;;
- +
- + irix5* | irix6* | nonstopux*)
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-non_shared'
- + # PIC (with -KPIC) is the default.
- + ;;
- +
- + cygwin* | mingw* | pw32* | os2*)
- + # This hack is so that the source file can tell whether it is being
- + # built for inclusion in a dll (and should export symbols for example).
- + lt_cv_prog_cc_pic='-DDLL_EXPORT'
- + ;;
- +
- + newsos6)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + ;;
- +
- + osf3* | osf4* | osf5*)
- + # All OSF/1 code is PIC.
- + lt_cv_prog_cc_wl='-Wl,'
- + lt_cv_prog_cc_static='-non_shared'
- + ;;
- +
- + sco3.2v5*)
- + lt_cv_prog_cc_pic='-Kpic'
- + lt_cv_prog_cc_static='-dn'
- + lt_cv_prog_cc_shlib='-belf'
- + ;;
- +
- + solaris*)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Wl,'
- + ;;
- +
- + sunos4*)
- + lt_cv_prog_cc_pic='-PIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Qoption ld '
- + ;;
- +
- + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + lt_cv_prog_cc_pic='-KPIC'
- + lt_cv_prog_cc_static='-Bstatic'
- + lt_cv_prog_cc_wl='-Wl,'
- + ;;
- +
- + uts4*)
- + lt_cv_prog_cc_pic='-pic'
- + lt_cv_prog_cc_static='-Bstatic'
- + ;;
- +
- + sysv4*MP*)
- + if test -d /usr/nec ;then
- + lt_cv_prog_cc_pic='-Kconform_pic'
- + lt_cv_prog_cc_static='-Bstatic'
- + fi
- + ;;
- +
- + *)
- + lt_cv_prog_cc_can_build_shared=no
- + ;;
- + esac
- + fi
- +
- +fi
- +
- +if test -z "$lt_cv_prog_cc_pic"; then
- + echo "$ac_t""none" 1>&6
- +else
- + echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
- +
- + # Check to make sure the pic_flag actually works.
- + echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
- +echo "configure:2881: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
- + if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
- + cat > conftest.$ac_ext <<EOF
- +#line 2888 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +
- +; return 0; }
- +EOF
- +if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + rm -rf conftest*
- + case $host_os in
- + hpux9* | hpux10* | hpux11*)
- + # On HP-UX, both CC and GCC only warn that PIC is supported... then
- + # they create non-PIC objects. So, if there were any warnings, we
- + # assume that PIC is not supported.
- + if test -s conftest.err; then
- + lt_cv_prog_cc_pic_works=no
- + else
- + lt_cv_prog_cc_pic_works=yes
- + fi
- + ;;
- + *)
- + lt_cv_prog_cc_pic_works=yes
- + ;;
- + esac
- +
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + lt_cv_prog_cc_pic_works=no
- +
- +fi
- +rm -f conftest*
- + CFLAGS="$save_CFLAGS"
- +
- +fi
- +
- +
- + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
- + lt_cv_prog_cc_pic=
- + lt_cv_prog_cc_can_build_shared=no
- + else
- + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
- + fi
- +
- + echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
- +fi
- +
- +# Check for any special shared library compilation flags.
- +if test -n "$lt_cv_prog_cc_shlib"; then
- + echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
- + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
- + else
- + echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
- + lt_cv_prog_cc_can_build_shared=no
- + fi
- +fi
- +
- +echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
- +echo "configure:2947: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
- +if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + lt_cv_prog_cc_static_works=no
- + save_LDFLAGS="$LDFLAGS"
- + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
- + cat > conftest.$ac_ext <<EOF
- +#line 2955 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +
- +; return 0; }
- +EOF
- +if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + lt_cv_prog_cc_static_works=yes
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- +fi
- +rm -f conftest*
- + LDFLAGS="$save_LDFLAGS"
- +
- +fi
- +
- +
- +# Belt *and* braces to stop my trousers falling down:
- +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
- +echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
- +
- +pic_flag="$lt_cv_prog_cc_pic"
- +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
- +wl="$lt_cv_prog_cc_wl"
- +link_static_flag="$lt_cv_prog_cc_static"
- +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
- +can_build_shared="$lt_cv_prog_cc_can_build_shared"
- +
- +
- +# Check to see if options -o and -c are simultaneously supported by compiler
- +echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
- +echo "configure:2989: checking if $compiler supports -c -o file.$ac_objext" >&5
- +if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- +
- +$rm -r conftest 2>/dev/null
- +mkdir conftest
- +cd conftest
- +echo "int some_variable = 0;" > conftest.$ac_ext
- +mkdir out
- +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
- +# that will create temporary files in the current directory regardless of
- +# the output directory. Thus, making CWD read-only will cause this test
- +# to fail, enabling locking or at least warning the user not to do parallel
- +# builds.
- +chmod -w .
- +save_CFLAGS="$CFLAGS"
- +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
- +compiler_c_o=no
- +if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s out/conftest.err; then
- + lt_cv_compiler_c_o=no
- + else
- + lt_cv_compiler_c_o=yes
- + fi
- +else
- + # Append any errors to the config.log.
- + cat out/conftest.err 1>&5
- + lt_cv_compiler_c_o=no
- +fi
- +CFLAGS="$save_CFLAGS"
- +chmod u+w .
- +$rm conftest* out/*
- +rmdir out
- +cd ..
- +rmdir conftest
- +$rm -r conftest 2>/dev/null
- +
- +fi
- +
- +compiler_c_o=$lt_cv_compiler_c_o
- +echo "$ac_t""$compiler_c_o" 1>&6
- +
- +if test x"$compiler_c_o" = x"yes"; then
- + # Check to see if we can write to a .lo
- + echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
- +echo "configure:3037: checking if $compiler supports -c -o file.lo" >&5
- + if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- +
- + lt_cv_compiler_o_lo=no
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -c -o conftest.lo"
- + save_objext="$ac_objext"
- + ac_objext=lo
- + cat > conftest.$ac_ext <<EOF
- +#line 3048 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +int some_variable = 0;
- +; return 0; }
- +EOF
- +if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + rm -rf conftest*
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s conftest.err; then
- + lt_cv_compiler_o_lo=no
- + else
- + lt_cv_compiler_o_lo=yes
- + fi
- +
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- +fi
- +rm -f conftest*
- + ac_objext="$save_objext"
- + CFLAGS="$save_CFLAGS"
- +
- +fi
- +
- + compiler_o_lo=$lt_cv_compiler_o_lo
- + echo "$ac_t""$compiler_o_lo" 1>&6
- +else
- + compiler_o_lo=no
- +fi
- +
- +# Check to see if we can do hard links to lock some files if needed
- +hard_links="nottested"
- +if test "$compiler_c_o" = no && test "$need_locks" != no; then
- + # do not overwrite the value of need_locks provided by the user
- + echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
- +echo "configure:3086: checking if we can lock with hard links" >&5
- + hard_links=yes
- + $rm conftest*
- + ln conftest.a conftest.b 2>/dev/null && hard_links=no
- + touch conftest.a
- + ln conftest.a conftest.b 2>&5 || hard_links=no
- + ln conftest.a conftest.b 2>/dev/null && hard_links=no
- + echo "$ac_t""$hard_links" 1>&6
- + if test "$hard_links" = no; then
- + echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
- + need_locks=warn
- + fi
- +else
- + need_locks=no
- +fi
- +
- +if test "$GCC" = yes; then
- + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
- + echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
- +echo "configure:3105: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
- + echo "int some_variable = 0;" > conftest.$ac_ext
- + save_CFLAGS="$CFLAGS"
- + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
- + compiler_rtti_exceptions=no
- + cat > conftest.$ac_ext <<EOF
- +#line 3111 "configure"
- +#include "confdefs.h"
- +
- +int main() {
- +int some_variable = 0;
- +; return 0; }
- +EOF
- +if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + rm -rf conftest*
- + # The compiler can only warn and ignore the option if not recognized
- + # So say no if there are warnings
- + if test -s conftest.err; then
- + compiler_rtti_exceptions=no
- + else
- + compiler_rtti_exceptions=yes
- + fi
- +
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- +fi
- +rm -f conftest*
- + CFLAGS="$save_CFLAGS"
- + echo "$ac_t""$compiler_rtti_exceptions" 1>&6
- +
- + if test "$compiler_rtti_exceptions" = "yes"; then
- + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
- + else
- + no_builtin_flag=' -fno-builtin'
- + fi
- +fi
- +
- +# See if the linker supports building shared libraries.
- +echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
- +echo "configure:3145: checking whether the linker ($LD) supports shared libraries" >&5
- +
- +allow_undefined_flag=
- +no_undefined_flag=
- +need_lib_prefix=unknown
- +need_version=unknown
- +# when you set need_version to no, make sure it does not cause -set_version
- +# flags to be left without arguments
- +archive_cmds=
- +archive_expsym_cmds=
- +old_archive_from_new_cmds=
- +old_archive_from_expsyms_cmds=
- +export_dynamic_flag_spec=
- +whole_archive_flag_spec=
- +thread_safe_flag_spec=
- +hardcode_into_libs=no
- +hardcode_libdir_flag_spec=
- +hardcode_libdir_separator=
- +hardcode_direct=no
- +hardcode_minus_L=no
- +hardcode_shlibpath_var=unsupported
- +runpath_var=
- +link_all_deplibs=unknown
- +always_export_symbols=no
- +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
- +# include_expsyms should be a list of space-separated symbols to be *always*
- +# included in the symbol list
- +include_expsyms=
- +# exclude_expsyms can be an egrep regular expression of symbols to exclude
- +# it will be wrapped by ` (' and `)$', so one must not match beginning or
- +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- +# as well as any symbol that contains `d'.
- +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
- +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- +# platforms (ab)use it in PIC code, but their linkers get confused if
- +# the symbol is explicitly referenced. Since portable code cannot
- +# rely on this symbol name, it's probably fine to never include it in
- +# preloaded symbol tables.
- +extract_expsyms_cmds=
- +
- +case $host_os in
- +cygwin* | mingw* | pw32*)
- + # FIXME: the MSVC++ port hasn't been tested in a loooong time
- + # When not using gcc, we currently assume that we are using
- + # Microsoft Visual C++.
- + if test "$GCC" != yes; then
- + with_gnu_ld=no
- + fi
- + ;;
- +openbsd*)
- + with_gnu_ld=no
- + ;;
- +esac
- +
- +ld_shlibs=yes
- +if test "$with_gnu_ld" = yes; then
- + # If archive_cmds runs LD, not CC, wlarc should be empty
- + wlarc='${wl}'
- +
- + # See if GNU ld supports shared libraries.
- + case $host_os in
- + aix3* | aix4* | aix5*)
- + # On AIX, the GNU linker is very broken
- + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
- + ld_shlibs=no
- + cat <<EOF 1>&2
- +
- +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
- +*** to be unable to reliably create shared libraries on AIX.
- +*** Therefore, libtool is disabling shared libraries support. If you
- +*** really care for shared libraries, you may want to modify your PATH
- +*** so that a non-GNU linker is found, and then restart.
- +
- +EOF
- + ;;
- +
- + amigaos*)
- + 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)'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- +
- + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- + # that the semantics of dynamic libraries on AmigaOS, at least up
- + # to version 4, is to share data among multiple programs linked
- + # with the same dynamic library. Since this doesn't match the
- + # behavior of shared libraries on other platforms, we can use
- + # them.
- + ld_shlibs=no
- + ;;
- +
- + beos*)
- + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + allow_undefined_flag=unsupported
- + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- + # support --undefined. This deserves some investigation. FIXME
- + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + # hardcode_libdir_flag_spec is actually meaningless, as there is
- + # no search path for DLLs.
- + hardcode_libdir_flag_spec='-L$libdir'
- + allow_undefined_flag=unsupported
- + always_export_symbols=yes
- +
- + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
- + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
- + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
- + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
- + else $CC -o impgen impgen.c ; fi)~
- + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
- +
- + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
- +
- + # cygwin and mingw dlls have different entry points and sets of symbols
- + # to exclude.
- + # FIXME: what about values for MSVC?
- + dll_entry=__cygwin_dll_entry@12
- + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
- + case $host_os in
- + mingw*)
- + # mingw values
- + dll_entry=_DllMainCRTStartup@12
- + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
- + ;;
- + esac
- +
- + # mingw and cygwin differ, and it's simplest to just exclude the union
- + # of the two symbol sets.
- + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
- +
- + # recent cygwin and mingw systems supply a stub DllMain which the user
- + # can override, but on older systems we have to supply one (in ltdll.c)
- + if test "x$lt_cv_need_dllmain" = "xyes"; then
- + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
- + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
- + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
- + else
- + ltdll_obj=
- + ltdll_cmds=
- + fi
- +
- + # Extract the symbol export list from an `--export-all' def file,
- + # then regenerate the def file from the symbol export list, so that
- + # the compiled dll only exports the symbol export list.
- + # Be careful not to strip the DATA tag left be newer dlltools.
- + export_symbols_cmds="$ltdll_cmds"'
- + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
- + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
- +
- + # If the export-symbols file already is a .def file (1st line
- + # is EXPORTS), use it as is.
- + # If DATA tags from a recent dlltool are present, honour them!
- + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
- + cp $export_symbols $output_objdir/$soname-def;
- + else
- + echo EXPORTS > $output_objdir/$soname-def;
- + _lt_hint=1;
- + cat $export_symbols | while read symbol; do
- + set dummy \$symbol;
- + case \$# in
- + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
- + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
- + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
- + esac;
- + _lt_hint=`expr 1 + \$_lt_hint`;
- + done;
- + fi~
- + '"$ltdll_cmds"'
- + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
- + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
- + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
- + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
- + ;;
- +
- + netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- + wlarc=
- + else
- + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + fi
- + ;;
- +
- + solaris* | sysv5*)
- + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
- + ld_shlibs=no
- + cat <<EOF 1>&2
- +
- +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
- +*** create shared libraries on Solaris systems. Therefore, libtool
- +*** is disabling shared libraries support. We urge you to upgrade GNU
- +*** binutils to release 2.9.1 or newer. Another option is to modify
- +*** your PATH or compiler configuration so that the native linker is
- +*** used, and then restart.
- +
- +EOF
- + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- +
- + sunos4*)
- + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + wlarc=
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + *)
- + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- + else
- + ld_shlibs=no
- + fi
- + ;;
- + esac
- +
- + if test "$ld_shlibs" = yes; then
- + runpath_var=LD_RUN_PATH
- + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- + export_dynamic_flag_spec='${wl}--export-dynamic'
- + case $host_os in
- + cygwin* | mingw* | pw32*)
- + # dlltool doesn't understand --whole-archive et. al.
- + whole_archive_flag_spec=
- + ;;
- + *)
- + # ancient GNU ld didn't support --whole-archive et. al.
- + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
- + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- + else
- + whole_archive_flag_spec=
- + fi
- + ;;
- + esac
- + fi
- +else
- + # PORTME fill in a description of your system's linker (not GNU ld)
- + case $host_os in
- + aix3*)
- + allow_undefined_flag=unsupported
- + always_export_symbols=yes
- + 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'
- + # Note: this linker hardcodes the directories in LIBPATH if there
- + # are no directories specified by -L.
- + hardcode_minus_L=yes
- + if test "$GCC" = yes && test -z "$link_static_flag"; then
- + # Neither direct hardcoding nor static linking is supported with a
- + # broken collect2.
- + hardcode_direct=unsupported
- + fi
- + ;;
- +
- + aix4* | aix5*)
- + if test "$host_cpu" = ia64; then
- + # On IA64, the linker does run time linking by default, so we don't
- + # have to do anything special.
- + aix_use_runtimelinking=no
- + exp_sym_flag='-Bexport'
- + no_entry_flag=""
- + else
- + aix_use_runtimelinking=no
- +
- + # Test if we are trying to use run time linking or normal
- + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- + # need to do runtime linking.
- + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
- + for ld_flag in $LDFLAGS; do
- + case $ld_flag in
- + *-brtl*)
- + aix_use_runtimelinking=yes
- + break
- + ;;
- + esac
- + done
- + esac
- +
- + exp_sym_flag='-bexport'
- + no_entry_flag='-bnoentry'
- + fi
- +
- + # When large executables or shared objects are built, AIX ld can
- + # have problems creating the table of contents. If linking a library
- + # or program results in "error TOC overflow" add -mminimal-toc to
- + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
- +
- + hardcode_direct=yes
- + archive_cmds=''
- + hardcode_libdir_separator=':'
- + if test "$GCC" = yes; then
- + case $host_os in aix4.[012]|aix4.[012].*)
- + collect2name=`${CC} -print-prog-name=collect2`
- + if test -f "$collect2name" && \
- + strings "$collect2name" | grep resolve_lib_name >/dev/null
- + then
- + # We have reworked collect2
- + hardcode_direct=yes
- + else
- + # We have old collect2
- + hardcode_direct=unsupported
- + # It fails to find uninstalled libraries when the uninstalled
- + # path is not listed in the libpath. Setting hardcode_minus_L
- + # to unsupported forces relinking
- + hardcode_minus_L=yes
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_libdir_separator=
- + fi
- + esac
- +
- + shared_flag='-shared'
- + else
- + # not using gcc
- + if test "$host_cpu" = ia64; then
- + shared_flag='${wl}-G'
- + else
- + if test "$aix_use_runtimelinking" = yes; then
- + shared_flag='${wl}-G'
- + else
- + shared_flag='${wl}-bM:SRE'
- + fi
- + fi
- + fi
- +
- + # It seems that -bexpall can do strange things, so it is better to
- + # generate a list of symbols to export.
- + always_export_symbols=yes
- + if test "$aix_use_runtimelinking" = yes; then
- + # Warning - without using the other runtime loading flags (-brtl),
- + # -berok will link without error, but may produce a broken library.
- + allow_undefined_flag='-berok'
- + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- + else
- + if test "$host_cpu" = ia64; then
- + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- + allow_undefined_flag="-z nodefs"
- + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- + else
- + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
- + # Warning - without using the other run time loading flags,
- + # -berok will link without error, but may produce a broken library.
- + allow_undefined_flag='${wl}-berok'
- + # This is a bit strange, but is similar to how AIX traditionally builds
- + # it's shared libraries.
- + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
- + fi
- + fi
- + ;;
- +
- + amigaos*)
- + 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)'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- + # see comment about different semantics on the GNU ld section
- + ld_shlibs=no
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + # When not using gcc, we currently assume that we are using
- + # Microsoft Visual C++.
- + # hardcode_libdir_flag_spec is actually meaningless, as there is
- + # no search path for DLLs.
- + hardcode_libdir_flag_spec=' '
- + allow_undefined_flag=unsupported
- + # Tell ltmain to make .lib files, not .a files.
- + libext=lib
- + # FIXME: Setting linknames here is a bad hack.
- + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
- + # The linker will automatically build a .lib file if we build a DLL.
- + old_archive_from_new_cmds='true'
- + # FIXME: Should let the user specify the lib program.
- + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
- + fix_srcfile_path='`cygpath -w "$srcfile"`'
- + ;;
- +
- + darwin* | rhapsody*)
- + case "$host_os" in
- + rhapsody* | darwin1.[012])
- + allow_undefined_flag='-undefined suppress'
- + ;;
- + *) # Darwin 1.3 on
- + allow_undefined_flag='-flat_namespace -undefined suppress'
- + ;;
- + esac
- + # FIXME: Relying on posixy $() will cause problems for
- + # cross-compilation, but unfortunately the echo tests do not
- + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
- + # `"' quotes if we put them in here... so don't!
- + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
- + # We need to add '_' to the symbols in $export_symbols first
- + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + whole_archive_flag_spec='-all_load $convenience'
- + ;;
- +
- + freebsd1*)
- + ld_shlibs=no
- + ;;
- +
- + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- + # support. Future versions do this automatically, but an explicit c++rt0.o
- + # does not break anything, and helps significantly (at the cost of a little
- + # extra space).
- + freebsd2.2*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- + freebsd2*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_minus_L=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- + freebsd*)
- + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + hpux9* | hpux10* | hpux11*)
- + case $host_os in
- + hpux9*) 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' ;;
- + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
- + esac
- + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- + hardcode_libdir_separator=:
- + hardcode_direct=yes
- + hardcode_minus_L=yes # Not in the search PATH, but as the default
- + # location of the library.
- + export_dynamic_flag_spec='${wl}-E'
- + ;;
- +
- + irix5* | irix6* | nonstopux*)
- + if test "$GCC" = yes; then
- + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + else
- + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='-rpath $libdir'
- + fi
- + hardcode_libdir_separator=:
- + link_all_deplibs=yes
- + ;;
- +
- + netbsd*)
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- + else
- + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- + fi
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + newsos6)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + hardcode_libdir_separator=:
- + hardcode_shlibpath_var=no
- + ;;
- +
- + openbsd*)
- + hardcode_direct=yes
- + hardcode_shlibpath_var=no
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- + export_dynamic_flag_spec='${wl}-E'
- + else
- + case "$host_os" in
- + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-R$libdir'
- + ;;
- + *)
- + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- + ;;
- + esac
- + fi
- + ;;
- +
- + os2*)
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_minus_L=yes
- + allow_undefined_flag=unsupported
- + 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'
- + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- + ;;
- +
- + osf3*)
- + if test "$GCC" = yes; then
- + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + else
- + allow_undefined_flag=' -expect_unresolved \*'
- + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + fi
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + hardcode_libdir_separator=:
- + ;;
- +
- + osf4* | osf5*) # as osf3* with the addition of -msym flag
- + if test "$GCC" = yes; then
- + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- + else
- + allow_undefined_flag=' -expect_unresolved \*'
- + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
- +
- + #Both c and cxx compiler support -rpath directly
- + hardcode_libdir_flag_spec='-rpath $libdir'
- + fi
- + hardcode_libdir_separator=:
- + ;;
- +
- + sco3.2v5*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + runpath_var=LD_RUN_PATH
- + hardcode_runpath_var=yes
- + export_dynamic_flag_spec='${wl}-Bexport'
- + ;;
- +
- + solaris*)
- + # gcc --version < 3.0 without binutils cannot create self contained
- + # shared libraries reliably, requiring libgcc.a to resolve some of
- + # the object symbols generated in some cases. Libraries that use
- + # assert need libgcc.a to resolve __eprintf, for example. Linking
- + # a copy of libgcc.a into every shared library to guarantee resolving
- + # such symbols causes other problems: According to Tim Van Holder
- + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
- + # (to the application) exception stack for one thing.
- + no_undefined_flag=' -z defs'
- + if test "$GCC" = yes; then
- + case `$CC --version 2>/dev/null` in
- + [12].*)
- + cat <<EOF 1>&2
- +
- +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
- +*** create self contained shared libraries on Solaris systems, without
- +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
- +*** -no-undefined support, which will at least allow you to build shared
- +*** libraries. However, you may find that when you link such libraries
- +*** into an application without using GCC, you have to manually add
- +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
- +*** upgrade to a newer version of GCC. Another option is to rebuild your
- +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
- +
- +EOF
- + no_undefined_flag=
- + ;;
- + esac
- + fi
- + # $CC -shared without GNU ld will not create a library from C++
- + # object files and a static libstdc++, better avoid it by now
- + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- + hardcode_libdir_flag_spec='-R$libdir'
- + hardcode_shlibpath_var=no
- + case $host_os in
- + solaris2.[0-5] | solaris2.[0-5].*) ;;
- + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
- + esac
- + link_all_deplibs=yes
- + ;;
- +
- + sunos4*)
- + if test "x$host_vendor" = xsequent; then
- + # Use $CC to link under sequent, because it throws in some extra .o
- + # files that make .init and .fini sections work.
- + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- + else
- + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- + fi
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_direct=yes
- + hardcode_minus_L=yes
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4)
- + case $host_vendor in
- + sni)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes # is this really true???
- + ;;
- + siemens)
- + ## LD is ld it makes a PLAMLIB
- + ## CC just makes a GrossModule.
- + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- + reload_cmds='$CC -r -o $output$reload_objs'
- + hardcode_direct=no
- + ;;
- + motorola)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- + ;;
- + esac
- + runpath_var='LD_RUN_PATH'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4.3*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + export_dynamic_flag_spec='-Bexport'
- + ;;
- +
- + sysv5*)
- + no_undefined_flag=' -z text'
- + # $CC -shared without GNU ld will not create a library from C++
- + # object files and a static libstdc++, better avoid it by now
- + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- + hardcode_libdir_flag_spec=
- + hardcode_shlibpath_var=no
- + runpath_var='LD_RUN_PATH'
- + ;;
- +
- + uts4*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + dgux*)
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_libdir_flag_spec='-L$libdir'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + sysv4*MP*)
- + if test -d /usr/nec; then
- + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_shlibpath_var=no
- + runpath_var=LD_RUN_PATH
- + hardcode_runpath_var=yes
- + ld_shlibs=yes
- + fi
- + ;;
- +
- + sysv4.2uw2*)
- + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- + hardcode_direct=yes
- + hardcode_minus_L=no
- + hardcode_shlibpath_var=no
- + hardcode_runpath_var=yes
- + runpath_var=LD_RUN_PATH
- + ;;
- +
- + sysv5uw7* | unixware7*)
- + no_undefined_flag='${wl}-z ${wl}text'
- + if test "$GCC" = yes; then
- + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- + else
- + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- + fi
- + runpath_var='LD_RUN_PATH'
- + hardcode_shlibpath_var=no
- + ;;
- +
- + *)
- + ld_shlibs=no
- + ;;
- + esac
- +fi
- +echo "$ac_t""$ld_shlibs" 1>&6
- +test "$ld_shlibs" = no && can_build_shared=no
- +
- +# Check hardcoding attributes.
- +echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
- +echo "configure:3844: checking how to hardcode library paths into programs" >&5
- +hardcode_action=
- +if test -n "$hardcode_libdir_flag_spec" || \
- + test -n "$runpath_var"; then
- +
- + # We can hardcode non-existant directories.
- + if test "$hardcode_direct" != no &&
- + # If the only mechanism to avoid hardcoding is shlibpath_var, we
- + # have to relink, otherwise we might link with an installed library
- + # when we should be linking with a yet-to-be-installed one
- + ## test "$hardcode_shlibpath_var" != no &&
- + test "$hardcode_minus_L" != no; then
- + # Linking always hardcodes the temporary library directory.
- + hardcode_action=relink
- + else
- + # We can link without hardcoding, and we can hardcode nonexisting dirs.
- + hardcode_action=immediate
- + fi
- +else
- + # We cannot hardcode anything, or else we can only hardcode existing
- + # directories.
- + hardcode_action=unsupported
- +fi
- +echo "$ac_t""$hardcode_action" 1>&6
- +
- +striplib=
- +old_striplib=
- +echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
- +echo "configure:3872: checking whether stripping libraries is possible" >&5
- +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- + echo "$ac_t""yes" 1>&6
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +reload_cmds='$LD$reload_flag -o $output$reload_objs'
- +test -z "$deplibs_check_method" && deplibs_check_method=unknown
- +
- +# PORTME Fill in your ld.so characteristics
- +echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
- +echo "configure:3886: checking dynamic linker characteristics" >&5
- +library_names_spec=
- +libname_spec='lib$name'
- +soname_spec=
- +postinstall_cmds=
- +postuninstall_cmds=
- +finish_cmds=
- +finish_eval=
- +shlibpath_var=
- +shlibpath_overrides_runpath=unknown
- +version_type=none
- +dynamic_linker="$host_os ld.so"
- +sys_lib_dlsearch_path_spec="/lib /usr/lib"
- +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
- +
- +case $host_os in
- +aix3*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix $libname.a'
- + shlibpath_var=LIBPATH
- +
- + # AIX has no versioning support, so we append a major version to the name.
- + soname_spec='${libname}${release}.so$major'
- + ;;
- +
- +aix4* | aix5*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + hardcode_into_libs=yes
- + if test "$host_cpu" = ia64; then
- + # AIX 5 supports IA64
- + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + else
- + # With GCC up to 2.95.x, collect2 would create an import file
- + # for dependence libraries. The import file would start with
- + # the line `#! .'. This would cause the generated library to
- + # depend on `.', always an invalid library. This was fixed in
- + # development snapshots of GCC prior to 3.0.
- + case $host_os in
- + aix4 | aix4.[01] | aix4.[01].*)
- + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- + echo ' yes '
- + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- + :
- + else
- + can_build_shared=no
- + fi
- + ;;
- + esac
- + # AIX (on Power*) has no versioning support, so currently we can
- + # not hardcode correct soname into executable. Probably we can
- + # add versioning support to collect2, so additional links can
- + # be useful in future.
- + if test "$aix_use_runtimelinking" = yes; then
- + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- + # instead of lib<name>.a to let people know that these are not
- + # typical AIX shared libraries.
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + else
- + # We preserve .a as extension for shared libraries through AIX4.2
- + # and later when we are not doing run time linking.
- + library_names_spec='${libname}${release}.a $libname.a'
- + soname_spec='${libname}${release}.so$major'
- + fi
- + shlibpath_var=LIBPATH
- + fi
- + hardcode_into_libs=yes
- + ;;
- +
- +amigaos*)
- + library_names_spec='$libname.ixlibrary $libname.a'
- + # Create ${libname}_ixlibrary.a entries in /sys/libs.
- + 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'
- + ;;
- +
- +beos*)
- + library_names_spec='${libname}.so'
- + dynamic_linker="$host_os ld.so"
- + shlibpath_var=LIBRARY_PATH
- + ;;
- +
- +bsdi4*)
- + version_type=linux
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- + export_dynamic_flag_spec=-rdynamic
- + # the default ld.so.conf also contains /usr/contrib/lib and
- + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- + # libtool to hard-code these into programs
- + ;;
- +
- +cygwin* | mingw* | pw32*)
- + version_type=windows
- + need_version=no
- + need_lib_prefix=no
- + case $GCC,$host_os in
- + yes,cygwin*)
- + library_names_spec='$libname.dll.a'
- + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
- + dldir=$destdir/`dirname \$dlpath`~
- + test -d \$dldir || mkdir -p \$dldir~
- + $install_prog .libs/$dlname \$dldir/$dlname'
- + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
- + dlpath=$dir/\$dldll~
- + $rm \$dlpath'
- + ;;
- + yes,mingw*)
- + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
- + ;;
- + yes,pw32*)
- + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
- + ;;
- + *)
- + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
- + ;;
- + esac
- + dynamic_linker='Win32 ld.exe'
- + # FIXME: first we should search . and the directory the executable is in
- + shlibpath_var=PATH
- + ;;
- +
- +darwin* | rhapsody*)
- + dynamic_linker="$host_os dyld"
- + version_type=darwin
- + need_lib_prefix=no
- + need_version=no
- + # FIXME: Relying on posixy $() will cause problems for
- + # cross-compilation, but unfortunately the echo tests do not
- + # yet detect zsh echo's removal of \ escapes.
- + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
- + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
- + shlibpath_overrides_runpath=yes
- + shlibpath_var=DYLD_LIBRARY_PATH
- + ;;
- +
- +freebsd1*)
- + dynamic_linker=no
- + ;;
- +
- +freebsd*-gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=no
- + hardcode_into_libs=yes
- + dynamic_linker='GNU/FreeBSD ld.so'
- + ;;
- +
- +freebsd*)
- + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- + version_type=freebsd-$objformat
- + case $version_type in
- + freebsd-elf*)
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
- + need_version=no
- + need_lib_prefix=no
- + ;;
- + freebsd-*)
- + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
- + need_version=yes
- + ;;
- + esac
- + shlibpath_var=LD_LIBRARY_PATH
- + case $host_os in
- + freebsd2*)
- + shlibpath_overrides_runpath=yes
- + ;;
- + *)
- + shlibpath_overrides_runpath=no
- + hardcode_into_libs=yes
- + ;;
- + esac
- + ;;
- +
- +gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + hardcode_into_libs=yes
- + ;;
- +
- +hpux9* | hpux10* | hpux11*)
- + # Give a soname corresponding to the major version so that dld.sl refuses to
- + # link against other versions.
- + dynamic_linker="$host_os dld.sl"
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + shlibpath_var=SHLIB_PATH
- + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
- + soname_spec='${libname}${release}.sl$major'
- + # HP-UX runs *really* slowly unless shared libraries are mode 555.
- + postinstall_cmds='chmod 555 $lib'
- + ;;
- +
- +irix5* | irix6* | nonstopux*)
- + case $host_os in
- + nonstopux*) version_type=nonstopux ;;
- + *) version_type=irix ;;
- + esac
- + need_lib_prefix=no
- + need_version=no
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
- + case $host_os in
- + irix5* | nonstopux*)
- + libsuff= shlibsuff=
- + ;;
- + *)
- + case $LD in # libtool.m4 will add one of these switches to LD
- + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
- + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
- + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
- + *) libsuff= shlibsuff= libmagic=never-match;;
- + esac
- + ;;
- + esac
- + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- + shlibpath_overrides_runpath=no
- + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- + ;;
- +
- +# No shared lib support for Linux oldld, aout, or coff.
- +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
- + dynamic_linker=no
- + ;;
- +
- +# This must be Linux ELF.
- +linux-gnu*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=no
- + # This implies no fast_install, which is unacceptable.
- + # Some rework will be needed to allow for fast_install
- + # before this can be enabled.
- + hardcode_into_libs=yes
- +
- + # We used to test for /lib/ld.so.1 and disable shared libraries on
- + # powerpc, because MkLinux only supported shared libraries with the
- + # GNU dynamic linker. Since this was broken with cross compilers,
- + # most powerpc-linux boxes support dynamic linking these days and
- + # people can always --disable-shared, the test was removed, and we
- + # assume the GNU/Linux dynamic linker is in use.
- + dynamic_linker='GNU/Linux ld.so'
- + ;;
- +
- +netbsd*)
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- + dynamic_linker='NetBSD (a.out) ld.so'
- + else
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
- + soname_spec='${libname}${release}.so$major'
- + dynamic_linker='NetBSD ld.elf_so'
- + fi
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + hardcode_into_libs=yes
- + ;;
- +
- +newsos6)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + ;;
- +
- +openbsd*)
- + version_type=sunos
- + need_lib_prefix=no
- + need_version=no
- + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- + case "$host_os" in
- + openbsd2.[89] | openbsd2.[89].*)
- + shlibpath_overrides_runpath=no
- + ;;
- + *)
- + shlibpath_overrides_runpath=yes
- + ;;
- + esac
- + else
- + shlibpath_overrides_runpath=yes
- + fi
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +os2*)
- + libname_spec='$name'
- + need_lib_prefix=no
- + library_names_spec='$libname.dll $libname.a'
- + dynamic_linker='OS/2 ld.exe'
- + shlibpath_var=LIBPATH
- + ;;
- +
- +osf3* | osf4* | osf5*)
- + version_type=osf
- + need_version=no
- + need_lib_prefix=no
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- + hardcode_into_libs=yes
- + ;;
- +
- +sco3.2v5*)
- + version_type=osf
- + soname_spec='${libname}${release}.so$major'
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +solaris*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + hardcode_into_libs=yes
- + # ldd complains unless libraries are executable
- + postinstall_cmds='chmod +x $lib'
- + ;;
- +
- +sunos4*)
- + version_type=sunos
- + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- + shlibpath_var=LD_LIBRARY_PATH
- + shlibpath_overrides_runpath=yes
- + if test "$with_gnu_ld" = yes; then
- + need_lib_prefix=no
- + fi
- + need_version=yes
- + ;;
- +
- +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + case $host_vendor in
- + sni)
- + shlibpath_overrides_runpath=no
- + need_lib_prefix=no
- + export_dynamic_flag_spec='${wl}-Blargedynsym'
- + runpath_var=LD_RUN_PATH
- + ;;
- + siemens)
- + need_lib_prefix=no
- + ;;
- + motorola)
- + need_lib_prefix=no
- + need_version=no
- + shlibpath_overrides_runpath=no
- + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- + ;;
- + esac
- + ;;
- +
- +uts4*)
- + version_type=linux
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +dgux*)
- + version_type=linux
- + need_lib_prefix=no
- + need_version=no
- + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- + soname_spec='${libname}${release}.so$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + ;;
- +
- +sysv4*MP*)
- + if test -d /usr/nec ;then
- + version_type=linux
- + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
- + soname_spec='$libname.so.$major'
- + shlibpath_var=LD_LIBRARY_PATH
- + fi
- + ;;
- +
- +*)
- + dynamic_linker=no
- + ;;
- +esac
- +echo "$ac_t""$dynamic_linker" 1>&6
- +test "$dynamic_linker" = no && can_build_shared=no
- +
- +# Report the final consequences.
- +echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
- +echo "configure:4310: checking if libtool supports shared libraries" >&5
- +echo "$ac_t""$can_build_shared" 1>&6
- +
- +echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
- +echo "configure:4314: checking whether to build shared libraries" >&5
- +test "$can_build_shared" = "no" && enable_shared=no
- +
- +# On AIX, shared libraries and static libraries use the same namespace, and
- +# are all built from PIC.
- +case "$host_os" in
- +aix3*)
- + test "$enable_shared" = yes && enable_static=no
- + if test -n "$RANLIB"; then
- + archive_cmds="$archive_cmds~\$RANLIB \$lib"
- + postinstall_cmds='$RANLIB $lib'
- + fi
- + ;;
- +
- +aix4*)
- + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- + test "$enable_shared" = yes && enable_static=no
- + fi
- + ;;
- +esac
- +echo "$ac_t""$enable_shared" 1>&6
- +
- +echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
- +echo "configure:4337: checking whether to build static libraries" >&5
- +# Make sure either enable_shared or enable_static is yes.
- +test "$enable_shared" = yes || enable_static=yes
- +echo "$ac_t""$enable_static" 1>&6
- +
- +if test "$hardcode_action" = relink; then
- + # Fast installation is not supported
- + enable_fast_install=no
- +elif test "$shlibpath_overrides_runpath" = yes ||
- + test "$enable_shared" = no; then
- + # Fast installation is not necessary
- + enable_fast_install=needless
- +fi
- +
- +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
- +if test "$GCC" = yes; then
- + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
- +fi
- +
- +if test "x$enable_dlopen" != xyes; then
- + enable_dlopen=unknown
- + enable_dlopen_self=unknown
- + enable_dlopen_self_static=unknown
- +else
- + lt_cv_dlopen=no
- + lt_cv_dlopen_libs=
- +
- + case $host_os in
- + beos*)
- + lt_cv_dlopen="load_add_on"
- + lt_cv_dlopen_libs=
- + lt_cv_dlopen_self=yes
- + ;;
- +
- + cygwin* | mingw* | pw32*)
- + lt_cv_dlopen="LoadLibrary"
- + lt_cv_dlopen_libs=
- + ;;
- +
- + *)
- + echo $ac_n "checking for shl_load""... $ac_c" 1>&6
- +echo "configure:4378: checking for shl_load" >&5
- +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + cat > conftest.$ac_ext <<EOF
- +#line 4383 "configure"
- +#include "confdefs.h"
- +/* System header to define __stub macros and hopefully few prototypes,
- + which can conflict with char shl_load(); below. */
- +#include <assert.h>
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char shl_load();
- +
- +int main() {
- +
- +/* The GNU C library defines this for functions which it implements
- + to always fail with ENOSYS. Some functions are actually named
- + something starting with __ and the normal name is an alias. */
- +#if defined (__stub_shl_load) || defined (__stub___shl_load)
- +choke me
- +#else
- +shl_load();
- +#endif
- +
- +; return 0; }
- +EOF
- +if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_func_shl_load=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_func_shl_load=no"
- +fi
- +rm -f conftest*
- +fi
- +
- +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="shl_load"
- +else
- + echo "$ac_t""no" 1>&6
- +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
- +echo "configure:4424: checking for shl_load in -ldld" >&5
- +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
- +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + ac_save_LIBS="$LIBS"
- +LIBS="-ldld $LIBS"
- +cat > conftest.$ac_ext <<EOF
- +#line 4432 "configure"
- +#include "confdefs.h"
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char shl_load();
- +
- +int main() {
- +shl_load()
- +; return 0; }
- +EOF
- +if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=no"
- +fi
- +rm -f conftest*
- +LIBS="$ac_save_LIBS"
- +
- +fi
- +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
- +else
- + echo "$ac_t""no" 1>&6
- +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
- +echo "configure:4462: checking for dlopen" >&5
- +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + cat > conftest.$ac_ext <<EOF
- +#line 4467 "configure"
- +#include "confdefs.h"
- +/* System header to define __stub macros and hopefully few prototypes,
- + which can conflict with char dlopen(); below. */
- +#include <assert.h>
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char dlopen();
- +
- +int main() {
- +
- +/* The GNU C library defines this for functions which it implements
- + to always fail with ENOSYS. Some functions are actually named
- + something starting with __ and the normal name is an alias. */
- +#if defined (__stub_dlopen) || defined (__stub___dlopen)
- +choke me
- +#else
- +dlopen();
- +#endif
- +
- +; return 0; }
- +EOF
- +if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_func_dlopen=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_func_dlopen=no"
- +fi
- +rm -f conftest*
- +fi
- +
- +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="dlopen"
- +else
- + echo "$ac_t""no" 1>&6
- +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
- +echo "configure:4508: checking for dlopen in -ldl" >&5
- +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + ac_save_LIBS="$LIBS"
- +LIBS="-ldl $LIBS"
- +cat > conftest.$ac_ext <<EOF
- +#line 4516 "configure"
- +#include "confdefs.h"
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char dlopen();
- +
- +int main() {
- +dlopen()
- +; return 0; }
- +EOF
- +if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=no"
- +fi
- +rm -f conftest*
- +LIBS="$ac_save_LIBS"
- +
- +fi
- +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
- +else
- + echo "$ac_t""no" 1>&6
- +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
- +echo "configure:4546: checking for dlopen in -lsvld" >&5
- +ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
- +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + ac_save_LIBS="$LIBS"
- +LIBS="-lsvld $LIBS"
- +cat > conftest.$ac_ext <<EOF
- +#line 4554 "configure"
- +#include "confdefs.h"
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char dlopen();
- +
- +int main() {
- +dlopen()
- +; return 0; }
- +EOF
- +if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=no"
- +fi
- +rm -f conftest*
- +LIBS="$ac_save_LIBS"
- +
- +fi
- +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
- +else
- + echo "$ac_t""no" 1>&6
- +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
- +echo "configure:4584: checking for dld_link in -ldld" >&5
- +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
- +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + ac_save_LIBS="$LIBS"
- +LIBS="-ldld $LIBS"
- +cat > conftest.$ac_ext <<EOF
- +#line 4592 "configure"
- +#include "confdefs.h"
- +/* Override any gcc2 internal prototype to avoid an error. */
- +/* We use char because int might match the return type of a gcc2
- + builtin and then its argument prototype would still apply. */
- +char dld_link();
- +
- +int main() {
- +dld_link()
- +; return 0; }
- +EOF
- +if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=yes"
- +else
- + echo "configure: failed program was:" >&5
- + cat conftest.$ac_ext >&5
- + rm -rf conftest*
- + eval "ac_cv_lib_$ac_lib_var=no"
- +fi
- +rm -f conftest*
- +LIBS="$ac_save_LIBS"
- +
- +fi
- +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- + echo "$ac_t""yes" 1>&6
- + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
- +else
- + echo "$ac_t""no" 1>&6
- +fi
- +
- +
- +fi
- +
- +
- +fi
- +
- +
- +fi
- +
- +
- +fi
- +
- +
- +fi
- +
- + ;;
- + esac
- +
- + if test "x$lt_cv_dlopen" != xno; then
- + enable_dlopen=yes
- + else
- + enable_dlopen=no
- + fi
- +
- + case $lt_cv_dlopen in
- + dlopen)
- + save_CPPFLAGS="$CPPFLAGS"
- + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
- +
- + save_LDFLAGS="$LDFLAGS"
- + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
- +
- + save_LIBS="$LIBS"
- + LIBS="$lt_cv_dlopen_libs $LIBS"
- +
- + echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
- +echo "configure:4659: checking whether a program can dlopen itself" >&5
- +if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test "$cross_compiling" = yes; then :
- + lt_cv_dlopen_self=cross
- +else
- + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- + lt_status=$lt_dlunknown
- + cat > conftest.$ac_ext <<EOF
- +#line 4669 "configure"
- +#include "confdefs.h"
- +
- +#if HAVE_DLFCN_H
- +#include <dlfcn.h>
- +#endif
- +
- +#include <stdio.h>
- +
- +#ifdef RTLD_GLOBAL
- +# define LT_DLGLOBAL RTLD_GLOBAL
- +#else
- +# ifdef DL_GLOBAL
- +# define LT_DLGLOBAL DL_GLOBAL
- +# else
- +# define LT_DLGLOBAL 0
- +# endif
- +#endif
- +
- +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- + find out it does not work in some platform. */
- +#ifndef LT_DLLAZY_OR_NOW
- +# ifdef RTLD_LAZY
- +# define LT_DLLAZY_OR_NOW RTLD_LAZY
- +# else
- +# ifdef DL_LAZY
- +# define LT_DLLAZY_OR_NOW DL_LAZY
- +# else
- +# ifdef RTLD_NOW
- +# define LT_DLLAZY_OR_NOW RTLD_NOW
- +# else
- +# ifdef DL_NOW
- +# define LT_DLLAZY_OR_NOW DL_NOW
- +# else
- +# define LT_DLLAZY_OR_NOW 0
- +# endif
- +# endif
- +# endif
- +# endif
- +#endif
- +
- +#ifdef __cplusplus
- +extern "C" void exit (int);
- +#endif
- +
- +void fnord() { int i=42;}
- +int main ()
- +{
- + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- + int status = $lt_dlunknown;
- +
- + if (self)
- + {
- + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- + /* dlclose (self); */
- + }
- +
- + exit (status);
- +}
- +EOF
- + if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
- + (./conftest; exit; ) 2>/dev/null
- + lt_status=$?
- + case x$lt_status in
- + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
- + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
- + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
- + esac
- + else :
- + # compilation failed
- + lt_cv_dlopen_self=no
- + fi
- +fi
- +rm -fr conftest*
- +
- +
- +fi
- +
- +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
- +
- + if test "x$lt_cv_dlopen_self" = xyes; then
- + LDFLAGS="$LDFLAGS $link_static_flag"
- + echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
- +echo "configure:4753: checking whether a statically linked program can dlopen itself" >&5
- +if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + if test "$cross_compiling" = yes; then :
- + lt_cv_dlopen_self_static=cross
- +else
- + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- + lt_status=$lt_dlunknown
- + cat > conftest.$ac_ext <<EOF
- +#line 4763 "configure"
- +#include "confdefs.h"
- +
- +#if HAVE_DLFCN_H
- +#include <dlfcn.h>
- +#endif
- +
- +#include <stdio.h>
- +
- +#ifdef RTLD_GLOBAL
- +# define LT_DLGLOBAL RTLD_GLOBAL
- +#else
- +# ifdef DL_GLOBAL
- +# define LT_DLGLOBAL DL_GLOBAL
- +# else
- +# define LT_DLGLOBAL 0
- +# endif
- +#endif
- +
- +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- + find out it does not work in some platform. */
- +#ifndef LT_DLLAZY_OR_NOW
- +# ifdef RTLD_LAZY
- +# define LT_DLLAZY_OR_NOW RTLD_LAZY
- +# else
- +# ifdef DL_LAZY
- +# define LT_DLLAZY_OR_NOW DL_LAZY
- +# else
- +# ifdef RTLD_NOW
- +# define LT_DLLAZY_OR_NOW RTLD_NOW
- +# else
- +# ifdef DL_NOW
- +# define LT_DLLAZY_OR_NOW DL_NOW
- +# else
- +# define LT_DLLAZY_OR_NOW 0
- +# endif
- +# endif
- +# endif
- +# endif
- +#endif
- +
- +#ifdef __cplusplus
- +extern "C" void exit (int);
- +#endif
- +
- +void fnord() { int i=42;}
- +int main ()
- +{
- + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- + int status = $lt_dlunknown;
- +
- + if (self)
- + {
- + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- + /* dlclose (self); */
- + }
- +
- + exit (status);
- +}
- +EOF
- + if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
- + (./conftest; exit; ) 2>/dev/null
- + lt_status=$?
- + case x$lt_status in
- + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
- + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
- + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
- + esac
- + else :
- + # compilation failed
- + lt_cv_dlopen_self_static=no
- + fi
- +fi
- +rm -fr conftest*
- +
- +
- +fi
- +
- +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
- + fi
- +
- + CPPFLAGS="$save_CPPFLAGS"
- + LDFLAGS="$save_LDFLAGS"
- + LIBS="$save_LIBS"
- + ;;
- + esac
- +
- + case $lt_cv_dlopen_self in
- + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- + *) enable_dlopen_self=unknown ;;
- + esac
- +
- + case $lt_cv_dlopen_self_static in
- + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- + *) enable_dlopen_self_static=unknown ;;
- + esac
- +fi
- +
- +
- +if test "$enable_shared" = yes && test "$GCC" = yes; then
- + case $archive_cmds in
- + *'~'*)
- + # FIXME: we may have to deal with multi-command sequences.
- + ;;
- + '$CC '*)
- + # Test whether the compiler implicitly links with -lc since on some
- + # systems, -lgcc has to come before -lc. If gcc already passes -lc
- + # to ld, don't add -lc before -lgcc.
- + echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
- +echo "configure:4873: checking whether -lc should be explicitly linked in" >&5
- + if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
- + echo $ac_n "(cached) $ac_c" 1>&6
- +else
- + $rm conftest*
- + echo 'static int dummy;' > conftest.$ac_ext
- +
- + if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- + soname=conftest
- + lib=conftest
- + libobjs=conftest.$ac_objext
- + deplibs=
- + wl=$lt_cv_prog_cc_wl
- + compiler_flags=-v
- + linker_flags=-v
- + verstring=
- + output_objdir=.
- + libname=conftest
- + save_allow_undefined_flag=$allow_undefined_flag
- + allow_undefined_flag=
- + if { (eval echo configure:4893: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
- + then
- + lt_cv_archive_cmds_need_lc=no
- + else
- + lt_cv_archive_cmds_need_lc=yes
- + fi
- + allow_undefined_flag=$save_allow_undefined_flag
- + else
- + cat conftest.err 1>&5
- + fi
- +fi
- +
- + echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
- + ;;
- + esac
- +fi
- +need_lc=${lt_cv_archive_cmds_need_lc-yes}
- +
- +# The second clause should only fire when bootstrapping the
- +# libtool distribution, otherwise you forgot to ship ltmain.sh
- +# with your package, and you will get complaints that there are
- +# no rules to generate ltmain.sh.
- +if test -f "$ltmain"; then
- + :
- +else
- + # If there is no Makefile yet, we rely on a make rule to execute
- + # `config.status --recheck' to rerun these tests and create the
- + # libtool script then.
- + test -f Makefile && make "$ltmain"
- +fi
- +
- +if test -f "$ltmain"; then
- + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
- + $rm -f "${ofile}T"
- +
- + echo creating $ofile
- +
- + # Now quote all the things that may contain metacharacters while being
- + # careful not to overquote the AC_SUBSTed values. We take copies of the
- + # variables and quote the copies for generation of the libtool script.
- + for var in echo old_CC old_CFLAGS SED \
- + AR AR_FLAGS CC LD LN_S NM SHELL \
- + reload_flag reload_cmds wl \
- + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
- + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
- + library_names_spec soname_spec \
- + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
- + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
- + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
- + old_striplib striplib file_magic_cmd export_symbols_cmds \
- + deplibs_check_method allow_undefined_flag no_undefined_flag \
- + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
- + global_symbol_to_c_name_address \
- + hardcode_libdir_flag_spec hardcode_libdir_separator \
- + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
- +
- + case $var in
- + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
- + old_postinstall_cmds | old_postuninstall_cmds | \
- + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
- + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
- + postinstall_cmds | postuninstall_cmds | \
- + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- + # Double-quote double-evaled strings.
- + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- + ;;
- + *)
- + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- + ;;
- + esac
- + done
- +
- + cat <<__EOF__ > "${ofile}T"
- +#! $SHELL
- +
- +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
- +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
- +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
- +#
- +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
- +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
- +#
- +# This program is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2 of the License, or
- +# (at your option) any later version.
- +#
- +# This program is distributed in the hope that it will be useful, but
- +# WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- +# General Public License for more details.
- +#
- +# You should have received a copy of the GNU General Public License
- +# along with this program; if not, write to the Free Software
- +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- +#
- +# As a special exception to the GNU General Public License, if you
- +# distribute this file as part of a program that contains a
- +# configuration script generated by Autoconf, you may include it under
- +# the same distribution terms that you use for the rest of that program.
- +
- +# A sed that does not truncate output.
- +SED=$lt_SED
- +
- +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
- +Xsed="${SED} -e s/^X//"
- +
- +# The HP-UX ksh and POSIX shell print the target directory to stdout
- +# if CDPATH is set.
- +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
- +
- +# ### BEGIN LIBTOOL CONFIG
- +
- +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- +
- +# Shell to use when invoking shell scripts.
- +SHELL=$lt_SHELL
- +
- +# Whether or not to build shared libraries.
- +build_libtool_libs=$enable_shared
- +
- +# Whether or not to build static libraries.
- +build_old_libs=$enable_static
- +
- +# Whether or not to add -lc for building shared libraries.
- +build_libtool_need_lc=$need_lc
- +
- +# Whether or not to optimize for fast installation.
- +fast_install=$enable_fast_install
- +
- +# The host system.
- +host_alias=$host_alias
- +host=$host
- +
- +# An echo program that does not interpret backslashes.
- +echo=$lt_echo
- +
- +# The archiver.
- +AR=$lt_AR
- +AR_FLAGS=$lt_AR_FLAGS
- +
- +# The default C compiler.
- +CC=$lt_CC
- +
- +# Is the compiler the GNU C compiler?
- +with_gcc=$GCC
- +
- +# The linker used to build libraries.
- +LD=$lt_LD
- +
- +# Whether we need hard or soft links.
- +LN_S=$lt_LN_S
- +
- +# A BSD-compatible nm program.
- +NM=$lt_NM
- +
- +# A symbol stripping program
- +STRIP=$STRIP
- +
- +# Used to examine libraries when file_magic_cmd begins "file"
- +MAGIC_CMD=$MAGIC_CMD
- +
- +# Used on cygwin: DLL creation program.
- +DLLTOOL="$DLLTOOL"
- +
- +# Used on cygwin: object dumper.
- +OBJDUMP="$OBJDUMP"
- +
- +# Used on cygwin: assembler.
- +AS="$AS"
- +
- +# The name of the directory that contains temporary libtool files.
- +objdir=$objdir
- +
- +# How to create reloadable object files.
- +reload_flag=$lt_reload_flag
- +reload_cmds=$lt_reload_cmds
- +
- +# How to pass a linker flag through the compiler.
- +wl=$lt_wl
- +
- +# Object file suffix (normally "o").
- +objext="$ac_objext"
- +
- +# Old archive suffix (normally "a").
- +libext="$libext"
- +
- +# Executable file suffix (normally "").
- +exeext="$exeext"
- +
- +# Additional compiler flags for building library objects.
- +pic_flag=$lt_pic_flag
- +pic_mode=$pic_mode
- +
- +# Does compiler simultaneously support -c and -o options?
- +compiler_c_o=$lt_compiler_c_o
- +
- +# Can we write directly to a .lo ?
- +compiler_o_lo=$lt_compiler_o_lo
- +
- +# Must we lock files when doing compilation ?
- +need_locks=$lt_need_locks
- +
- +# Do we need the lib prefix for modules?
- +need_lib_prefix=$need_lib_prefix
- +
- +# Do we need a version for libraries?
- +need_version=$need_version
- +
- +# Whether dlopen is supported.
- +dlopen_support=$enable_dlopen
- +
- +# Whether dlopen of programs is supported.
- +dlopen_self=$enable_dlopen_self
- +
- +# Whether dlopen of statically linked programs is supported.
- +dlopen_self_static=$enable_dlopen_self_static
- +
- +# Compiler flag to prevent dynamic linking.
- +link_static_flag=$lt_link_static_flag
- +
- +# Compiler flag to turn off builtin functions.
- +no_builtin_flag=$lt_no_builtin_flag
- +
- +# Compiler flag to allow reflexive dlopens.
- +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
- +
- +# Compiler flag to generate shared objects directly from archives.
- +whole_archive_flag_spec=$lt_whole_archive_flag_spec
- +
- +# Compiler flag to generate thread-safe objects.
- +thread_safe_flag_spec=$lt_thread_safe_flag_spec
- +
- +# Library versioning type.
- +version_type=$version_type
- +
- +# Format of library name prefix.
- +libname_spec=$lt_libname_spec
- +
- +# List of archive names. First name is the real one, the rest are links.
- +# The last name is the one that the linker finds with -lNAME.
- +library_names_spec=$lt_library_names_spec
- +
- +# The coded name of the library, if different from the real name.
- +soname_spec=$lt_soname_spec
- +
- +# Commands used to build and install an old-style archive.
- +RANLIB=$lt_RANLIB
- +old_archive_cmds=$lt_old_archive_cmds
- +old_postinstall_cmds=$lt_old_postinstall_cmds
- +old_postuninstall_cmds=$lt_old_postuninstall_cmds
- +
- +# Create an old-style archive from a shared archive.
- +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
-
- -NM="$ac_cv_path_NM"
- -echo "$ac_t""$NM" 1>&6
- +# Create a temporary old-style archive to link instead of a shared archive.
- +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
-
- -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
- -echo "configure:1367: checking whether ln -s works" >&5
- -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
- - echo $ac_n "(cached) $ac_c" 1>&6
- -else
- - rm -f conftestdata
- -if ln -s X conftestdata 2>/dev/null
- -then
- - rm -f conftestdata
- - ac_cv_prog_LN_S="ln -s"
- -else
- - ac_cv_prog_LN_S=ln
- -fi
- -fi
- -LN_S="$ac_cv_prog_LN_S"
- -if test "$ac_cv_prog_LN_S" = "ln -s"; then
- - echo "$ac_t""yes" 1>&6
- -else
- - echo "$ac_t""no" 1>&6
- -fi
- +# Commands used to build and install a shared archive.
- +archive_cmds=$lt_archive_cmds
- +archive_expsym_cmds=$lt_archive_expsym_cmds
- +postinstall_cmds=$lt_postinstall_cmds
- +postuninstall_cmds=$lt_postuninstall_cmds
-
- +# Commands to strip libraries.
- +old_striplib=$lt_old_striplib
- +striplib=$lt_striplib
-
- -case "$target" in
- -NONE) lt_target="$host" ;;
- -*) lt_target="$target" ;;
- -esac
- +# Method to check whether dependent libraries are shared objects.
- +deplibs_check_method=$lt_deplibs_check_method
-
- -# Check for any special flags to pass to ltconfig.
- -libtool_flags="--cache-file=$cache_file"
- -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
- -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
- -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
- -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
- -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
- +# Command to use when deplibs_check_method == file_magic.
- +file_magic_cmd=$lt_file_magic_cmd
-
- +# Flag that allows shared libraries with undefined symbols to be built.
- +allow_undefined_flag=$lt_allow_undefined_flag
-
- -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
- -if test "${enable_libtool_lock+set}" = set; then
- - enableval="$enable_libtool_lock"
- - :
- -fi
- +# Flag that forces no undefined symbols.
- +no_undefined_flag=$lt_no_undefined_flag
-
- -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
- -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
- +# Commands used to finish a libtool library installation in a directory.
- +finish_cmds=$lt_finish_cmds
-
- -# Some flags need to be propagated to the compiler or linker for good
- -# libtool support.
- -case "$lt_target" in
- -*-*-irix6*)
- - # Find out which ABI we are using.
- - echo '#line 1416 "configure"' > conftest.$ac_ext
- - if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- - case "`/usr/bin/file conftest.o`" in
- - *32-bit*)
- - LD="${LD-ld} -32"
- - ;;
- - *N32*)
- - LD="${LD-ld} -n32"
- - ;;
- - *64-bit*)
- - LD="${LD-ld} -64"
- - ;;
- - esac
- - fi
- - rm -rf conftest*
- - ;;
- +# Same as above, but a single script fragment to be evaled but not shown.
- +finish_eval=$lt_finish_eval
-
- -*-*-sco3.2v5*)
- - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- - SAVE_CFLAGS="$CFLAGS"
- - CFLAGS="$CFLAGS -belf"
- - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
- -echo "configure:1438: checking whether the C compiler needs -belf" >&5
- -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
- - echo $ac_n "(cached) $ac_c" 1>&6
- -else
- - cat > conftest.$ac_ext <<EOF
- -#line 1443 "configure"
- -#include "confdefs.h"
- +# Take the output of nm and produce a listing of raw symbols and C names.
- +global_symbol_pipe=$lt_global_symbol_pipe
-
- -int main() {
- +# Transform the output of nm in a proper C declaration
- +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
-
- -; return 0; }
- -EOF
- -if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- - rm -rf conftest*
- - lt_cv_cc_needs_belf=yes
- -else
- - echo "configure: failed program was:" >&5
- - cat conftest.$ac_ext >&5
- - rm -rf conftest*
- - lt_cv_cc_needs_belf=no
- -fi
- -rm -f conftest*
- -fi
- +# Transform the output of nm in a C name address pair
- +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
-
- -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
- - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- - CFLAGS="$SAVE_CFLAGS"
- - fi
- - ;;
- +# This is the shared library runtime path variable.
- +runpath_var=$runpath_var
-
- +# This is the shared library path variable.
- +shlibpath_var=$shlibpath_var
-
- -esac
- +# Is shlibpath searched before the hard-coded library search path?
- +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
- +# How to hardcode a shared library path into an executable.
- +hardcode_action=$hardcode_action
-
- -# Save cache, so that ltconfig can load it
- -cat > confcache <<\EOF
- -# This file is a shell script that caches the results of configure
- -# tests run on this system so they can be shared between configure
- -# scripts and configure runs. It is not useful on other systems.
- -# If it contains results you don't want to keep, you may remove or edit it.
- +# Whether we should hardcode library paths into libraries.
- +hardcode_into_libs=$hardcode_into_libs
- +
- +# Flag to hardcode \$libdir into a binary during linking.
- +# This must work even if \$libdir does not exist.
- +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
- +
- +# Whether we need a single -rpath flag with a separated argument.
- +hardcode_libdir_separator=$lt_hardcode_libdir_separator
- +
- +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
- +# resulting binary.
- +hardcode_direct=$hardcode_direct
- +
- +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- +# resulting binary.
- +hardcode_minus_L=$hardcode_minus_L
- +
- +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- +# the resulting binary.
- +hardcode_shlibpath_var=$hardcode_shlibpath_var
- +
- +# Variables whose values should be saved in libtool wrapper scripts and
- +# restored at relink time.
- +variables_saved_for_relink="$variables_saved_for_relink"
- +
- +# Whether libtool must link a program against all its dependency libraries.
- +link_all_deplibs=$link_all_deplibs
- +
- +# Compile-time system search path for libraries
- +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- +
- +# Run-time system search path for libraries
- +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- +
- +# Fix the shell variable \$srcfile for the compiler.
- +fix_srcfile_path="$fix_srcfile_path"
- +
- +# Set to yes if exported symbols are required.
- +always_export_symbols=$always_export_symbols
- +
- +# The commands to list exported symbols.
- +export_symbols_cmds=$lt_export_symbols_cmds
- +
- +# The commands to extract the exported symbol list from a shared archive.
- +extract_expsyms_cmds=$lt_extract_expsyms_cmds
- +
- +# Symbols that should not be listed in the preloaded symbols.
- +exclude_expsyms=$lt_exclude_expsyms
- +
- +# Symbols that must always be exported.
- +include_expsyms=$lt_include_expsyms
- +
- +# ### END LIBTOOL CONFIG
- +
- +__EOF__
- +
- + case $host_os in
- + aix3*)
- + cat <<\EOF >> "${ofile}T"
- +
- +# AIX sometimes has problems with the GCC collect2 program. For some
- +# reason, if we set the COLLECT_NAMES environment variable, the problems
- +# vanish in a puff of smoke.
- +if test "X${COLLECT_NAMES+set}" != Xset; then
- + COLLECT_NAMES=
- + export COLLECT_NAMES
- +fi
- +EOF
- + ;;
- + esac
- +
- + case $host_os in
- + cygwin* | mingw* | pw32* | os2*)
- + cat <<'EOF' >> "${ofile}T"
- + # This is a source program that is used to create dlls on Windows
- + # Don't remove nor modify the starting and closing comments
- +# /* ltdll.c starts here */
- +# #define WIN32_LEAN_AND_MEAN
- +# #include <windows.h>
- +# #undef WIN32_LEAN_AND_MEAN
- +# #include <stdio.h>
- #
- -# By default, configure uses ./config.cache as the cache file,
- -# creating it if it does not exist already. You can give configure
- -# the --cache-file=FILE option to use a different cache file; that is
- -# what configure does when it calls configure scripts in
- -# subdirectories, so they share the cache.
- -# Giving --cache-file=/dev/null disables caching, for debugging configure.
- -# config.status only pays attention to the cache file if you give it the
- -# --recheck option to rerun configure.
- +# #ifndef __CYGWIN__
- +# # ifdef __CYGWIN32__
- +# # define __CYGWIN__ __CYGWIN32__
- +# # endif
- +# #endif
- +#
- +# #ifdef __cplusplus
- +# extern "C" {
- +# #endif
- +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
- +# #ifdef __cplusplus
- +# }
- +# #endif
- +#
- +# #ifdef __CYGWIN__
- +# #include <cygwin/cygwin_dll.h>
- +# DECLARE_CYGWIN_DLL( DllMain );
- +# #endif
- +# HINSTANCE __hDllInstance_base;
- +#
- +# BOOL APIENTRY
- +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
- +# {
- +# __hDllInstance_base = hInst;
- +# return TRUE;
- +# }
- +# /* ltdll.c ends here */
- + # This is a source program that is used to create import libraries
- + # on Windows for dlls which lack them. Don't remove nor modify the
- + # starting and closing comments
- +# /* impgen.c starts here */
- +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
- +#
- +# This file is part of GNU libtool.
- +#
- +# This program is free software; you can redistribute it and/or modify
- +# it under the terms of the GNU General Public License as published by
- +# the Free Software Foundation; either version 2 of the License, or
- +# (at your option) any later version.
- +#
- +# This program is distributed in the hope that it will be useful,
- +# but WITHOUT ANY WARRANTY; without even the implied warranty of
- +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- +# GNU General Public License for more details.
- +#
- +# You should have received a copy of the GNU General Public License
- +# along with this program; if not, write to the Free Software
- +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- +# */
- +#
- +# #include <stdio.h> /* for printf() */
- +# #include <unistd.h> /* for open(), lseek(), read() */
- +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
- +# #include <string.h> /* for strdup() */
- +#
- +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
- +# #ifndef O_BINARY
- +# #define O_BINARY 0
- +# #endif
- +#
- +# static unsigned int
- +# pe_get16 (fd, offset)
- +# int fd;
- +# int offset;
- +# {
- +# unsigned char b[2];
- +# lseek (fd, offset, SEEK_SET);
- +# read (fd, b, 2);
- +# return b[0] + (b[1]<<8);
- +# }
- +#
- +# static unsigned int
- +# pe_get32 (fd, offset)
- +# int fd;
- +# int offset;
- +# {
- +# unsigned char b[4];
- +# lseek (fd, offset, SEEK_SET);
- +# read (fd, b, 4);
- +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- +# }
- +#
- +# static unsigned int
- +# pe_as32 (ptr)
- +# void *ptr;
- +# {
- +# unsigned char *b = ptr;
- +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- +# }
- +#
- +# int
- +# main (argc, argv)
- +# int argc;
- +# char *argv[];
- +# {
- +# int dll;
- +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
- +# unsigned long export_rva, export_size, nsections, secptr, expptr;
- +# unsigned long name_rvas, nexp;
- +# unsigned char *expdata, *erva;
- +# char *filename, *dll_name;
- +#
- +# filename = argv[1];
- +#
- +# dll = open(filename, O_RDONLY|O_BINARY);
- +# if (dll < 1)
- +# return 1;
- +#
- +# dll_name = filename;
- +#
- +# for (i=0; filename[i]; i++)
- +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
- +# dll_name = filename + i +1;
- +#
- +# pe_header_offset = pe_get32 (dll, 0x3c);
- +# opthdr_ofs = pe_header_offset + 4 + 20;
- +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
- #
- +# if (num_entries < 1) /* no exports */
- +# return 1;
- +#
- +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
- +# export_size = pe_get32 (dll, opthdr_ofs + 100);
- +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
- +# secptr = (pe_header_offset + 4 + 20 +
- +# pe_get16 (dll, pe_header_offset + 4 + 16));
- +#
- +# expptr = 0;
- +# for (i = 0; i < nsections; i++)
- +# {
- +# char sname[8];
- +# unsigned long secptr1 = secptr + 40 * i;
- +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
- +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
- +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
- +# lseek(dll, secptr1, SEEK_SET);
- +# read(dll, sname, 8);
- +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
- +# {
- +# expptr = fptr + (export_rva - vaddr);
- +# if (export_rva + export_size > vaddr + vsize)
- +# export_size = vsize - (export_rva - vaddr);
- +# break;
- +# }
- +# }
- +#
- +# expdata = (unsigned char*)malloc(export_size);
- +# lseek (dll, expptr, SEEK_SET);
- +# read (dll, expdata, export_size);
- +# erva = expdata - export_rva;
- +#
- +# nexp = pe_as32 (expdata+24);
- +# name_rvas = pe_as32 (expdata+32);
- +#
- +# printf ("EXPORTS\n");
- +# for (i = 0; i<nexp; i++)
- +# {
- +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
- +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
- +# }
- +#
- +# return 0;
- +# }
- +# /* impgen.c ends here */
- +
- EOF
- -# The following way of writing the cache mishandles newlines in values,
- -# but we know of no workaround that is simple, portable, and efficient.
- -# So, don't put newlines in cache variables' values.
- -# Ultrix sh set writes to stderr and can't be redirected directly,
- -# and sets the high bit in the cache file unless we assign to the vars.
- -(set) 2>&1 |
- - case `(ac_space=' '; set | grep ac_space) 2>&1` in
- - *ac_space=\ *)
- - # `set' does not quote correctly, so add quotes (double-quote substitution
- - # turns \\\\ into \\, and sed turns \\ into \).
- - sed -n \
- - -e "s/'/'\\\\''/g" \
- - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- - ;;
- - *)
- - # `set' quotes correctly as required by POSIX, so do not add quotes.
- - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- - esac >> confcache
- -if cmp -s $cache_file confcache; then
- - :
- -else
- - if test -w $cache_file; then
- - echo "updating cache $cache_file"
- - cat confcache > $cache_file
- - else
- - echo "not updating unwritable cache $cache_file"
- - fi
- + esac
- +
- + # We use sed instead of cat because bash on DJGPP gets confused if
- + # if finds mixed CR/LF and LF-only lines. Since sed operates in
- + # text mode, it properly converts lines to CR/LF. This bash problem
- + # is reportedly fixed, but why not run on old versions too?
- + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
- +
- + mv -f "${ofile}T" "$ofile" || \
- + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
- + chmod +x "$ofile"
- fi
- -rm -f confcache
-
-
- -# Actually configure libtool. ac_aux_dir is where install-sh is found.
- -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
- -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
- -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
- -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
- -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
- -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
- -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
-
- -# Reload cache, that may have been modified by ltconfig
- -if test -r "$cache_file"; then
- - echo "loading cache $cache_file"
- - . $cache_file
- -else
- - echo "creating cache $cache_file"
- - > $cache_file
- -fi
-
-
- # This can be used to rebuild libtool when needed
- -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
- +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-
- -# Redirect the config.log output again, so that the ltconfig log is not
- -# clobbered by the next message.
- -exec 5>>./config.log
- +# Prevent multiple expansion
- +
-
-
- echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
- -echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5
- +echo "configure:5479: checking whether to enable maintainer-specific portions of Makefiles" >&5
- # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
- if test "${enable_maintainer_mode+set}" = set; then
- enableval="$enable_maintainer_mode"
- @@ -1579,7 +5505,7 @@
- fi
-
- echo $ac_n "checking host system type""... $ac_c" 1>&6
- -echo "configure:1583: checking host system type" >&5
- +echo "configure:5509: checking host system type" >&5
-
- host_alias=$host
- case "$host_alias" in
- @@ -1649,7 +5575,7 @@
- mem_warn=false
-
- echo $ac_n "checking whether to enable memory checking""... $ac_c" 1>&6
- -echo "configure:1653: checking whether to enable memory checking" >&5
- +echo "configure:5579: checking whether to enable memory checking" >&5
- if test "x$enable_mem_check" = "xyes"; then
- cat >> confdefs.h <<\EOF
- #define ENABLE_MEM_CHECK 1
- @@ -1663,7 +5589,7 @@
- fi
-
- echo $ac_n "checking whether to enable memory profiling""... $ac_c" 1>&6
- -echo "configure:1667: checking whether to enable memory profiling" >&5
- +echo "configure:5593: checking whether to enable memory profiling" >&5
- if test "x$enable_mem_profile" = "xyes"; then
- cat >> confdefs.h <<\EOF
- #define ENABLE_MEM_PROFILE 1
- @@ -1711,7 +5637,7 @@
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1715: checking for $ac_word" >&5
- +echo "configure:5641: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1741,7 +5667,7 @@
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1745: checking for $ac_word" >&5
- +echo "configure:5671: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1792,7 +5718,7 @@
- # Extract the first word of "cl", so it can be a program name with args.
- set dummy cl; ac_word=$2
- echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
- -echo "configure:1796: checking for $ac_word" >&5
- +echo "configure:5722: checking for $ac_word" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1824,7 +5750,7 @@
- fi
-
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
- -echo "configure:1828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
- +echo "configure:5754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
-
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- @@ -1835,12 +5761,12 @@
-
- cat > conftest.$ac_ext << EOF
-
- -#line 1839 "configure"
- +#line 5765 "configure"
- #include "confdefs.h"
-
- main(){return(0);}
- EOF
- -if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- ac_cv_prog_cc_works=yes
- # If we can't run a trivial program, we are probably using a cross compiler.
- if (./conftest; exit) 2>/dev/null; then
- @@ -1866,12 +5792,12 @@
- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
- fi
- echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
- -echo "configure:1870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- +echo "configure:5796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
- echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
- cross_compiling=$ac_cv_prog_cc_cross
-
- echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
- -echo "configure:1875: checking whether we are using GNU C" >&5
- +echo "configure:5801: checking whether we are using GNU C" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1880,7 +5806,7 @@
- yes;
- #endif
- EOF
- -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- ac_cv_prog_gcc=yes
- else
- ac_cv_prog_gcc=no
- @@ -1899,7 +5825,7 @@
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
- -echo "configure:1903: checking whether ${CC-cc} accepts -g" >&5
- +echo "configure:5829: checking whether ${CC-cc} accepts -g" >&5
- if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1934,7 +5860,7 @@
-
-
- echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
- -echo "configure:1938: checking for ${CC-cc} option to accept ANSI C" >&5
- +echo "configure:5864: checking for ${CC-cc} option to accept ANSI C" >&5
- if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -1950,7 +5876,7 @@
- do
- CC="$ac_save_CC $ac_arg"
- cat > conftest.$ac_ext <<EOF
- -#line 1954 "configure"
- +#line 5880 "configure"
- #include "confdefs.h"
- #include <stdarg.h>
- #include <stdio.h>
- @@ -1987,7 +5913,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- am_cv_prog_cc_stdc="$ac_arg"; break
- else
- @@ -2022,7 +5948,7 @@
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # ./install, which can be erroneously created by make from ./install.sh.
- echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
- -echo "configure:2026: checking for a BSD compatible install" >&5
- +echo "configure:5952: checking for a BSD compatible install" >&5
- if test -z "$INSTALL"; then
- if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -2095,19 +6021,19 @@
- fi
-
- echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
- -echo "configure:2099: checking for extra flags to get ANSI library prototypes" >&5
- +echo "configure:6025: checking for extra flags to get ANSI library prototypes" >&5
- glib_save_LIBS=$LIBS
- LIBS="$LIBS -lm"
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2106 "configure"
- +#line 6032 "configure"
- #include "confdefs.h"
- #include <math.h>
- int main (void) { return (log(1) != log(1.)); }
- EOF
- -if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""none needed" 1>&6
- else
- @@ -2120,12 +6046,12 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2124 "configure"
- +#line 6050 "configure"
- #include "confdefs.h"
- #include <math.h>
- int main (void) { return (log(1) != log(1.)); }
- EOF
- -if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""-std1" 1>&6
- else
- @@ -2148,16 +6074,16 @@
- LIBS=$glib_save_LIBS
-
- echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
- -echo "configure:2152: checking for extra flags for POSIX compliance" >&5
- +echo "configure:6078: checking for extra flags for POSIX compliance" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 2154 "configure"
- +#line 6080 "configure"
- #include "confdefs.h"
- #include <dirent.h>
- int main() {
- DIR *dir;
- ; return 0; }
- EOF
- -if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""none needed" 1>&6
- else
- @@ -2167,14 +6093,14 @@
- glib_save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -posix"
- cat > conftest.$ac_ext <<EOF
- -#line 2171 "configure"
- +#line 6097 "configure"
- #include "confdefs.h"
- #include <dirent.h>
- int main() {
- DIR *dir;
- ; return 0; }
- EOF
- -if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""-posix" 1>&6
- else
- @@ -2190,93 +6116,13 @@
- rm -f conftest*
-
- # Checks for header files.
- -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
- -echo "configure:2195: checking how to run the C preprocessor" >&5
- -# On Suns, sometimes $CPP names a directory.
- -if test -n "$CPP" && test -d "$CPP"; then
- - CPP=
- -fi
- -if test -z "$CPP"; then
- -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
- - echo $ac_n "(cached) $ac_c" 1>&6
- -else
- - # This must be in double quotes, not single quotes, because CPP may get
- - # substituted into the Makefile and "${CC-cc}" will confuse make.
- - CPP="${CC-cc} -E"
- - # On the NeXT, cc -E runs the code through the compiler's parser,
- - # not just through cpp.
- - cat > conftest.$ac_ext <<EOF
- -#line 2210 "configure"
- -#include "confdefs.h"
- -#include <assert.h>
- -Syntax Error
- -EOF
- -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- -if test -z "$ac_err"; then
- - :
- -else
- - echo "$ac_err" >&5
- - echo "configure: failed program was:" >&5
- - cat conftest.$ac_ext >&5
- - rm -rf conftest*
- - CPP="${CC-cc} -E -traditional-cpp"
- - cat > conftest.$ac_ext <<EOF
- -#line 2227 "configure"
- -#include "confdefs.h"
- -#include <assert.h>
- -Syntax Error
- -EOF
- -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- -if test -z "$ac_err"; then
- - :
- -else
- - echo "$ac_err" >&5
- - echo "configure: failed program was:" >&5
- - cat conftest.$ac_ext >&5
- - rm -rf conftest*
- - CPP="${CC-cc} -nologo -E"
- - cat > conftest.$ac_ext <<EOF
- -#line 2244 "configure"
- -#include "confdefs.h"
- -#include <assert.h>
- -Syntax Error
- -EOF
- -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- -if test -z "$ac_err"; then
- - :
- -else
- - echo "$ac_err" >&5
- - echo "configure: failed program was:" >&5
- - cat conftest.$ac_ext >&5
- - rm -rf conftest*
- - CPP=/lib/cpp
- -fi
- -rm -f conftest*
- -fi
- -rm -f conftest*
- -fi
- -rm -f conftest*
- - ac_cv_prog_CPP="$CPP"
- -fi
- - CPP="$ac_cv_prog_CPP"
- -else
- - ac_cv_prog_CPP="$CPP"
- -fi
- -echo "$ac_t""$CPP" 1>&6
- -
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- -echo "configure:2275: checking for ANSI C header files" >&5
- +echo "configure:6121: checking for ANSI C header files" >&5
- if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2280 "configure"
- +#line 6126 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- @@ -2284,7 +6130,7 @@
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -2301,7 +6147,7 @@
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- -#line 2305 "configure"
- +#line 6151 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- @@ -2319,7 +6165,7 @@
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- -#line 2323 "configure"
- +#line 6169 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- @@ -2340,7 +6186,7 @@
- :
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2344 "configure"
- +#line 6190 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- @@ -2351,7 +6197,7 @@
- exit (0); }
-
- EOF
- -if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- @@ -2377,12 +6223,12 @@
-
- # Checks for library functions.
- echo $ac_n "checking for vprintf""... $ac_c" 1>&6
- -echo "configure:2381: checking for vprintf" >&5
- +echo "configure:6227: checking for vprintf" >&5
- if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2386 "configure"
- +#line 6232 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char vprintf(); below. */
- @@ -2405,7 +6251,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_vprintf=yes"
- else
- @@ -2429,12 +6275,12 @@
-
- if test "$ac_cv_func_vprintf" != yes; then
- echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
- -echo "configure:2433: checking for _doprnt" >&5
- +echo "configure:6279: checking for _doprnt" >&5
- if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2438 "configure"
- +#line 6284 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char _doprnt(); below. */
- @@ -2457,7 +6303,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func__doprnt=yes"
- else
- @@ -2485,12 +6331,12 @@
- for ac_func in atexit on_exit
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- -echo "configure:2489: checking for $ac_func" >&5
- +echo "configure:6335: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2494 "configure"
- +#line 6340 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- @@ -2513,7 +6359,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- @@ -2539,7 +6385,7 @@
-
-
- echo $ac_n "checking size of char""... $ac_c" 1>&6
- -echo "configure:2543: checking size of char" >&5
- +echo "configure:6389: checking size of char" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2547,9 +6393,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2551 "configure"
- +#line 6397 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2558,7 +6405,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_char=`cat conftestval`
- else
- @@ -2578,7 +6425,7 @@
-
-
- echo $ac_n "checking size of short""... $ac_c" 1>&6
- -echo "configure:2582: checking size of short" >&5
- +echo "configure:6429: checking size of short" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2586,9 +6433,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2590 "configure"
- +#line 6437 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2597,7 +6445,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_short=`cat conftestval`
- else
- @@ -2617,7 +6465,7 @@
-
-
- echo $ac_n "checking size of long""... $ac_c" 1>&6
- -echo "configure:2621: checking size of long" >&5
- +echo "configure:6469: checking size of long" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2625,9 +6473,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2629 "configure"
- +#line 6477 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2636,7 +6485,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long=`cat conftestval`
- else
- @@ -2656,7 +6505,7 @@
-
-
- echo $ac_n "checking size of int""... $ac_c" 1>&6
- -echo "configure:2660: checking size of int" >&5
- +echo "configure:6509: checking size of int" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2664,9 +6513,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2668 "configure"
- +#line 6517 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2675,7 +6525,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_int=`cat conftestval`
- else
- @@ -2695,7 +6545,7 @@
-
-
- echo $ac_n "checking size of void *""... $ac_c" 1>&6
- -echo "configure:2699: checking size of void *" >&5
- +echo "configure:6549: checking size of void *" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2703,9 +6553,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2707 "configure"
- +#line 6557 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2714,7 +6565,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_void_p=`cat conftestval`
- else
- @@ -2734,7 +6585,7 @@
-
-
- echo $ac_n "checking size of long long""... $ac_c" 1>&6
- -echo "configure:2738: checking size of long long" >&5
- +echo "configure:6589: checking size of long long" >&5
- if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2742,9 +6593,10 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2746 "configure"
- +#line 6597 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- +#include <sys/types.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- @@ -2753,7 +6605,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long_long=`cat conftestval`
- else
- @@ -2774,12 +6626,12 @@
-
-
- echo $ac_n "checking for working const""... $ac_c" 1>&6
- -echo "configure:2778: checking for working const" >&5
- +echo "configure:6630: checking for working const" >&5
- if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2783 "configure"
- +#line 6635 "configure"
- #include "confdefs.h"
-
- int main() {
- @@ -2828,7 +6680,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:6684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
- else
- @@ -2850,7 +6702,7 @@
-
-
- echo $ac_n "checking for __inline""... $ac_c" 1>&6
- -echo "configure:2854: checking for __inline" >&5
- +echo "configure:6706: checking for __inline" >&5
- if eval "test \"`echo '$''{'glib_cv_has__inline'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2859,14 +6711,14 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2863 "configure"
- +#line 6715 "configure"
- #include "confdefs.h"
-
- __inline int foo () { return 0; }
- int main () { return foo (); }
-
- EOF
- -if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_has__inline=yes
-
- @@ -2891,7 +6743,7 @@
-
- esac
- echo $ac_n "checking for __inline__""... $ac_c" 1>&6
- -echo "configure:2895: checking for __inline__" >&5
- +echo "configure:6747: checking for __inline__" >&5
- if eval "test \"`echo '$''{'glib_cv_has__inline__'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2900,14 +6752,14 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2904 "configure"
- +#line 6756 "configure"
- #include "confdefs.h"
-
- __inline__ int foo () { return 0; }
- int main () { return foo (); }
-
- EOF
- -if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_has__inline__=yes
-
- @@ -2932,7 +6784,7 @@
-
- esac
- echo $ac_n "checking for inline""... $ac_c" 1>&6
- -echo "configure:2936: checking for inline" >&5
- +echo "configure:6788: checking for inline" >&5
- if eval "test \"`echo '$''{'glib_cv_hasinline'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -2941,14 +6793,14 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 2945 "configure"
- +#line 6797 "configure"
- #include "confdefs.h"
-
- inline int foo () { return 0; }
- int main () { return foo (); }
-
- EOF
- -if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_hasinline=yes
-
- @@ -2974,14 +6826,14 @@
- esac
-
- echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
- -echo "configure:2978: checking whether byte ordering is bigendian" >&5
- +echo "configure:6830: checking whether byte ordering is bigendian" >&5
- if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_c_bigendian=unknown
- # See if sys/param.h defines the BYTE_ORDER macro.
- cat > conftest.$ac_ext <<EOF
- -#line 2985 "configure"
- +#line 6837 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/param.h>
- @@ -2992,11 +6844,11 @@
- #endif
- ; return 0; }
- EOF
- -if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- # It does; now see whether it defined to BIG_ENDIAN or not.
- cat > conftest.$ac_ext <<EOF
- -#line 3000 "configure"
- +#line 6852 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/param.h>
- @@ -3007,7 +6859,7 @@
- #endif
- ; return 0; }
- EOF
- -if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:6863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_bigendian=yes
- else
- @@ -3027,7 +6879,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3031 "configure"
- +#line 6883 "configure"
- #include "confdefs.h"
- main () {
- /* Are we little or big endian? From Harbison&Steele. */
- @@ -3040,7 +6892,7 @@
- exit (u.c[sizeof (long) - 1] == 1);
- }
- EOF
- -if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_bigendian=no
- else
- @@ -3068,17 +6920,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3072: checking for $ac_hdr" >&5
- +echo "configure:6924: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3077 "configure"
- +#line 6929 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:6934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3111,17 +6963,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3115: checking for $ac_hdr" >&5
- +echo "configure:6967: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3120 "configure"
- +#line 6972 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:6977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3154,17 +7006,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3158: checking for $ac_hdr" >&5
- +echo "configure:7010: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3163 "configure"
- +#line 7015 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3197,17 +7049,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3201: checking for $ac_hdr" >&5
- +echo "configure:7053: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3206 "configure"
- +#line 7058 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3240,17 +7092,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3244: checking for $ac_hdr" >&5
- +echo "configure:7096: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3249 "configure"
- +#line 7101 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3283,17 +7135,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3287: checking for $ac_hdr" >&5
- +echo "configure:7139: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3292 "configure"
- +#line 7144 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3326,17 +7178,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3330: checking for $ac_hdr" >&5
- +echo "configure:7182: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3335 "configure"
- +#line 7187 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3369,17 +7221,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3373: checking for $ac_hdr" >&5
- +echo "configure:7225: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3378 "configure"
- +#line 7230 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3412,17 +7264,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3416: checking for $ac_hdr" >&5
- +echo "configure:7268: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3421 "configure"
- +#line 7273 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3455,17 +7307,17 @@
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- -echo "configure:3459: checking for $ac_hdr" >&5
- +echo "configure:7311: checking for $ac_hdr" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3464 "configure"
- +#line 7316 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3499,12 +7351,12 @@
- for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- -echo "configure:3503: checking for $ac_func" >&5
- +echo "configure:7355: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3508 "configure"
- +#line 7360 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- @@ -3527,7 +7379,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- @@ -3554,9 +7406,9 @@
-
- # Check for sys_errlist
- echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
- -echo "configure:3558: checking for sys_errlist" >&5
- +echo "configure:7410: checking for sys_errlist" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3560 "configure"
- +#line 7412 "configure"
- #include "confdefs.h"
-
- int main() {
- @@ -3567,7 +7419,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- glib_ok=yes
- else
- @@ -3587,9 +7439,9 @@
-
- # Check for sys_siglist
- echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
- -echo "configure:3591: checking for sys_siglist" >&5
- +echo "configure:7443: checking for sys_siglist" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3593 "configure"
- +#line 7445 "configure"
- #include "confdefs.h"
-
- int main() {
- @@ -3599,7 +7451,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- glib_ok=yes
- else
- @@ -3619,9 +7471,9 @@
-
- # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
- echo $ac_n "checking for sys_siglist declaration""... $ac_c" 1>&6
- -echo "configure:3623: checking for sys_siglist declaration" >&5
- +echo "configure:7475: checking for sys_siglist declaration" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3625 "configure"
- +#line 7477 "configure"
- #include "confdefs.h"
- #include <signal.h>
- int main() {
- @@ -3630,7 +7482,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:7486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- glib_ok=yes
- else
- @@ -3650,16 +7502,16 @@
-
- # Check if <sys/select.h> needs to be included for fd_set
- echo $ac_n "checking for fd_set""... $ac_c" 1>&6
- -echo "configure:3654: checking for fd_set" >&5
- +echo "configure:7506: checking for fd_set" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3656 "configure"
- +#line 7508 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- int main() {
- fd_set readMask, writeMask;
- ; return 0; }
- EOF
- -if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:7515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- gtk_ok=yes
- else
- @@ -3673,7 +7525,7 @@
- echo "$ac_t""yes, found in sys/types.h" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3677 "configure"
- +#line 7529 "configure"
- #include "confdefs.h"
- #include <sys/select.h>
- EOF
- @@ -3707,14 +7559,14 @@
- # Check for wchar.h
-
- echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
- -echo "configure:3711: checking for wchar.h" >&5
- +echo "configure:7563: checking for wchar.h" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3713 "configure"
- +#line 7565 "configure"
- #include "confdefs.h"
- #include <wchar.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3738,14 +7590,14 @@
- # Check for wctype.h (for iswalnum)
-
- echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
- -echo "configure:3742: checking for wctype.h" >&5
- +echo "configure:7594: checking for wctype.h" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3744 "configure"
- +#line 7596 "configure"
- #include "confdefs.h"
- #include <wctype.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:7601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -3769,12 +7621,12 @@
- oLIBS="$LIBS"
- # in Solaris 2.5, `iswalnum' is in -lw
- echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
- -echo "configure:3773: checking for iswalnum" >&5
- +echo "configure:7625: checking for iswalnum" >&5
- if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3778 "configure"
- +#line 7630 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char iswalnum(); below. */
- @@ -3797,7 +7649,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_iswalnum=yes"
- else
- @@ -3815,7 +7667,7 @@
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
- -echo "configure:3819: checking for iswalnum in -lw" >&5
- +echo "configure:7671: checking for iswalnum in -lw" >&5
- ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -3823,7 +7675,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lw $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 3827 "configure"
- +#line 7679 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -3834,7 +7686,7 @@
- iswalnum()
- ; return 0; }
- EOF
- -if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -3866,9 +7718,9 @@
-
- # The following is necessary for Linux libc-5.4.38
- echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
- -echo "configure:3870: checking if iswalnum() and friends are properly defined" >&5
- +echo "configure:7722: checking if iswalnum() and friends are properly defined" >&5
- cat > conftest.$ac_ext <<EOF
- -#line 3872 "configure"
- +#line 7724 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- int main() {
- @@ -3888,7 +7740,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- glib_working_wctype=yes
- else
- @@ -3909,7 +7761,7 @@
- echo "$ac_t""$glib_working_wctype" 1>&6
-
- echo $ac_n "checking whether realloc (NULL,) will work""... $ac_c" 1>&6
- -echo "configure:3913: checking whether realloc (NULL,) will work" >&5
- +echo "configure:7765: checking whether realloc (NULL,) will work" >&5
- if eval "test \"`echo '$''{'glib_cv_sane_realloc'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -3918,7 +7770,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3922 "configure"
- +#line 7774 "configure"
- #include "confdefs.h"
-
- #include <stdlib.h>
- @@ -3926,7 +7778,7 @@
- return realloc (0, sizeof (int)) == 0;
- }
- EOF
- -if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_sane_realloc=yes
- cat >> confdefs.h <<\EOF
- @@ -3951,7 +7803,7 @@
-
-
- echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
- -echo "configure:3955: checking for an implementation of va_copy()" >&5
- +echo "configure:7807: checking for an implementation of va_copy()" >&5
- if eval "test \"`echo '$''{'glib_cv_va_copy'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -3960,7 +7812,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 3964 "configure"
- +#line 7816 "configure"
- #include "confdefs.h"
-
- #include <stdarg.h>
- @@ -3977,7 +7829,7 @@
- return 0;
- }
- EOF
- -if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_va_copy=yes
-
- @@ -3996,7 +7848,7 @@
-
- echo "$ac_t""$glib_cv_va_copy" 1>&6
- echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
- -echo "configure:4000: checking for an implementation of __va_copy()" >&5
- +echo "configure:7852: checking for an implementation of __va_copy()" >&5
- if eval "test \"`echo '$''{'glib_cv___va_copy'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -4005,7 +7857,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4009 "configure"
- +#line 7861 "configure"
- #include "confdefs.h"
-
- #include <stdarg.h>
- @@ -4022,7 +7874,7 @@
- return 0;
- }
- EOF
- -if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv___va_copy=yes
-
- @@ -4041,7 +7893,7 @@
-
- echo "$ac_t""$glib_cv___va_copy" 1>&6
- echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
- -echo "configure:4045: checking whether va_lists can be copied by value" >&5
- +echo "configure:7897: checking whether va_lists can be copied by value" >&5
- if eval "test \"`echo '$''{'glib_cv_va_val_copy'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -4050,7 +7902,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4054 "configure"
- +#line 7906 "configure"
- #include "confdefs.h"
-
- #include <stdarg.h>
- @@ -4067,7 +7919,7 @@
- return 0;
- }
- EOF
- -if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_va_val_copy=yes
-
- @@ -4112,12 +7964,12 @@
- G_MODULE_HAVE_DLERROR=0
- if test -z "$G_MODULE_IMPL"; then
- echo $ac_n "checking for dlopen""... $ac_c" 1>&6
- -echo "configure:4116: checking for dlopen" >&5
- +echo "configure:7968: checking for dlopen" >&5
- if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4121 "configure"
- +#line 7973 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlopen(); below. */
- @@ -4140,7 +7992,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlopen=yes"
- else
- @@ -4155,12 +8007,12 @@
- if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for dlsym""... $ac_c" 1>&6
- -echo "configure:4159: checking for dlsym" >&5
- +echo "configure:8011: checking for dlsym" >&5
- if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4164 "configure"
- +#line 8016 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlsym(); below. */
- @@ -4183,7 +8035,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlsym=yes"
- else
- @@ -4211,7 +8063,7 @@
- fi
- if test -z "$G_MODULE_IMPL"; then
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
- -echo "configure:4215: checking for dlopen in -ldl" >&5
- +echo "configure:8067: checking for dlopen in -ldl" >&5
- ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4219,7 +8071,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4223 "configure"
- +#line 8075 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4230,7 +8082,7 @@
- dlopen()
- ; return 0; }
- EOF
- -if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4246,7 +8098,7 @@
- if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
- -echo "configure:4250: checking for dlsym in -ldl" >&5
- +echo "configure:8102: checking for dlsym in -ldl" >&5
- ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4254,7 +8106,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4258 "configure"
- +#line 8110 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4265,7 +8117,7 @@
- dlsym()
- ; return 0; }
- EOF
- -if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4295,18 +8147,18 @@
- fi
- if test -z "$G_MODULE_IMPL"; then
- echo $ac_n "checking how to export all symbols""... $ac_c" 1>&6
- -echo "configure:4299: checking how to export all symbols" >&5
- +echo "configure:8151: checking how to export all symbols" >&5
- SAVED_LDFLAGS=$LDFLAGS
- LDFLAGS="$LDFLAGS -Wl,-E"
- cat > conftest.$ac_ext <<EOF
- -#line 4303 "configure"
- +#line 8155 "configure"
- #include "confdefs.h"
-
- int main() {
- return 0;
- ; return 0; }
- EOF
- -if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- G_MODULE_LDFLAGS="-Wl,-E"
- else
- @@ -4316,14 +8168,14 @@
-
- LDFLAGS="$SAVED_LDFLAGS -bexpall"
- cat > conftest.$ac_ext <<EOF
- -#line 4320 "configure"
- +#line 8172 "configure"
- #include "confdefs.h"
-
- int main() {
- return 0;
- ; return 0; }
- EOF
- -if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- G_MODULE_LDFLAGS="-bexpall"
- else
- @@ -4343,7 +8195,7 @@
- G_MODULE_LDFLAGS=
- fi
- echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
- -echo "configure:4347: checking for shl_load in -ldld" >&5
- +echo "configure:8199: checking for shl_load in -ldld" >&5
- ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4351,7 +8203,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-ldld $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4355 "configure"
- +#line 8207 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4362,7 +8214,7 @@
- shl_load()
- ; return 0; }
- EOF
- -if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4396,7 +8248,7 @@
- LIBS="$LIBS $G_MODULE_LIBS"
- LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
- echo $ac_n "checking for RTLD_GLOBAL brokenness""... $ac_c" 1>&6
- -echo "configure:4400: checking for RTLD_GLOBAL brokenness" >&5
- +echo "configure:8252: checking for RTLD_GLOBAL brokenness" >&5
- if eval "test \"`echo '$''{'glib_cv_rtldglobal_broken'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -4405,7 +8257,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4409 "configure"
- +#line 8261 "configure"
- #include "confdefs.h"
-
- #include <dlfcn.h>
- @@ -4425,7 +8277,7 @@
- return global == local;
- }
- EOF
- -if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_rtldglobal_broken=no
- else
- @@ -4448,7 +8300,7 @@
- G_MODULE_BROKEN_RTLD_GLOBAL=0
- fi
- echo $ac_n "checking for preceeding underscore in symbols""... $ac_c" 1>&6
- -echo "configure:4452: checking for preceeding underscore in symbols" >&5
- +echo "configure:8304: checking for preceeding underscore in symbols" >&5
- if eval "test \"`echo '$''{'glib_cv_uscore'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -4457,7 +8309,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4461 "configure"
- +#line 8313 "configure"
- #include "confdefs.h"
-
- #include <dlfcn.h>
- @@ -4471,7 +8323,7 @@
- } return (!f2 || f1);
- }
- EOF
- -if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_uscore=yes
- else
- @@ -4496,12 +8348,12 @@
-
- LDFLAGS="$LDFLAGS_orig"
- echo $ac_n "checking for dlerror""... $ac_c" 1>&6
- -echo "configure:4500: checking for dlerror" >&5
- +echo "configure:8352: checking for dlerror" >&5
- if eval "test \"`echo '$''{'ac_cv_func_dlerror'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4505 "configure"
- +#line 8357 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlerror(); below. */
- @@ -4524,7 +8376,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlerror=yes"
- else
- @@ -4608,7 +8460,7 @@
- case $host in
- *-*-solaris*)
- echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
- -echo "configure:4612: checking for cond_init in -lthread" >&5
- +echo "configure:8464: checking for cond_init in -lthread" >&5
- ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4616,7 +8468,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4620 "configure"
- +#line 8472 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4627,7 +8479,7 @@
- cond_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4654,17 +8506,17 @@
- if test "x$have_threads" = xnone; then
- ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
- -echo "configure:4658: checking for pthread.h" >&5
- +echo "configure:8510: checking for pthread.h" >&5
- if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4663 "configure"
- +#line 8515 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- -{ (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- +{ (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- @@ -4690,7 +8542,7 @@
- if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
- if test "x$have_threads" = xnone; then
- echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
- -echo "configure:4694: checking for PRP_NewNakedCondVar in -lnspr21" >&5
- +echo "configure:8546: checking for PRP_NewNakedCondVar in -lnspr21" >&5
- ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4698,7 +8550,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lnspr21 $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4702 "configure"
- +#line 8554 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4709,7 +8561,7 @@
- PRP_NewNakedCondVar()
- ; return 0; }
- EOF
- -if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4733,7 +8585,7 @@
- fi
-
- echo $ac_n "checking for thread implementation""... $ac_c" 1>&6
- -echo "configure:4737: checking for thread implementation" >&5
- +echo "configure:8589: checking for thread implementation" >&5
-
- if test "x$have_threads" = xnone && test "x$want_threads" != xno; then
- echo "$ac_t""none available" 1>&6
- @@ -4752,7 +8604,7 @@
- posix)
- G_THREAD_LIBS=error
- echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
- -echo "configure:4756: checking for pthread_attr_init in -lpthread" >&5
- +echo "configure:8608: checking for pthread_attr_init in -lpthread" >&5
- ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4760,7 +8612,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4764 "configure"
- +#line 8616 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4771,7 +8623,7 @@
- pthread_attr_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4793,7 +8645,7 @@
-
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
- -echo "configure:4797: checking for pthread_attr_init in -lpthreads" >&5
- +echo "configure:8649: checking for pthread_attr_init in -lpthreads" >&5
- ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4801,7 +8653,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lpthreads $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4805 "configure"
- +#line 8657 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4812,7 +8664,7 @@
- pthread_attr_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4835,7 +8687,7 @@
- fi
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init in -lthread""... $ac_c" 1>&6
- -echo "configure:4839: checking for pthread_attr_init in -lthread" >&5
- +echo "configure:8691: checking for pthread_attr_init in -lthread" >&5
- ac_lib_var=`echo thread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4843,7 +8695,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4847 "configure"
- +#line 8699 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4854,7 +8706,7 @@
- pthread_attr_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4877,7 +8729,7 @@
- fi
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
- -echo "configure:4881: checking for pthread_attr_init in -lc_r" >&5
- +echo "configure:8733: checking for pthread_attr_init in -lc_r" >&5
- ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4885,7 +8737,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lc_r $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4889 "configure"
- +#line 8741 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4896,7 +8748,7 @@
- pthread_attr_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -4919,12 +8771,12 @@
- fi
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
- -echo "configure:4923: checking for pthread_attr_init" >&5
- +echo "configure:8775: checking for pthread_attr_init" >&5
- if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 4928 "configure"
- +#line 8780 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_attr_init(); below. */
- @@ -4947,7 +8799,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_pthread_attr_init=yes"
- else
- @@ -4969,7 +8821,7 @@
- fi
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for __d10_pthread_attr_init in -lthread""... $ac_c" 1>&6
- -echo "configure:4973: checking for __d10_pthread_attr_init in -lthread" >&5
- +echo "configure:8825: checking for __d10_pthread_attr_init in -lthread" >&5
- ac_lib_var=`echo thread'_'__d10_pthread_attr_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -4977,7 +8829,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 4981 "configure"
- +#line 8833 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -4988,7 +8840,7 @@
- __d10_pthread_attr_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -5012,7 +8864,7 @@
- fi
- if test "x$G_THREAD_LIBS" = xerror; then
- echo $ac_n "checking for __pthread_attr_init_system in -lpthread""... $ac_c" 1>&6
- -echo "configure:5016: checking for __pthread_attr_init_system in -lpthread" >&5
- +echo "configure:8868: checking for __pthread_attr_init_system in -lpthread" >&5
- ac_lib_var=`echo pthread'_'__pthread_attr_init_system | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -5020,7 +8872,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 5024 "configure"
- +#line 8876 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -5031,7 +8883,7 @@
- __pthread_attr_init_system()
- ; return 0; }
- EOF
- -if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -5061,7 +8913,7 @@
- solaris)
- G_THREAD_LIBS=error
- echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
- -echo "configure:5065: checking for cond_init in -lthread" >&5
- +echo "configure:8917: checking for cond_init in -lthread" >&5
- ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -5069,7 +8921,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 5073 "configure"
- +#line 8925 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -5080,7 +8932,7 @@
- cond_init()
- ; return 0; }
- EOF
- -if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -5108,7 +8960,7 @@
- ;;
- nspr)
- echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
- -echo "configure:5112: checking for PRP_NewNakedCondVar in -lnspr21" >&5
- +echo "configure:8964: checking for PRP_NewNakedCondVar in -lnspr21" >&5
- ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
- if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- @@ -5116,7 +8968,7 @@
- ac_save_LIBS="$LIBS"
- LIBS="-lnspr21 $LIBS"
- cat > conftest.$ac_ext <<EOF
- -#line 5120 "configure"
- +#line 8972 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- @@ -5127,7 +8979,7 @@
- PRP_NewNakedCondVar()
- ; return 0; }
- EOF
- -if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- @@ -5163,7 +9015,7 @@
- fi
-
- echo $ac_n "checking necessary linker options""... $ac_c" 1>&6
- -echo "configure:5167: checking necessary linker options" >&5
- +echo "configure:9019: checking necessary linker options" >&5
- echo "$ac_t""$G_THREAD_LIBS" 1>&6
-
-
- @@ -5191,7 +9043,7 @@
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
- cat > conftest.$ac_ext <<EOF
- -#line 5195 "configure"
- +#line 9047 "configure"
- #include "confdefs.h"
- #include <time.h>
- EOF
- @@ -5208,7 +9060,7 @@
- CPPFLAGS=$old_CPPFLAGS
-
- echo $ac_n "checking necessary compiler options""... $ac_c" 1>&6
- -echo "configure:5212: checking necessary compiler options" >&5
- +echo "configure:9064: checking necessary compiler options" >&5
-
- echo "$ac_t""$G_THREAD_CFLAGS" 1>&6
- else
- @@ -5226,12 +9078,12 @@
- for ac_func in localtime_r rand_r
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- -echo "configure:5230: checking for $ac_func" >&5
- +echo "configure:9082: checking for $ac_func" >&5
- if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5235 "configure"
- +#line 9087 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- @@ -5254,7 +9106,7 @@
-
- ; return 0; }
- EOF
- -if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- +if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- @@ -5280,7 +9132,7 @@
-
- if test "$ac_cv_header_pwd_h" = "yes"; then
- echo $ac_n "checking for getpwuid_r""... $ac_c" 1>&6
- -echo "configure:5284: checking for getpwuid_r" >&5
- +echo "configure:9136: checking for getpwuid_r" >&5
- if eval "test \"`echo '$''{'ac_cv_func_getpwuid_r'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -5288,7 +9140,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5292 "configure"
- +#line 9144 "configure"
- #include "confdefs.h"
- #include <errno.h>
- int main () { char buffer[10000], *pointer;
- @@ -5300,7 +9152,7 @@
- sizeof (buffer), &pointer);
- return errno == ENOSYS || error == ENOSYS;}
- EOF
- -if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_func_getpwuid_r=yes
- else
- @@ -5325,11 +9177,11 @@
- fi
- if test "$ac_cv_func_getpwuid_r" = "yes"; then
- echo $ac_n "checking whether getpwuid_r is posix like""... $ac_c" 1>&6
- -echo "configure:5329: checking whether getpwuid_r is posix like" >&5
- +echo "configure:9181: checking whether getpwuid_r is posix like" >&5
- # The signature for the POSIX version is:
- # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
- cat > conftest.$ac_ext <<EOF
- -#line 5333 "configure"
- +#line 9185 "configure"
- #include "confdefs.h"
- #include <pwd.h>
- #include <sys/types.h>
- @@ -5338,7 +9190,7 @@
- getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
- ; return 0; }
- EOF
- -if { (eval echo configure:5342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- cat >> confdefs.h <<\EOF
- #define HAVE_GETPWUID_R_POSIX 1
- @@ -5357,17 +9209,17 @@
- if test x"$have_threads" = xposix; then
- LIBS="$LIBS $G_THREAD_LIBS"
- echo $ac_n "checking whether pthread_getspecific is posix like""... $ac_c" 1>&6
- -echo "configure:5361: checking whether pthread_getspecific is posix like" >&5
- +echo "configure:9213: checking whether pthread_getspecific is posix like" >&5
- # PCThreads has pthread_getspecific(pthread_key_t, void **);
- cat > conftest.$ac_ext <<EOF
- -#line 5364 "configure"
- +#line 9216 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main() {
- pthread_getspecific(0,NULL);
- ; return 0; }
- EOF
- -if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- +if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- else
- @@ -5382,20 +9234,20 @@
- fi
- rm -f conftest*
- echo $ac_n "checking whether pthread_mutex_trylock is posix like""... $ac_c" 1>&6
- -echo "configure:5386: checking whether pthread_mutex_trylock is posix like" >&5
- +echo "configure:9238: checking whether pthread_mutex_trylock is posix like" >&5
- # DCE Threads return 1 as success, posix 0. what a mess.
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5392 "configure"
- +#line 9244 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
- int main () {
- return !pthread_mutex_trylock (&mutex); }
- EOF
- -if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""no" 1>&6
- else
- @@ -5412,13 +9264,13 @@
- fi
-
- echo $ac_n "checking whether pthread_cond_timedwait is posix like""... $ac_c" 1>&6
- -echo "configure:5416: checking whether pthread_cond_timedwait is posix like" >&5
- +echo "configure:9268: checking whether pthread_cond_timedwait is posix like" >&5
- # DCE Threads return -1 as failure, posix ETIMEDOUT.
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5422 "configure"
- +#line 9274 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main () {
- @@ -5432,7 +9284,7 @@
- return pthread_cond_timedwait (&cond,&mutex,&tspec)
- != -1;}
- EOF
- -if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""no" 1>&6
- else
- @@ -5475,7 +9327,7 @@
- case "$mutex_has_default" in
- "yes")
- echo $ac_n "checking size of $mutex_default_type""... $ac_c" 1>&6
- -echo "configure:5479: checking size of $mutex_default_type" >&5
- +echo "configure:9331: checking size of $mutex_default_type" >&5
- if eval "test \"`echo '$''{'glib_cv_sizeof_gmutex'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -5483,7 +9335,7 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5487 "configure"
- +#line 9339 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <$mutex_header_file>
- @@ -5495,7 +9347,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_sizeof_gmutex=`cat conftestval`
- else
- @@ -5515,7 +9367,7 @@
-
-
- echo $ac_n "checking byte contents of $mutex_default_type""... $ac_c" 1>&6
- -echo "configure:5519: checking byte contents of $mutex_default_type" >&5
- +echo "configure:9371: checking byte contents of $mutex_default_type" >&5
- if eval "test \"`echo '$''{'glib_cv_byte_contents_gmutex'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- @@ -5523,7 +9375,7 @@
- glib_cv_byte_contents_gmutex=0
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5527 "configure"
- +#line 9379 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <$mutex_header_file>
- @@ -5540,7 +9392,7 @@
- exit(0);
- }
- EOF
- -if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- glib_cv_byte_contents_gmutex=`cat conftestval`
- else
- @@ -5576,7 +9428,7 @@
- glib_nl='\n'
- fi
- echo $ac_n "checking system definitions for $glib_sysdef_msg""... $ac_c" 1>&6
- -echo "configure:5580: checking system definitions for $glib_sysdef_msg" >&5
- +echo "configure:9432: checking system definitions for $glib_sysdef_msg" >&5
- cat >confrun.c <<_______EOF
- #include <stdio.h>
- #include <sys/types.h>
- @@ -5603,11 +9455,11 @@
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- -#line 5607 "configure"
- +#line 9459 "configure"
- #include "confdefs.h"
- `cat confrun.c`
- EOF
- -if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- +if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- echo "$ac_t""done" 1>&6
- else
- @@ -5813,16 +9665,20 @@
- s%@build_cpu@%$build_cpu%g
- s%@build_vendor@%$build_vendor%g
- s%@build_os@%$build_os%g
- -s%@RANLIB@%$RANLIB%g
- s%@CC@%$CC%g
- s%@LN_S@%$LN_S%g
- +s%@OBJEXT@%$OBJEXT%g
- +s%@EXEEXT@%$EXEEXT%g
- +s%@ECHO@%$ECHO%g
- +s%@RANLIB@%$RANLIB%g
- +s%@STRIP@%$STRIP%g
- +s%@CPP@%$CPP%g
- s%@LIBTOOL@%$LIBTOOL%g
- s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
- s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
- s%@MAINT@%$MAINT%g
- s%@ENABLE_MEM_CHECK@%$ENABLE_MEM_CHECK%g
- s%@ENABLE_MEM_PROFILE@%$ENABLE_MEM_PROFILE%g
- -s%@CPP@%$CPP%g
- s%@G_MODULE_IMPL@%$G_MODULE_IMPL%g
- s%@G_MODULE_LIBS@%$G_MODULE_LIBS%g
- s%@G_MODULE_LDFLAGS@%$G_MODULE_LDFLAGS%g
- --- glib1.2-1.2.10.orig/ltmain.sh
- +++ glib1.2-1.2.10/ltmain.sh
- @@ -1,7 +1,8 @@
- # ltmain.sh - Provide generalized library-building support services.
- -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
- +# NOTE: Changing this file will not affect anything until you rerun configure.
- #
- -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
- +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
- +# Free Software Foundation, Inc.
- # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
- #
- # This program is free software; you can redistribute it and/or modify
- @@ -48,14 +49,14 @@
- fi
-
- # The name of this program.
- -progname=`$echo "$0" | sed 's%^.*/%%'`
- +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
- modename="$progname"
-
- # Constants.
- PROGRAM=ltmain.sh
- PACKAGE=libtool
- -VERSION=1.3.4
- -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
- +VERSION=1.4.3
- +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
-
- default_mode=
- help="Try \`$progname --help' for more information."
- @@ -66,10 +67,19 @@
-
- # Sed substitution that helps us do robust quoting. It backslashifies
- # metacharacters that are still active within double-quoted strings.
- -Xsed='sed -e 1s/^X//'
- +Xsed="${SED}"' -e 1s/^X//'
- sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
- -SP2NL='tr \040 \012'
- -NL2SP='tr \015\012 \040\040'
- +# test EBCDIC or ASCII
- +case `echo A|od -x` in
- + *[Cc]1*) # EBCDIC based system
- + SP2NL="tr '\100' '\n'"
- + NL2SP="tr '\r\n' '\100\100'"
- + ;;
- + *) # Assume ASCII based system
- + SP2NL="tr '\040' '\012'"
- + NL2SP="tr '\015\012' '\040\040'"
- + ;;
- +esac
-
- # NLS nuisances.
- # Only set LANG and LC_ALL to C if already set.
- @@ -83,11 +93,8 @@
- save_LANG="$LANG"; LANG=C; export LANG
- fi
-
- -if test "$LTCONFIG_VERSION" != "$VERSION"; then
- - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
- - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
- - exit 1
- -fi
- +# Make sure IFS has a sensible default
- +: ${IFS=" "}
-
- if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
- echo "$modename: not configured to build any kind of library" 1>&2
- @@ -113,16 +120,16 @@
- arg="$1"
- shift
-
- - case "$arg" in
- + case $arg in
- -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- - case "$prev" in
- + case $prev in
- execute_dlfiles)
- - eval "$prev=\"\$$prev \$arg\""
- + execute_dlfiles="$execute_dlfiles $arg"
- ;;
- *)
- eval "$prev=\$arg"
- @@ -135,7 +142,7 @@
- fi
-
- # Have we seen a non-optional argument yet?
- - case "$arg" in
- + case $arg in
- --help)
- show_help=yes
- ;;
- @@ -146,7 +153,7 @@
- ;;
-
- --config)
- - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
- + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
- exit 0
- ;;
-
- @@ -179,6 +186,8 @@
- --mode) prevopt="--mode" prev=mode ;;
- --mode=*) mode="$optarg" ;;
-
- + --preserve-dup-deps) duplicate_deps="yes" ;;
- +
- --quiet | --silent)
- show=:
- ;;
- @@ -207,16 +216,21 @@
- exit 1
- fi
-
- +# If this variable is set in any of the actions, the command in it
- +# will be execed at the end. This prevents here-documents from being
- +# left over by shells.
- +exec_cmd=
- +
- if test -z "$show_help"; then
-
- # Infer the operation mode.
- if test -z "$mode"; then
- - case "$nonopt" in
- - *cc | *++ | gcc* | *-gcc*)
- + case $nonopt in
- + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
- mode=link
- for arg
- do
- - case "$arg" in
- + case $arg in
- -c)
- mode=compile
- break
- @@ -261,12 +275,13 @@
- help="Try \`$modename --help --mode=$mode' for more information."
-
- # These modes are in order of execution frequency so that they run quickly.
- - case "$mode" in
- + case $mode in
- # libtool compile mode
- compile)
- modename="$modename: compile"
- # Get the compilation command and the source file.
- base_compile=
- + prev=
- lastarg=
- srcfile="$nonopt"
- suppress_output=
- @@ -274,8 +289,34 @@
- user_target=no
- for arg
- do
- + case $prev in
- + "") ;;
- + xcompiler)
- + # Aesthetically quote the previous argument.
- + prev=
- + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- +
- + case $arg in
- + # Double-quote args containing other shell metacharacters.
- + # Many Bourne shells cannot handle close brackets correctly
- + # in scan sets, so we specify it separately.
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + arg="\"$arg\""
- + ;;
- + esac
- +
- + # Add the previous argument to base_compile.
- + if test -z "$base_compile"; then
- + base_compile="$lastarg"
- + else
- + base_compile="$base_compile $lastarg"
- + fi
- + continue
- + ;;
- + esac
- +
- # Accept any command-line options.
- - case "$arg" in
- + case $arg in
- -o)
- if test "$user_target" != "no"; then
- $echo "$modename: you cannot specify \`-o' more than once" 1>&2
- @@ -288,9 +329,53 @@
- build_old_libs=yes
- continue
- ;;
- +
- + -prefer-pic)
- + pic_mode=yes
- + continue
- + ;;
- +
- + -prefer-non-pic)
- + pic_mode=no
- + continue
- + ;;
- +
- + -Xcompiler)
- + prev=xcompiler
- + continue
- + ;;
- +
- + -Wc,*)
- + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
- + lastarg=
- + save_ifs="$IFS"; IFS=','
- + for arg in $args; do
- + IFS="$save_ifs"
- +
- + # Double-quote args containing other shell metacharacters.
- + # Many Bourne shells cannot handle close brackets correctly
- + # in scan sets, so we specify it separately.
- + case $arg in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + arg="\"$arg\""
- + ;;
- + esac
- + lastarg="$lastarg $arg"
- + done
- + IFS="$save_ifs"
- + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
- +
- + # Add the arguments to base_compile.
- + if test -z "$base_compile"; then
- + base_compile="$lastarg"
- + else
- + base_compile="$base_compile $lastarg"
- + fi
- + continue
- + ;;
- esac
-
- - case "$user_target" in
- + case $user_target in
- next)
- # The next one is the -o target name
- user_target=yes
- @@ -316,10 +401,10 @@
- lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
-
- # Double-quote args containing other shell metacharacters.
- - # Many Bourne shells cannot handle close brackets correctly in scan
- - # sets, so we specify it separately.
- - case "$lastarg" in
- - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- + # Many Bourne shells cannot handle close brackets correctly
- + # in scan sets, so we specify it separately.
- + case $lastarg in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- lastarg="\"$lastarg\""
- ;;
- esac
- @@ -332,7 +417,7 @@
- fi
- done
-
- - case "$user_target" in
- + case $user_target in
- set)
- ;;
- no)
- @@ -348,7 +433,7 @@
- # Recognize several different file suffixes.
- # If the user specifies -o file.o, it is replaced with file.lo
- xform='[cCFSfmso]'
- - case "$libobj" in
- + case $libobj in
- *.ada) xform=ada ;;
- *.adb) xform=adb ;;
- *.ads) xform=ads ;;
- @@ -363,7 +448,7 @@
-
- libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
-
- - case "$libobj" in
- + case $libobj in
- *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
- *)
- $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
- @@ -387,10 +472,21 @@
- $run $rm $removelist
- trap "$run $rm $removelist; exit 1" 1 2 15
-
- + # On Cygwin there's no "real" PIC flag so we must build both object types
- + case $host_os in
- + cygwin* | mingw* | pw32* | os2*)
- + pic_mode=default
- + ;;
- + esac
- + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
- + # non-PIC code in shared libraries is not supported
- + pic_mode=default
- + fi
- +
- # Calculate the filename of the output object if compiler does
- # not support -o with -c
- if test "$compiler_c_o" = no; then
- - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
- + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
- lockfile="$output_obj.lock"
- removelist="$removelist $output_obj $lockfile"
- trap "$run $rm $removelist; exit 1" 1 2 15
- @@ -402,7 +498,7 @@
- # Lock this critical section if it is needed
- # We use this script file to make the link, it avoids creating a new file
- if test "$need_locks" = yes; then
- - until ln "$0" "$lockfile" 2>/dev/null; do
- + until $run ln "$0" "$lockfile" 2>/dev/null; do
- $show "Waiting for $lockfile to be removed"
- sleep 2
- done
- @@ -434,8 +530,13 @@
- # Without this assignment, base_compile gets emptied.
- fbsd_hideous_sh_bug=$base_compile
-
- - # All platforms use -DPIC, to notify preprocessed assembler code.
- - command="$base_compile $srcfile $pic_flag -DPIC"
- + if test "$pic_mode" != no; then
- + # All platforms use -DPIC, to notify preprocessed assembler code.
- + command="$base_compile $srcfile $pic_flag -DPIC"
- + else
- + # Don't build PIC code
- + command="$base_compile $srcfile"
- + fi
- if test "$build_old_libs" = yes; then
- lo_libobj="$libobj"
- dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
- @@ -506,7 +607,8 @@
- fi
-
- # If we have no pic_flag, then copy the object into place and finish.
- - if test -z "$pic_flag" && test "$build_old_libs" = yes; then
- + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
- + test "$build_old_libs" = yes; then
- # Rename the .lo from within objdir to obj
- if test -f $obj; then
- $show $rm $obj
- @@ -532,6 +634,10 @@
- # Now arrange that obj and lo_libobj become the same file
- $show "(cd $xdir && $LN_S $baseobj $libobj)"
- if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
- + # Unlock the critical section if it was locked
- + if test "$need_locks" != no; then
- + $run $rm "$lockfile"
- + fi
- exit 0
- else
- error=$?
- @@ -546,7 +652,13 @@
-
- # Only build a position-dependent object if we build old libraries.
- if test "$build_old_libs" = yes; then
- - command="$base_compile $srcfile"
- + if test "$pic_mode" != yes; then
- + # Don't build PIC code
- + command="$base_compile $srcfile"
- + else
- + # All platforms use -DPIC, to notify preprocessed assembler code.
- + command="$base_compile $srcfile $pic_flag -DPIC"
- + fi
- if test "$compiler_c_o" = yes; then
- command="$command -o $obj"
- output_obj="$obj"
- @@ -612,17 +724,17 @@
-
- # Unlock the critical section if it was locked
- if test "$need_locks" != no; then
- - $rm "$lockfile"
- + $run $rm "$lockfile"
- fi
-
- exit 0
- ;;
-
- # libtool link mode
- - link)
- + link | relink)
- modename="$modename: link"
- - case "$host" in
- - *-*-cygwin* | *-*-mingw* | *-*-os2*)
- + case $host in
- + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- # It is impossible to link a dll without this setting, and
- # we shouldn't force the makefile maintainer to figure out
- # which system we are compiling for in order to pass an extra
- @@ -635,179 +747,12 @@
- # -no-undefined on the libtool link line when we can be certain
- # that all symbols are satisfied, otherwise we get a static library.
- allow_undefined=yes
- -
- - # This is a source program that is used to create dlls on Windows
- - # Don't remove nor modify the starting and closing comments
- -# /* ltdll.c starts here */
- -# #define WIN32_LEAN_AND_MEAN
- -# #include <windows.h>
- -# #undef WIN32_LEAN_AND_MEAN
- -# #include <stdio.h>
- -#
- -# #ifndef __CYGWIN__
- -# # ifdef __CYGWIN32__
- -# # define __CYGWIN__ __CYGWIN32__
- -# # endif
- -# #endif
- -#
- -# #ifdef __cplusplus
- -# extern "C" {
- -# #endif
- -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
- -# #ifdef __cplusplus
- -# }
- -# #endif
- -#
- -# #ifdef __CYGWIN__
- -# #include <cygwin/cygwin_dll.h>
- -# DECLARE_CYGWIN_DLL( DllMain );
- -# #endif
- -# HINSTANCE __hDllInstance_base;
- -#
- -# BOOL APIENTRY
- -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
- -# {
- -# __hDllInstance_base = hInst;
- -# return TRUE;
- -# }
- -# /* ltdll.c ends here */
- - # This is a source program that is used to create import libraries
- - # on Windows for dlls which lack them. Don't remove nor modify the
- - # starting and closing comments
- -# /* impgen.c starts here */
- -# /* Copyright (C) 1999 Free Software Foundation, Inc.
- -#
- -# This file is part of GNU libtool.
- -#
- -# This program is free software; you can redistribute it and/or modify
- -# it under the terms of the GNU General Public License as published by
- -# the Free Software Foundation; either version 2 of the License, or
- -# (at your option) any later version.
- -#
- -# This program is distributed in the hope that it will be useful,
- -# but WITHOUT ANY WARRANTY; without even the implied warranty of
- -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -# GNU General Public License for more details.
- -#
- -# You should have received a copy of the GNU General Public License
- -# along with this program; if not, write to the Free Software
- -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- -# */
- -#
- -# #include <stdio.h> /* for printf() */
- -# #include <unistd.h> /* for open(), lseek(), read() */
- -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
- -# #include <string.h> /* for strdup() */
- -#
- -# static unsigned int
- -# pe_get16 (fd, offset)
- -# int fd;
- -# int offset;
- -# {
- -# unsigned char b[2];
- -# lseek (fd, offset, SEEK_SET);
- -# read (fd, b, 2);
- -# return b[0] + (b[1]<<8);
- -# }
- -#
- -# static unsigned int
- -# pe_get32 (fd, offset)
- -# int fd;
- -# int offset;
- -# {
- -# unsigned char b[4];
- -# lseek (fd, offset, SEEK_SET);
- -# read (fd, b, 4);
- -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- -# }
- -#
- -# static unsigned int
- -# pe_as32 (ptr)
- -# void *ptr;
- -# {
- -# unsigned char *b = ptr;
- -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
- -# }
- -#
- -# int
- -# main (argc, argv)
- -# int argc;
- -# char *argv[];
- -# {
- -# int dll;
- -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
- -# unsigned long export_rva, export_size, nsections, secptr, expptr;
- -# unsigned long name_rvas, nexp;
- -# unsigned char *expdata, *erva;
- -# char *filename, *dll_name;
- -#
- -# filename = argv[1];
- -#
- -# dll = open(filename, O_RDONLY|O_BINARY);
- -# if (!dll)
- -# return 1;
- -#
- -# dll_name = filename;
- -#
- -# for (i=0; filename[i]; i++)
- -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
- -# dll_name = filename + i +1;
- -#
- -# pe_header_offset = pe_get32 (dll, 0x3c);
- -# opthdr_ofs = pe_header_offset + 4 + 20;
- -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
- -#
- -# if (num_entries < 1) /* no exports */
- -# return 1;
- -#
- -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
- -# export_size = pe_get32 (dll, opthdr_ofs + 100);
- -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
- -# secptr = (pe_header_offset + 4 + 20 +
- -# pe_get16 (dll, pe_header_offset + 4 + 16));
- -#
- -# expptr = 0;
- -# for (i = 0; i < nsections; i++)
- -# {
- -# char sname[8];
- -# unsigned long secptr1 = secptr + 40 * i;
- -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
- -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
- -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
- -# lseek(dll, secptr1, SEEK_SET);
- -# read(dll, sname, 8);
- -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
- -# {
- -# expptr = fptr + (export_rva - vaddr);
- -# if (export_rva + export_size > vaddr + vsize)
- -# export_size = vsize - (export_rva - vaddr);
- -# break;
- -# }
- -# }
- -#
- -# expdata = (unsigned char*)malloc(export_size);
- -# lseek (dll, expptr, SEEK_SET);
- -# read (dll, expdata, export_size);
- -# erva = expdata - export_rva;
- -#
- -# nexp = pe_as32 (expdata+24);
- -# name_rvas = pe_as32 (expdata+32);
- -#
- -# printf ("EXPORTS\n");
- -# for (i = 0; i<nexp; i++)
- -# {
- -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
- -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
- -# }
- -#
- -# return 0;
- -# }
- -# /* impgen.c ends here */
- ;;
- *)
- allow_undefined=yes
- ;;
- esac
- + libtool_args="$nonopt"
- compile_command="$nonopt"
- finalize_command="$nonopt"
-
- @@ -818,18 +763,13 @@
- convenience=
- old_convenience=
- deplibs=
- - linkopts=
- + old_deplibs=
- + compiler_flags=
- + linker_flags=
- + dllsearchpath=
- + lib_search_path=`pwd`
- + inst_prefix_dir=
-
- - if test -n "$shlibpath_var"; then
- - # get the directories listed in $shlibpath_var
- - eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
- - else
- - lib_search_path=
- - fi
- - # now prepend the system-specific ones
- - eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
- - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
- -
- avoid_version=no
- dlfiles=
- dlprefiles=
- @@ -839,9 +779,9 @@
- export_symbols_regex=
- generated=
- libobjs=
- - link_against_libtool_libs=
- ltlibs=
- module=no
- + no_install=no
- objs=
- prefer_static_libs=no
- preload=no
- @@ -858,7 +798,7 @@
- # We need to know -static, to get the right output filenames.
- for arg
- do
- - case "$arg" in
- + case $arg in
- -all-static | -static)
- if test "X$arg" = "X-all-static"; then
- if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
- @@ -887,17 +827,24 @@
- while test $# -gt 0; do
- arg="$1"
- shift
- + case $arg in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
- + ;;
- + *) qarg=$arg ;;
- + esac
- + libtool_args="$libtool_args $qarg"
-
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- - case "$prev" in
- + case $prev in
- output)
- compile_command="$compile_command @OUTPUT@"
- finalize_command="$finalize_command @OUTPUT@"
- ;;
- esac
-
- - case "$prev" in
- + case $prev in
- dlfiles|dlprefiles)
- if test "$preload" = no; then
- # Add the symbol object into the linking commands.
- @@ -905,7 +852,7 @@
- finalize_command="$finalize_command @SYMFILE@"
- preload=yes
- fi
- - case "$arg" in
- + case $arg in
- *.la | *.lo) ;; # We handle these cases below.
- force)
- if test "$dlself" = no; then
- @@ -934,6 +881,7 @@
- dlprefiles="$dlprefiles $arg"
- fi
- prev=
- + continue
- ;;
- esac
- ;;
- @@ -951,6 +899,11 @@
- prev=
- continue
- ;;
- + inst_prefix)
- + inst_prefix_dir="$arg"
- + prev=
- + continue
- + ;;
- release)
- release="-$arg"
- prev=
- @@ -958,7 +911,7 @@
- ;;
- rpath | xrpath)
- # We need an absolute path.
- - case "$arg" in
- + case $arg in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- $echo "$modename: only absolute run-paths are allowed" 1>&2
- @@ -979,17 +932,32 @@
- prev=
- continue
- ;;
- + xcompiler)
- + compiler_flags="$compiler_flags $qarg"
- + prev=
- + compile_command="$compile_command $qarg"
- + finalize_command="$finalize_command $qarg"
- + continue
- + ;;
- + xlinker)
- + linker_flags="$linker_flags $qarg"
- + compiler_flags="$compiler_flags $wl$qarg"
- + prev=
- + compile_command="$compile_command $wl$qarg"
- + finalize_command="$finalize_command $wl$qarg"
- + continue
- + ;;
- *)
- eval "$prev=\"\$arg\""
- prev=
- continue
- ;;
- esac
- - fi
- + fi # test -n $prev
-
- prevarg="$arg"
-
- - case "$arg" in
- + case $arg in
- -all-static)
- if test -n "$link_static_flag"; then
- compile_command="$compile_command $link_static_flag"
- @@ -1026,7 +994,7 @@
-
- -export-symbols | -export-symbols-regex)
- if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
- - $echo "$modename: not more than one -exported-symbols argument allowed"
- + $echo "$modename: more than one -exported-symbols argument is not allowed"
- exit 1
- fi
- if test "X$arg" = "X-export-symbols"; then
- @@ -1037,58 +1005,81 @@
- continue
- ;;
-
- + -inst-prefix-dir)
- + prev=inst_prefix
- + continue
- + ;;
- +
- + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
- + # so, if we see these flags be careful not to treat them like -L
- + -L[A-Z][A-Z]*:*)
- + case $with_gcc/$host in
- + no/*-*-irix* | no/*-*-nonstopux*)
- + compile_command="$compile_command $arg"
- + finalize_command="$finalize_command $arg"
- + ;;
- + esac
- + continue
- + ;;
- +
- -L*)
- dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
- # We need an absolute path.
- - case "$dir" in
- + case $dir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- absdir=`cd "$dir" && pwd`
- if test -z "$absdir"; then
- - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- - absdir="$dir"
- + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
- + exit 1
- fi
- dir="$absdir"
- ;;
- esac
- - case " $deplibs " in
- - *" $arg "*) ;;
- - *) deplibs="$deplibs $arg";;
- - esac
- - case " $lib_search_path " in
- - *" $dir "*) ;;
- - *) lib_search_path="$lib_search_path $dir";;
- + case "$deplibs " in
- + *" -L$dir "*) ;;
- + *)
- + deplibs="$deplibs -L$dir"
- + lib_search_path="$lib_search_path $dir"
- + ;;
- esac
- - case "$host" in
- - *-*-cygwin* | *-*-mingw* | *-*-os2*)
- - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
- - case ":$dllsearchpath:" in
- - ::) dllsearchpath="$dllsearchdir";;
- - *":$dllsearchdir:"*) ;;
- - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
- + case $host in
- + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- + case :$dllsearchpath: in
- + *":$dir:"*) ;;
- + *) dllsearchpath="$dllsearchpath:$dir";;
- esac
- ;;
- esac
- + continue
- ;;
-
- -l*)
- - if test "$arg" = "-lc"; then
- - case "$host" in
- - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
- - # These systems don't actually have c library (as such)
- + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
- + case $host in
- + *-*-cygwin* | *-*-pw32* | *-*-beos*)
- + # These systems don't actually have a C or math library (as such)
- continue
- ;;
- + *-*-mingw* | *-*-os2*)
- + # These systems don't actually have a C library (as such)
- + test "X$arg" = "X-lc" && continue
- + ;;
- + *-*-openbsd* | *-*-freebsd*)
- + # Do not include libc due to us having libc/libc_r.
- + test "X$arg" = "X-lc" && continue
- + ;;
- esac
- - elif test "$arg" = "-lm"; then
- - case "$host" in
- - *-*-cygwin* | *-*-beos*)
- - # These systems don't actually have math library (as such)
- + elif test "X$arg" = "X-lc_r"; then
- + case $host in
- + *-*-openbsd* | *-*-freebsd*)
- + # Do not include libc_r directly, use -pthread flag.
- continue
- ;;
- esac
- fi
- deplibs="$deplibs $arg"
- + continue
- ;;
-
- -module)
- @@ -1096,6 +1087,25 @@
- continue
- ;;
-
- + -no-fast-install)
- + fast_install=no
- + continue
- + ;;
- +
- + -no-install)
- + case $host in
- + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- + # The PATH hackery in wrapper scripts is required on Windows
- + # in order for the loader to find any dlls it needs.
- + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
- + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
- + fast_install=no
- + ;;
- + *) no_install=yes ;;
- + esac
- + continue
- + ;;
- +
- -no-undefined)
- allow_undefined=no
- continue
- @@ -1121,7 +1131,7 @@
- -R*)
- dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
- # We need an absolute path.
- - case "$dir" in
- + case $dir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- $echo "$modename: only absolute run-paths are allowed" 1>&2
- @@ -1136,11 +1146,11 @@
- ;;
-
- -static)
- - # If we have no pic_flag, then this is the same as -all-static.
- - if test -z "$pic_flag" && test -n "$link_static_flag"; then
- - compile_command="$compile_command $link_static_flag"
- - finalize_command="$finalize_command $link_static_flag"
- - fi
- + # The effects of -static are defined in a previous loop.
- + # We used to do the same as -all-static on platforms that
- + # didn't have a PIC flag, but the assumption that the effects
- + # would be equivalent was wrong. It would break on at least
- + # Digital Unix and AIX.
- continue
- ;;
-
- @@ -1154,28 +1164,71 @@
- continue
- ;;
-
- + -Wc,*)
- + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
- + arg=
- + save_ifs="$IFS"; IFS=','
- + for flag in $args; do
- + IFS="$save_ifs"
- + case $flag in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + flag="\"$flag\""
- + ;;
- + esac
- + arg="$arg $wl$flag"
- + compiler_flags="$compiler_flags $flag"
- + done
- + IFS="$save_ifs"
- + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
- + ;;
- +
- + -Wl,*)
- + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
- + arg=
- + save_ifs="$IFS"; IFS=','
- + for flag in $args; do
- + IFS="$save_ifs"
- + case $flag in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + flag="\"$flag\""
- + ;;
- + esac
- + arg="$arg $wl$flag"
- + compiler_flags="$compiler_flags $wl$flag"
- + linker_flags="$linker_flags $flag"
- + done
- + IFS="$save_ifs"
- + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
- + ;;
- +
- + -Xcompiler)
- + prev=xcompiler
- + continue
- + ;;
- +
- + -Xlinker)
- + prev=xlinker
- + continue
- + ;;
- +
- # Some other compiler flag.
- -* | +*)
- # Unknown arguments in both finalize_command and compile_command need
- # to be aesthetically quoted because they are evaled later.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- - case "$arg" in
- - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- + case $arg in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- arg="\"$arg\""
- ;;
- esac
- ;;
-
- - *.o | *.obj | *.a | *.lib)
- - # A standard object.
- - objs="$objs $arg"
- - ;;
- -
- - *.lo)
- - # A library object.
- + *.lo | *.$objext)
- + # A library or standard object.
- if test "$prev" = dlfiles; then
- - dlfiles="$dlfiles $arg"
- - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
- + # This file was specified with -dlopen.
- + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
- + dlfiles="$dlfiles $arg"
- prev=
- continue
- else
- @@ -1188,357 +1241,917 @@
- # Preload the old-style object.
- dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
- prev=
- + else
- + case $arg in
- + *.lo) libobjs="$libobjs $arg" ;;
- + *) objs="$objs $arg" ;;
- + esac
- fi
- - libobjs="$libobjs $arg"
- + ;;
- +
- + *.$libext)
- + # An archive.
- + deplibs="$deplibs $arg"
- + old_deplibs="$old_deplibs $arg"
- + continue
- ;;
-
- *.la)
- # A libtool-controlled library.
-
- - dlname=
- - libdir=
- - library_names=
- - old_library=
- -
- - # Check to see that this really is a libtool archive.
- - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- + if test "$prev" = dlfiles; then
- + # This library was specified with -dlopen.
- + dlfiles="$dlfiles $arg"
- + prev=
- + elif test "$prev" = dlprefiles; then
- + # The library was specified with -dlpreopen.
- + dlprefiles="$dlprefiles $arg"
- + prev=
- else
- - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
- - exit 1
- + deplibs="$deplibs $arg"
- fi
- + continue
- + ;;
-
- - # If the library was installed with an old release of libtool,
- - # it will not redefine variable installed.
- - installed=yes
- -
- - # Read the .la file
- - # If there is no directory component, then add one.
- - case "$arg" in
- - */* | *\\*) . $arg ;;
- - *) . ./$arg ;;
- + # Some other compiler argument.
- + *)
- + # Unknown arguments in both finalize_command and compile_command need
- + # to be aesthetically quoted because they are evaled later.
- + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- + case $arg in
- + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
- + arg="\"$arg\""
- + ;;
- esac
- + ;;
- + esac # arg
-
- - # Get the name of the library we link against.
- - linklib=
- - for l in $old_library $library_names; do
- - linklib="$l"
- - done
- -
- - if test -z "$linklib"; then
- - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
- - exit 1
- - fi
- -
- - # Find the relevant object directory and library name.
- - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
- -
- - if test "X$installed" = Xyes; then
- - dir="$libdir"
- - else
- - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
- - if test "X$dir" = "X$arg"; then
- - dir="$objdir"
- - else
- - dir="$dir/$objdir"
- - fi
- - fi
- + # Now actually substitute the argument into the commands.
- + if test -n "$arg"; then
- + compile_command="$compile_command $arg"
- + finalize_command="$finalize_command $arg"
- + fi
- + done # argument parsing loop
-
- - if test -n "$dependency_libs"; then
- - # Extract -R and -L from dependency_libs
- - temp_deplibs=
- - for deplib in $dependency_libs; do
- - case "$deplib" in
- - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
- - case " $rpath $xrpath " in
- - *" $temp_xrpath "*) ;;
- - *) xrpath="$xrpath $temp_xrpath";;
- - esac;;
- - -L*) case "$compile_command $temp_deplibs " in
- - *" $deplib "*) ;;
- - *) temp_deplibs="$temp_deplibs $deplib";;
- - esac
- - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
- - case " $lib_search_path " in
- - *" $temp_dir "*) ;;
- - *) lib_search_path="$lib_search_path $temp_dir";;
- - esac
- - ;;
- - *) temp_deplibs="$temp_deplibs $deplib";;
- - esac
- - done
- - dependency_libs="$temp_deplibs"
- - fi
- + if test -n "$prev"; then
- + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
- + $echo "$help" 1>&2
- + exit 1
- + fi
-
- - if test -z "$libdir"; then
- - # It is a libtool convenience library, so add in its objects.
- - convenience="$convenience $dir/$old_library"
- - old_convenience="$old_convenience $dir/$old_library"
- - deplibs="$deplibs$dependency_libs"
- - compile_command="$compile_command $dir/$old_library$dependency_libs"
- - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
- - continue
- - fi
- + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
- + eval arg=\"$export_dynamic_flag_spec\"
- + compile_command="$compile_command $arg"
- + finalize_command="$finalize_command $arg"
- + fi
-
- - # This library was specified with -dlopen.
- - if test "$prev" = dlfiles; then
- - dlfiles="$dlfiles $arg"
- - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
- - # If there is no dlname, no dlopen support or we're linking statically,
- - # we need to preload.
- - prev=dlprefiles
- - else
- - # We should not create a dependency on this library, but we
- - # may need any libraries it requires.
- - compile_command="$compile_command$dependency_libs"
- - finalize_command="$finalize_command$dependency_libs"
- - prev=
- - continue
- - fi
- - fi
- + # calculate the name of the file, without its directory
- + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
- + libobjs_save="$libobjs"
-
- - # The library was specified with -dlpreopen.
- - if test "$prev" = dlprefiles; then
- - # Prefer using a static library (so that no silly _DYNAMIC symbols
- - # are required to link).
- - if test -n "$old_library"; then
- - dlprefiles="$dlprefiles $dir/$old_library"
- - else
- - dlprefiles="$dlprefiles $dir/$linklib"
- - fi
- - prev=
- - fi
- + if test -n "$shlibpath_var"; then
- + # get the directories listed in $shlibpath_var
- + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
- + else
- + shlib_search_path=
- + fi
- + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
- + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
-
- - if test -n "$library_names" &&
- - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
- - link_against_libtool_libs="$link_against_libtool_libs $arg"
- - if test -n "$shlibpath_var"; then
- - # Make sure the rpath contains only unique directories.
- - case "$temp_rpath " in
- - *" $dir "*) ;;
- - *) temp_rpath="$temp_rpath $dir" ;;
- - esac
- - fi
- + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
- + if test "X$output_objdir" = "X$output"; then
- + output_objdir="$objdir"
- + else
- + output_objdir="$output_objdir/$objdir"
- + fi
- + # Create the object directory.
- + if test ! -d $output_objdir; then
- + $show "$mkdir $output_objdir"
- + $run $mkdir $output_objdir
- + status=$?
- + if test $status -ne 0 && test ! -d $output_objdir; then
- + exit $status
- + fi
- + fi
-
- - # We need an absolute path.
- - case "$dir" in
- - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
- - *)
- - absdir=`cd "$dir" && pwd`
- - if test -z "$absdir"; then
- - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- - absdir="$dir"
- - fi
- - ;;
- - esac
- -
- - # This is the magic to use -rpath.
- - # Skip directories that are in the system default run-time
- - # search path, unless they have been requested with -R.
- - case " $sys_lib_dlsearch_path " in
- - *" $absdir "*) ;;
- - *)
- - case "$compile_rpath " in
- - *" $absdir "*) ;;
- - *) compile_rpath="$compile_rpath $absdir"
- - esac
- - ;;
- - esac
- + # Determine the type of output
- + case $output in
- + "")
- + $echo "$modename: you must specify an output file" 1>&2
- + $echo "$help" 1>&2
- + exit 1
- + ;;
- + *.$libext) linkmode=oldlib ;;
- + *.lo | *.$objext) linkmode=obj ;;
- + *.la) linkmode=lib ;;
- + *) linkmode=prog ;; # Anything else should be a program.
- + esac
-
- - case " $sys_lib_dlsearch_path " in
- - *" $libdir "*) ;;
- + specialdeplibs=
- + libs=
- + # Find all interdependent deplibs by searching for libraries
- + # that are linked more than once (e.g. -la -lb -la)
- + for deplib in $deplibs; do
- + if test "X$duplicate_deps" = "Xyes" ; then
- + case "$libs " in
- + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- + esac
- + fi
- + libs="$libs $deplib"
- + done
- + deplibs=
- + newdependency_libs=
- + newlib_search_path=
- + need_relink=no # whether we're linking any uninstalled libtool libraries
- + notinst_deplibs= # not-installed libtool libraries
- + notinst_path= # paths that contain not-installed libtool libraries
- + case $linkmode in
- + lib)
- + passes="conv link"
- + for file in $dlfiles $dlprefiles; do
- + case $file in
- + *.la) ;;
- *)
- - case "$finalize_rpath " in
- - *" $libdir "*) ;;
- - *) finalize_rpath="$finalize_rpath $libdir"
- - esac
- + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
- + exit 1
- ;;
- esac
- -
- - lib_linked=yes
- - case "$hardcode_action" in
- - immediate | unsupported)
- - if test "$hardcode_direct" = no; then
- - compile_command="$compile_command $dir/$linklib"
- - deplibs="$deplibs $dir/$linklib"
- - case "$host" in
- - *-*-cygwin* | *-*-mingw* | *-*-os2*)
- - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
- - if test -n "$dllsearchpath"; then
- - dllsearchpath="$dllsearchpath:$dllsearchdir"
- - else
- - dllsearchpath="$dllsearchdir"
- - fi
- - ;;
- - esac
- - elif test "$hardcode_minus_L" = no; then
- - case "$host" in
- - *-*-sunos*)
- - compile_shlibpath="$compile_shlibpath$dir:"
- - ;;
- - esac
- - case "$compile_command " in
- - *" -L$dir "*) ;;
- - *) compile_command="$compile_command -L$dir";;
- - esac
- - compile_command="$compile_command -l$name"
- - deplibs="$deplibs -L$dir -l$name"
- - elif test "$hardcode_shlibpath_var" = no; then
- - case ":$compile_shlibpath:" in
- - *":$dir:"*) ;;
- - *) compile_shlibpath="$compile_shlibpath$dir:";;
- - esac
- - compile_command="$compile_command -l$name"
- - deplibs="$deplibs -l$name"
- + done
- + ;;
- + prog)
- + compile_deplibs=
- + finalize_deplibs=
- + alldeplibs=no
- + newdlfiles=
- + newdlprefiles=
- + passes="conv scan dlopen dlpreopen link"
- + ;;
- + *) passes="conv"
- + ;;
- + esac
- + for pass in $passes; do
- + if test $linkmode = prog; then
- + # Determine which files to process
- + case $pass in
- + dlopen)
- + libs="$dlfiles"
- + save_deplibs="$deplibs" # Collect dlpreopened libraries
- + deplibs=
- + ;;
- + dlpreopen) libs="$dlprefiles" ;;
- + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
- + esac
- + fi
- + for deplib in $libs; do
- + lib=
- + found=no
- + case $deplib in
- + -l*)
- + if test $linkmode = oldlib && test $linkmode = obj; then
- + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
- + continue
- + fi
- + if test $pass = conv; then
- + deplibs="$deplib $deplibs"
- + continue
- + fi
- + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
- + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
- + # Search the libtool library
- + lib="$searchdir/lib${name}.la"
- + if test -f "$lib"; then
- + found=yes
- + break
- + fi
- + done
- + if test "$found" != yes; then
- + # deplib doesn't seem to be a libtool library
- + if test "$linkmode,$pass" = "prog,link"; then
- + compile_deplibs="$deplib $compile_deplibs"
- + finalize_deplibs="$deplib $finalize_deplibs"
- else
- - lib_linked=no
- + deplibs="$deplib $deplibs"
- + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
- fi
- + continue
- + fi
- + ;; # -l
- + -L*)
- + case $linkmode in
- + lib)
- + deplibs="$deplib $deplibs"
- + test $pass = conv && continue
- + newdependency_libs="$deplib $newdependency_libs"
- + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
- ;;
- -
- - relink)
- - if test "$hardcode_direct" = yes; then
- - compile_command="$compile_command $absdir/$linklib"
- - deplibs="$deplibs $absdir/$linklib"
- - elif test "$hardcode_minus_L" = yes; then
- - case "$compile_command " in
- - *" -L$absdir "*) ;;
- - *) compile_command="$compile_command -L$absdir";;
- - esac
- - compile_command="$compile_command -l$name"
- - deplibs="$deplibs -L$absdir -l$name"
- - elif test "$hardcode_shlibpath_var" = yes; then
- - case ":$compile_shlibpath:" in
- - *":$absdir:"*) ;;
- - *) compile_shlibpath="$compile_shlibpath$absdir:";;
- - esac
- - compile_command="$compile_command -l$name"
- - deplibs="$deplibs -l$name"
- + prog)
- + if test $pass = conv; then
- + deplibs="$deplib $deplibs"
- + continue
- + fi
- + if test $pass = scan; then
- + deplibs="$deplib $deplibs"
- + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
- else
- - lib_linked=no
- + compile_deplibs="$deplib $compile_deplibs"
- + finalize_deplibs="$deplib $finalize_deplibs"
- fi
- ;;
- -
- *)
- - lib_linked=no
- + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
- ;;
- - esac
- + esac # linkmode
- + continue
- + ;; # -L
- + -R*)
- + if test $pass = link; then
- + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
- + # Make sure the xrpath contains only unique directories.
- + case "$xrpath " in
- + *" $dir "*) ;;
- + *) xrpath="$xrpath $dir" ;;
- + esac
- + fi
- + deplibs="$deplib $deplibs"
- + continue
- + ;;
- + *.la) lib="$deplib" ;;
- + *.$libext)
- + if test $pass = conv; then
- + deplibs="$deplib $deplibs"
- + continue
- + fi
- + case $linkmode in
- + lib)
- + if test "$deplibs_check_method" != pass_all; then
- + echo
- + echo "*** Warning: Trying to link with static lib archive $deplib."
- + echo "*** I have the capability to make that library automatically link in when"
- + echo "*** you link to this library. But I can only do this if you have a"
- + echo "*** shared version of the library, which you do not appear to have"
- + echo "*** because the file extensions .$libext of this argument makes me believe"
- + echo "*** that it is just a static archive that I should not used here."
- + else
- + echo
- + echo "*** Warning: Linking the shared library $output against the"
- + echo "*** static library $deplib is not portable!"
- + deplibs="$deplib $deplibs"
- + fi
- + continue
- + ;;
- + prog)
- + if test $pass != link; then
- + deplibs="$deplib $deplibs"
- + else
- + compile_deplibs="$deplib $compile_deplibs"
- + finalize_deplibs="$deplib $finalize_deplibs"
- + fi
- + continue
- + ;;
- + esac # linkmode
- + ;; # *.$libext
- + *.lo | *.$objext)
- + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
- + # If there is no dlopen support or we're linking statically,
- + # we need to preload.
- + newdlprefiles="$newdlprefiles $deplib"
- + compile_deplibs="$deplib $compile_deplibs"
- + finalize_deplibs="$deplib $finalize_deplibs"
- + else
- + newdlfiles="$newdlfiles $deplib"
- + fi
- + continue
- + ;;
- + %DEPLIBS%)
- + alldeplibs=yes
- + continue
- + ;;
- + esac # case $deplib
- + if test $found = yes || test -f "$lib"; then :
- + else
- + $echo "$modename: cannot find the library \`$lib'" 1>&2
- + exit 1
- + fi
- +
- + # Check to see that this really is a libtool archive.
- + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- + else
- + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- + exit 1
- + fi
- +
- + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
- + test "X$ladir" = "X$lib" && ladir="."
- +
- + dlname=
- + dlopen=
- + dlpreopen=
- + libdir=
- + library_names=
- + old_library=
- + # If the library was installed with an old release of libtool,
- + # it will not redefine variable installed.
- + installed=yes
- +
- + # Read the .la file
- + case $lib in
- + */* | *\\*) . $lib ;;
- + *) . ./$lib ;;
- + esac
- +
- + if test "$linkmode,$pass" = "lib,link" ||
- + test "$linkmode,$pass" = "prog,scan" ||
- + { test $linkmode = oldlib && test $linkmode = obj; }; then
- + # Add dl[pre]opened files of deplib
- + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
- + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
- + fi
-
- - if test "$lib_linked" != yes; then
- - $echo "$modename: configuration error: unsupported hardcode properties"
- + if test $pass = conv; then
- + # Only check for convenience libraries
- + deplibs="$lib $deplibs"
- + if test -z "$libdir"; then
- + if test -z "$old_library"; then
- + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- + exit 1
- + fi
- + # It is a libtool convenience library, so add in its objects.
- + convenience="$convenience $ladir/$objdir/$old_library"
- + old_convenience="$old_convenience $ladir/$objdir/$old_library"
- + tmp_libs=
- + for deplib in $dependency_libs; do
- + deplibs="$deplib $deplibs"
- + if test "X$duplicate_deps" = "Xyes" ; then
- + case "$tmp_libs " in
- + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- + esac
- + fi
- + tmp_libs="$tmp_libs $deplib"
- + done
- + elif test $linkmode != prog && test $linkmode != lib; then
- + $echo "$modename: \`$lib' is not a convenience library" 1>&2
- exit 1
- fi
- + continue
- + fi # $pass = conv
-
- - # Finalize command for both is simple: just hardcode it.
- - if test "$hardcode_direct" = yes; then
- - finalize_command="$finalize_command $libdir/$linklib"
- - elif test "$hardcode_minus_L" = yes; then
- - case "$finalize_command " in
- - *" -L$libdir "*) ;;
- - *) finalize_command="$finalize_command -L$libdir";;
- - esac
- - finalize_command="$finalize_command -l$name"
- - elif test "$hardcode_shlibpath_var" = yes; then
- - case ":$finalize_shlibpath:" in
- - *":$libdir:"*) ;;
- - *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
- - esac
- - finalize_command="$finalize_command -l$name"
- + # Get the name of the library we link against.
- + linklib=
- + for l in $old_library $library_names; do
- + linklib="$l"
- + done
- + if test -z "$linklib"; then
- + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
- + exit 1
- + fi
- +
- + # This library was specified with -dlopen.
- + if test $pass = dlopen; then
- + if test -z "$libdir"; then
- + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
- + exit 1
- + fi
- + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
- + # If there is no dlname, no dlopen support or we're linking
- + # statically, we need to preload.
- + dlprefiles="$dlprefiles $lib"
- else
- - # We cannot seem to hardcode it, guess we'll fake it.
- - case "$finalize_command " in
- - *" -L$dir "*) ;;
- - *) finalize_command="$finalize_command -L$libdir";;
- - esac
- - finalize_command="$finalize_command -l$name"
- + newdlfiles="$newdlfiles $lib"
- + fi
- + continue
- + fi # $pass = dlopen
- +
- + # We need an absolute path.
- + case $ladir in
- + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
- + *)
- + abs_ladir=`cd "$ladir" && pwd`
- + if test -z "$abs_ladir"; then
- + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
- + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
- + abs_ladir="$ladir"
- + fi
- + ;;
- + esac
- + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
- +
- + # Find the relevant object directory and library name.
- + if test "X$installed" = Xyes; then
- + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
- + $echo "$modename: warning: library \`$lib' was moved." 1>&2
- + dir="$ladir"
- + absdir="$abs_ladir"
- + libdir="$abs_ladir"
- + else
- + dir="$libdir"
- + absdir="$libdir"
- fi
- else
- - # Transform directly to old archives if we don't build new libraries.
- - if test -n "$pic_flag" && test -z "$old_library"; then
- - $echo "$modename: cannot find static library for \`$arg'" 1>&2
- + dir="$ladir/$objdir"
- + absdir="$abs_ladir/$objdir"
- + # Remove this search path later
- + notinst_path="$notinst_path $abs_ladir"
- + fi # $installed = yes
- + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
- +
- + # This library was specified with -dlpreopen.
- + if test $pass = dlpreopen; then
- + if test -z "$libdir"; then
- + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
- exit 1
- fi
- + # Prefer using a static library (so that no silly _DYNAMIC symbols
- + # are required to link).
- + if test -n "$old_library"; then
- + newdlprefiles="$newdlprefiles $dir/$old_library"
- + # Otherwise, use the dlname, so that lt_dlopen finds it.
- + elif test -n "$dlname"; then
- + newdlprefiles="$newdlprefiles $dir/$dlname"
- + else
- + newdlprefiles="$newdlprefiles $dir/$linklib"
- + fi
- + fi # $pass = dlpreopen
-
- - # Here we assume that one of hardcode_direct or hardcode_minus_L
- - # is not unsupported. This is valid on all known static and
- - # shared platforms.
- - if test "$hardcode_direct" != unsupported; then
- - test -n "$old_library" && linklib="$old_library"
- - compile_command="$compile_command $dir/$linklib"
- - finalize_command="$finalize_command $dir/$linklib"
- + if test -z "$libdir"; then
- + # Link the convenience library
- + if test $linkmode = lib; then
- + deplibs="$dir/$old_library $deplibs"
- + elif test "$linkmode,$pass" = "prog,link"; then
- + compile_deplibs="$dir/$old_library $compile_deplibs"
- + finalize_deplibs="$dir/$old_library $finalize_deplibs"
- else
- - case "$compile_command " in
- - *" -L$dir "*) ;;
- - *) compile_command="$compile_command -L$dir";;
- + deplibs="$lib $deplibs"
- + fi
- + continue
- + fi
- +
- + if test $linkmode = prog && test $pass != link; then
- + newlib_search_path="$newlib_search_path $ladir"
- + deplibs="$lib $deplibs"
- +
- + linkalldeplibs=no
- + if test "$link_all_deplibs" != no || test -z "$library_names" ||
- + test "$build_libtool_libs" = no; then
- + linkalldeplibs=yes
- + fi
- +
- + tmp_libs=
- + for deplib in $dependency_libs; do
- + case $deplib in
- + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
- esac
- - compile_command="$compile_command -l$name"
- - case "$finalize_command " in
- - *" -L$dir "*) ;;
- - *) finalize_command="$finalize_command -L$dir";;
- + # Need to link against all dependency_libs?
- + if test $linkalldeplibs = yes; then
- + deplibs="$deplib $deplibs"
- + else
- + # Need to hardcode shared library paths
- + # or/and link against static libraries
- + newdependency_libs="$deplib $newdependency_libs"
- + fi
- + if test "X$duplicate_deps" = "Xyes" ; then
- + case "$tmp_libs " in
- + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- + esac
- + fi
- + tmp_libs="$tmp_libs $deplib"
- + done # for deplib
- + continue
- + fi # $linkmode = prog...
- +
- + link_static=no # Whether the deplib will be linked statically
- + if test -n "$library_names" &&
- + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
- + # Link against this shared library
- +
- + if test "$linkmode,$pass" = "prog,link" ||
- + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
- + # Hardcode the library path.
- + # Skip directories that are in the system default run-time
- + # search path.
- + case " $sys_lib_dlsearch_path " in
- + *" $absdir "*) ;;
- + *)
- + case "$compile_rpath " in
- + *" $absdir "*) ;;
- + *) compile_rpath="$compile_rpath $absdir"
- + esac
- + ;;
- esac
- - finalize_command="$finalize_command -l$name"
- + case " $sys_lib_dlsearch_path " in
- + *" $libdir "*) ;;
- + *)
- + case "$finalize_rpath " in
- + *" $libdir "*) ;;
- + *) finalize_rpath="$finalize_rpath $libdir"
- + esac
- + ;;
- + esac
- + if test $linkmode = prog; then
- + # We need to hardcode the library path
- + if test -n "$shlibpath_var"; then
- + # Make sure the rpath contains only unique directories.
- + case "$temp_rpath " in
- + *" $dir "*) ;;
- + *" $absdir "*) ;;
- + *) temp_rpath="$temp_rpath $dir" ;;
- + esac
- + fi
- + fi
- + fi # $linkmode,$pass = prog,link...
- +
- + if test "$alldeplibs" = yes &&
- + { test "$deplibs_check_method" = pass_all ||
- + { test "$build_libtool_libs" = yes &&
- + test -n "$library_names"; }; }; then
- + # We only need to search for static libraries
- + continue
- fi
- - fi
-
- - # Add in any libraries that this one depends upon.
- - compile_command="$compile_command$dependency_libs"
- - finalize_command="$finalize_command$dependency_libs"
- - continue
- - ;;
- + if test "$installed" = no; then
- + notinst_deplibs="$notinst_deplibs $lib"
- + need_relink=yes
- + fi
- +
- + if test -n "$old_archive_from_expsyms_cmds"; then
- + # figure out the soname
- + set dummy $library_names
- + realname="$2"
- + shift; shift
- + libname=`eval \\$echo \"$libname_spec\"`
- + # use dlname if we got it. it's perfectly good, no?
- + if test -n "$dlname"; then
- + soname="$dlname"
- + elif test -n "$soname_spec"; then
- + # bleh windows
- + case $host in
- + *cygwin*)
- + major=`expr $current - $age`
- + versuffix="-$major"
- + ;;
- + esac
- + eval soname=\"$soname_spec\"
- + else
- + soname="$realname"
- + fi
-
- - # Some other compiler argument.
- - *)
- - # Unknown arguments in both finalize_command and compile_command need
- - # to be aesthetically quoted because they are evaled later.
- - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- - case "$arg" in
- - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- - arg="\"$arg\""
- - ;;
- - esac
- - ;;
- - esac
- + # Make a new name for the extract_expsyms_cmds to use
- + soroot="$soname"
- + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
- + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
-
- - # Now actually substitute the argument into the commands.
- - if test -n "$arg"; then
- - compile_command="$compile_command $arg"
- - finalize_command="$finalize_command $arg"
- - fi
- - done
- + # If the library has no export list, then create one now
- + if test -f "$output_objdir/$soname-def"; then :
- + else
- + $show "extracting exported symbol list from \`$soname'"
- + save_ifs="$IFS"; IFS='~'
- + eval cmds=\"$extract_expsyms_cmds\"
- + for cmd in $cmds; do
- + IFS="$save_ifs"
- + $show "$cmd"
- + $run eval "$cmd" || exit $?
- + done
- + IFS="$save_ifs"
- + fi
-
- - if test -n "$prev"; then
- - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
- - $echo "$help" 1>&2
- - exit 1
- - fi
- + # Create $newlib
- + if test -f "$output_objdir/$newlib"; then :; else
- + $show "generating import library for \`$soname'"
- + save_ifs="$IFS"; IFS='~'
- + eval cmds=\"$old_archive_from_expsyms_cmds\"
- + for cmd in $cmds; do
- + IFS="$save_ifs"
- + $show "$cmd"
- + $run eval "$cmd" || exit $?
- + done
- + IFS="$save_ifs"
- + fi
- + # make sure the library variables are pointing to the new library
- + dir=$output_objdir
- + linklib=$newlib
- + fi # test -n $old_archive_from_expsyms_cmds
- +
- + if test $linkmode = prog || test "$mode" != relink; then
- + add_shlibpath=
- + add_dir=
- + add=
- + lib_linked=yes
- + case $hardcode_action in
- + immediate | unsupported)
- + if test "$hardcode_direct" = no; then
- + add="$dir/$linklib"
- + elif test "$hardcode_minus_L" = no; then
- + case $host in
- + *-*-sunos*) add_shlibpath="$dir" ;;
- + esac
- + add_dir="-L$dir"
- + add="-l$name"
- + elif test "$hardcode_shlibpath_var" = no; then
- + add_shlibpath="$dir"
- + add="-l$name"
- + else
- + lib_linked=no
- + fi
- + ;;
- + relink)
- + if test "$hardcode_direct" = yes; then
- + add="$dir/$linklib"
- + elif test "$hardcode_minus_L" = yes; then
- + add_dir="-L$dir"
- + # Try looking first in the location we're being installed to.
- + if test -n "$inst_prefix_dir"; then
- + case "$libdir" in
- + [\/]*)
- + add_dir="-L$inst_prefix_dir$libdir $add_dir"
- + ;;
- + esac
- + fi
- + add="-l$name"
- + elif test "$hardcode_shlibpath_var" = yes; then
- + add_shlibpath="$dir"
- + add="-l$name"
- + else
- + lib_linked=no
- + fi
- + ;;
- + *) lib_linked=no ;;
- + esac
-
- - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
- - eval arg=\"$export_dynamic_flag_spec\"
- - compile_command="$compile_command $arg"
- - finalize_command="$finalize_command $arg"
- - fi
- + if test "$lib_linked" != yes; then
- + $echo "$modename: configuration error: unsupported hardcode properties"
- + exit 1
- + fi
-
- - oldlibs=
- - # calculate the name of the file, without its directory
- - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
- - libobjs_save="$libobjs"
- + if test -n "$add_shlibpath"; then
- + case :$compile_shlibpath: in
- + *":$add_shlibpath:"*) ;;
- + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
- + esac
- + fi
- + if test $linkmode = prog; then
- + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
- + test -n "$add" && compile_deplibs="$add $compile_deplibs"
- + else
- + test -n "$add_dir" && deplibs="$add_dir $deplibs"
- + test -n "$add" && deplibs="$add $deplibs"
- + if test "$hardcode_direct" != yes && \
- + test "$hardcode_minus_L" != yes && \
- + test "$hardcode_shlibpath_var" = yes; then
- + case :$finalize_shlibpath: in
- + *":$libdir:"*) ;;
- + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
- + esac
- + fi
- + fi
- + fi
-
- - case "$output" in
- - "")
- - $echo "$modename: you must specify an output file" 1>&2
- - $echo "$help" 1>&2
- - exit 1
- - ;;
- + if test $linkmode = prog || test "$mode" = relink; then
- + add_shlibpath=
- + add_dir=
- + add=
- + # Finalize command for both is simple: just hardcode it.
- + if test "$hardcode_direct" = yes; then
- + add="$libdir/$linklib"
- + elif test "$hardcode_minus_L" = yes; then
- + add_dir="-L$libdir"
- + add="-l$name"
- + elif test "$hardcode_shlibpath_var" = yes; then
- + case :$finalize_shlibpath: in
- + *":$libdir:"*) ;;
- + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
- + esac
- + add="-l$name"
- + else
- + # We cannot seem to hardcode it, guess we'll fake it.
- + add_dir="-L$libdir"
- + # Try looking first in the location we're being installed to.
- + if test -n "$inst_prefix_dir"; then
- + case "$libdir" in
- + [\/]*)
- + add_dir="-L$inst_prefix_dir$libdir $add_dir"
- + ;;
- + esac
- + fi
- + add="-l$name"
- + fi
-
- - *.a | *.lib)
- - if test -n "$link_against_libtool_libs"; then
- - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
- - exit 1
- + if test $linkmode = prog; then
- + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
- + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
- + else
- + test -n "$add_dir" && deplibs="$add_dir $deplibs"
- + test -n "$add" && deplibs="$add $deplibs"
- + fi
- + fi
- + elif test $linkmode = prog; then
- + if test "$alldeplibs" = yes &&
- + { test "$deplibs_check_method" = pass_all ||
- + { test "$build_libtool_libs" = yes &&
- + test -n "$library_names"; }; }; then
- + # We only need to search for static libraries
- + continue
- + fi
- +
- + # Try to link the static library
- + # Here we assume that one of hardcode_direct or hardcode_minus_L
- + # is not unsupported. This is valid on all known static and
- + # shared platforms.
- + if test "$hardcode_direct" != unsupported; then
- + test -n "$old_library" && linklib="$old_library"
- + compile_deplibs="$dir/$linklib $compile_deplibs"
- + finalize_deplibs="$dir/$linklib $finalize_deplibs"
- + else
- + compile_deplibs="-l$name -L$dir $compile_deplibs"
- + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
- + fi
- + elif test "$build_libtool_libs" = yes; then
- + # Not a shared library
- + if test "$deplibs_check_method" != pass_all; then
- + # We're trying link a shared library against a static one
- + # but the system doesn't support it.
- +
- + # Just print a warning and add the library to dependency_libs so
- + # that the program can be linked against the static library.
- + echo
- + echo "*** Warning: This system can not link to static lib archive $lib."
- + echo "*** I have the capability to make that library automatically link in when"
- + echo "*** you link to this library. But I can only do this if you have a"
- + echo "*** shared version of the library, which you do not appear to have."
- + if test "$module" = yes; then
- + echo "*** But as you try to build a module library, libtool will still create "
- + echo "*** a static module, that should work as long as the dlopening application"
- + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
- + if test -z "$global_symbol_pipe"; then
- + echo
- + echo "*** However, this would only work if libtool was able to extract symbol"
- + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- + echo "*** not find such a program. So, this module is probably useless."
- + echo "*** \`nm' from GNU binutils and a full rebuild may help."
- + fi
- + if test "$build_old_libs" = no; then
- + build_libtool_libs=module
- + build_old_libs=yes
- + else
- + build_libtool_libs=no
- + fi
- + fi
- + else
- + convenience="$convenience $dir/$old_library"
- + old_convenience="$old_convenience $dir/$old_library"
- + deplibs="$dir/$old_library $deplibs"
- + link_static=yes
- + fi
- + fi # link shared/static library?
- +
- + if test $linkmode = lib; then
- + if test -n "$dependency_libs" &&
- + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
- + test $link_static = yes; }; then
- + # Extract -R from dependency_libs
- + temp_deplibs=
- + for libdir in $dependency_libs; do
- + case $libdir in
- + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
- + case " $xrpath " in
- + *" $temp_xrpath "*) ;;
- + *) xrpath="$xrpath $temp_xrpath";;
- + esac;;
- + *) temp_deplibs="$temp_deplibs $libdir";;
- + esac
- + done
- + dependency_libs="$temp_deplibs"
- + fi
- +
- + newlib_search_path="$newlib_search_path $absdir"
- + # Link against this library
- + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
- + # ... and its dependency_libs
- + tmp_libs=
- + for deplib in $dependency_libs; do
- + newdependency_libs="$deplib $newdependency_libs"
- + if test "X$duplicate_deps" = "Xyes" ; then
- + case "$tmp_libs " in
- + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
- + esac
- + fi
- + tmp_libs="$tmp_libs $deplib"
- + done
- +
- + if test $link_all_deplibs != no; then
- + # Add the search paths of all dependency libraries
- + for deplib in $dependency_libs; do
- + case $deplib in
- + -L*) path="$deplib" ;;
- + *.la)
- + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
- + test "X$dir" = "X$deplib" && dir="."
- + # We need an absolute path.
- + case $dir in
- + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
- + *)
- + absdir=`cd "$dir" && pwd`
- + if test -z "$absdir"; then
- + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
- + absdir="$dir"
- + fi
- + ;;
- + esac
- + if grep "^installed=no" $deplib > /dev/null; then
- + path="-L$absdir/$objdir"
- + else
- + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- + if test -z "$libdir"; then
- + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- + exit 1
- + fi
- + if test "$absdir" != "$libdir"; then
- + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
- + fi
- + path="-L$absdir"
- + fi
- + ;;
- + *) continue ;;
- + esac
- + case " $deplibs " in
- + *" $path "*) ;;
- + *) deplibs="$deplibs $path" ;;
- + esac
- + done
- + fi # link_all_deplibs != no
- + fi # linkmode = lib
- + done # for deplib in $libs
- + if test $pass = dlpreopen; then
- + # Link the dlpreopened libraries before other libraries
- + for deplib in $save_deplibs; do
- + deplibs="$deplib $deplibs"
- + done
- fi
- + if test $pass != dlopen; then
- + test $pass != scan && dependency_libs="$newdependency_libs"
- + if test $pass != conv; then
- + # Make sure lib_search_path contains only unique directories.
- + lib_search_path=
- + for dir in $newlib_search_path; do
- + case "$lib_search_path " in
- + *" $dir "*) ;;
- + *) lib_search_path="$lib_search_path $dir" ;;
- + esac
- + done
- + newlib_search_path=
- + fi
-
- - if test -n "$deplibs"; then
- - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
- + if test "$linkmode,$pass" != "prog,link"; then
- + vars="deplibs"
- + else
- + vars="compile_deplibs finalize_deplibs"
- + fi
- + for var in $vars dependency_libs; do
- + # Add libraries to $var in reverse order
- + eval tmp_libs=\"\$$var\"
- + new_libs=
- + for deplib in $tmp_libs; do
- + case $deplib in
- + -L*) new_libs="$deplib $new_libs" ;;
- + *)
- + case " $specialdeplibs " in
- + *" $deplib "*) new_libs="$deplib $new_libs" ;;
- + *)
- + case " $new_libs " in
- + *" $deplib "*) ;;
- + *) new_libs="$deplib $new_libs" ;;
- + esac
- + ;;
- + esac
- + ;;
- + esac
- + done
- + tmp_libs=
- + for deplib in $new_libs; do
- + case $deplib in
- + -L*)
- + case " $tmp_libs " in
- + *" $deplib "*) ;;
- + *) tmp_libs="$tmp_libs $deplib" ;;
- + esac
- + ;;
- + *) tmp_libs="$tmp_libs $deplib" ;;
- + esac
- + done
- + eval $var=\"$tmp_libs\"
- + done # for var
- fi
- + if test "$pass" = "conv" &&
- + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
- + libs="$deplibs" # reset libs
- + deplibs=
- + fi
- + done # for pass
- + if test $linkmode = prog; then
- + dlfiles="$newdlfiles"
- + dlprefiles="$newdlprefiles"
- + fi
-
- + case $linkmode in
- + oldlib)
- if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
- $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
- fi
- @@ -1566,11 +2179,12 @@
- # Now set the variables for building old libraries.
- build_libtool_libs=no
- oldlibs="$output"
- + objs="$objs$old_deplibs"
- ;;
-
- - *.la)
- + lib)
- # Make sure we only generate libraries of the form `libNAME.la'.
- - case "$outputname" in
- + case $outputname in
- lib*)
- name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
- eval libname=\"$libname_spec\"
- @@ -1591,26 +2205,20 @@
- ;;
- esac
-
- - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
- - if test "X$output_objdir" = "X$output"; then
- - output_objdir="$objdir"
- - else
- - output_objdir="$output_objdir/$objdir"
- - fi
- -
- if test -n "$objs"; then
- - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
- - exit 1
- - fi
- -
- - # How the heck are we supposed to write a wrapper for a shared library?
- - if test -n "$link_against_libtool_libs"; then
- - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
- - exit 1
- + if test "$deplibs_check_method" != pass_all; then
- + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
- + exit 1
- + else
- + echo
- + echo "*** Warning: Linking the shared library $output against the non-libtool"
- + echo "*** objects $objs is not portable!"
- + libobjs="$libobjs $objs"
- + fi
- fi
-
- - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
- - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
- + if test "$dlself" != no; then
- + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
- fi
-
- set dummy $rpath
- @@ -1628,7 +2236,6 @@
- build_libtool_libs=convenience
- build_old_libs=yes
- fi
- - dependency_libs="$deplibs"
-
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
- @@ -1640,7 +2247,7 @@
- else
-
- # Parse the version information argument.
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
- + save_ifs="$IFS"; IFS=':'
- set dummy $vinfo 0 0 0
- IFS="$save_ifs"
-
- @@ -1655,8 +2262,8 @@
- age="$4"
-
- # Check that each of the things are valid numbers.
- - case "$current" in
- - 0 | [1-9] | [1-9][0-9]*) ;;
- + case $current in
- + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
- *)
- $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- @@ -1664,8 +2271,8 @@
- ;;
- esac
-
- - case "$revision" in
- - 0 | [1-9] | [1-9][0-9]*) ;;
- + case $revision in
- + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
- *)
- $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- @@ -1673,8 +2280,8 @@
- ;;
- esac
-
- - case "$age" in
- - 0 | [1-9] | [1-9][0-9]*) ;;
- + case $age in
- + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
- *)
- $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
- $echo "$modename: \`$vinfo' is not valid version information" 1>&2
- @@ -1692,21 +2299,49 @@
- major=
- versuffix=
- verstring=
- - case "$version_type" in
- + case $version_type in
- none) ;;
-
- - irix)
- + darwin)
- + # Like Linux, but with the current version available in
- + # verstring for coding it into the library header
- + major=.`expr $current - $age`
- + versuffix="$major.$age.$revision"
- + # Darwin ld doesn't like 0 for these options...
- + minor_current=`expr $current + 1`
- + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
- + ;;
- +
- + freebsd-aout)
- + major=".$current"
- + versuffix=".$current.$revision";
- + ;;
- +
- + freebsd-elf)
- + major=".$current"
- + versuffix=".$current";
- + ;;
- +
- + irix | nonstopux)
- major=`expr $current - $age + 1`
- - versuffix="$major.$revision"
- - verstring="sgi$major.$revision"
- +
- + case $version_type in
- + nonstopux) verstring_prefix=nonstopux ;;
- + *) verstring_prefix=sgi ;;
- + esac
- + verstring="$verstring_prefix$major.$revision"
-
- # Add in all the interfaces that we are compatible with.
- loop=$revision
- while test $loop != 0; do
- iface=`expr $revision - $loop`
- loop=`expr $loop - 1`
- - verstring="sgi$major.$iface:$verstring"
- + verstring="$verstring_prefix$major.$iface:$verstring"
- done
- +
- + # Before this point, $major must not contain `.'.
- + major=.$major
- + versuffix="$major.$revision"
- ;;
-
- linux)
- @@ -1715,7 +2350,7 @@
- ;;
-
- osf)
- - major=`expr $current - $age`
- + major=.`expr $current - $age`
- versuffix=".$current.$age.$revision"
- verstring="$current.$age.$revision"
-
- @@ -1736,21 +2371,11 @@
- versuffix=".$current.$revision"
- ;;
-
- - freebsd-aout)
- - major=".$current"
- - versuffix=".$current.$revision";
- - ;;
- -
- - freebsd-elf)
- - major=".$current"
- - versuffix=".$current";
- - ;;
- -
- windows)
- - # Like Linux, but with '-' rather than '.', since we only
- - # want one extension on Windows 95.
- + # Use '-' rather than '.', since we only want one
- + # extension on DOS 8.3 filesystems.
- major=`expr $current - $age`
- - versuffix="-$major-$age-$revision"
- + versuffix="-$major"
- ;;
-
- *)
- @@ -1764,6 +2389,16 @@
- if test -z "$vinfo" && test -n "$release"; then
- major=
- verstring="0.0"
- + case $version_type in
- + darwin)
- + # we can't check for "0.0" in archive_cmds due to quoting
- + # problems, so we reset it completely
- + verstring=""
- + ;;
- + *)
- + verstring="0.0"
- + ;;
- + esac
- if test "$need_version" = no; then
- versuffix=
- else
- @@ -1777,7 +2412,7 @@
- versuffix=
- verstring=""
- fi
- -
- +
- # Check to see if the archive will have undefined symbols.
- if test "$allow_undefined" = yes; then
- if test "$allow_undefined_flag" = unsupported; then
- @@ -1785,34 +2420,16 @@
- build_libtool_libs=no
- build_old_libs=yes
- fi
- - else
- - # Don't allow undefined symbols.
- - allow_undefined_flag="$no_undefined_flag"
- - fi
- -
- - dependency_libs="$deplibs"
- - case "$host" in
- - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
- - # these systems don't actually have a c library (as such)!
- - ;;
- - *)
- - # Add libc to deplibs on all other systems.
- - deplibs="$deplibs -lc"
- - ;;
- - esac
- + else
- + # Don't allow undefined symbols.
- + allow_undefined_flag="$no_undefined_flag"
- + fi
- fi
-
- - # Create the output directory, or remove our outputs if we need to.
- - if test -d $output_objdir; then
- + if test "$mode" != relink; then
- + # Remove our outputs.
- $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
- $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
- - else
- - $show "$mkdir $output_objdir"
- - $run $mkdir $output_objdir
- - status=$?
- - if test $status -ne 0 && test ! -d $output_objdir; then
- - exit $status
- - fi
- fi
-
- # Now set the variables for building old libraries.
- @@ -1823,7 +2440,73 @@
- oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
- fi
-
- + # Eliminate all temporary directories.
- + for path in $notinst_path; do
- + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
- + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
- + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
- + done
- +
- + if test -n "$xrpath"; then
- + # If the user specified any rpath flags, then add them.
- + temp_xrpath=
- + for libdir in $xrpath; do
- + temp_xrpath="$temp_xrpath -R$libdir"
- + case "$finalize_rpath " in
- + *" $libdir "*) ;;
- + *) finalize_rpath="$finalize_rpath $libdir" ;;
- + esac
- + done
- + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
- + dependency_libs="$temp_xrpath $dependency_libs"
- + fi
- + fi
- +
- + # Make sure dlfiles contains only unique files that won't be dlpreopened
- + old_dlfiles="$dlfiles"
- + dlfiles=
- + for lib in $old_dlfiles; do
- + case " $dlprefiles $dlfiles " in
- + *" $lib "*) ;;
- + *) dlfiles="$dlfiles $lib" ;;
- + esac
- + done
- +
- + # Make sure dlprefiles contains only unique files
- + old_dlprefiles="$dlprefiles"
- + dlprefiles=
- + for lib in $old_dlprefiles; do
- + case "$dlprefiles " in
- + *" $lib "*) ;;
- + *) dlprefiles="$dlprefiles $lib" ;;
- + esac
- + done
- +
- if test "$build_libtool_libs" = yes; then
- + if test -n "$rpath"; then
- + case $host in
- + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
- + # these systems don't actually have a c library (as such)!
- + ;;
- + *-*-rhapsody* | *-*-darwin1.[012])
- + # Rhapsody C library is in the System framework
- + deplibs="$deplibs -framework System"
- + ;;
- + *-*-netbsd*)
- + # Don't link with libc until the a.out ld.so is fixed.
- + ;;
- + *-*-openbsd* | *-*-freebsd*)
- + # Do not include libc due to us having libc/libc_r.
- + ;;
- + *)
- + # Add libc to deplibs on all other systems if necessary.
- + if test $build_libtool_need_lc = "yes"; then
- + deplibs="$deplibs -lc"
- + fi
- + ;;
- + esac
- + fi
- +
- # Transform deplibs into only deplibs that can be linked in shared.
- name_save=$name
- libname_save=$libname
- @@ -1838,7 +2521,7 @@
- major=""
- newdeplibs=
- droppeddeps=no
- - case "$deplibs_check_method" in
- + case $deplibs_check_method in
- pass_all)
- # Don't check for shared/static. Everything works.
- # This might be a little naive. We might want to check
- @@ -1863,7 +2546,7 @@
- for i in $deplibs; do
- name="`expr $i : '-l\(.*\)'`"
- # If $name is empty we are operating on a -L argument.
- - if test "$name" != "" ; then
- + if test -n "$name" && test "$name" != "0"; then
- libname=`eval \\$echo \"$libname_spec\"`
- deplib_matches=`eval \\$echo \"$library_names_spec\"`
- set dummy $deplib_matches
- @@ -1873,22 +2556,24 @@
- else
- droppeddeps=yes
- echo
- - echo "*** Warning: This library needs some functionality provided by $i."
- + echo "*** Warning: dynamic linker does not accept needed library $i."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- - echo "*** shared version of the library, which you do not appear to have."
- + echo "*** shared version of the library, which I believe you do not have"
- + echo "*** because a test_compile did reveal that the linker did not use it for"
- + echo "*** its dynamic dependency list that programs get resolved with at runtime."
- fi
- else
- newdeplibs="$newdeplibs $i"
- fi
- done
- else
- - # Error occured in the first compile. Let's try to salvage the situation:
- - # Compile a seperate program for each library.
- + # Error occured in the first compile. Let's try to salvage
- + # the situation: Compile a separate program for each library.
- for i in $deplibs; do
- name="`expr $i : '-l\(.*\)'`"
- # If $name is empty we are operating on a -L argument.
- - if test "$name" != "" ; then
- + if test -n "$name" && test "$name" != "0"; then
- $rm conftest
- $CC -o conftest conftest.c $i
- # Did it work?
- @@ -1903,10 +2588,12 @@
- else
- droppeddeps=yes
- echo
- - echo "*** Warning: This library needs some functionality provided by $i."
- + echo "*** Warning: dynamic linker does not accept needed library $i."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- - echo "*** shared version of the library, which you do not appear to have."
- + echo "*** shared version of the library, which you do not appear to have"
- + echo "*** because a test_compile did reveal that the linker did not use this one"
- + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
- fi
- else
- droppeddeps=yes
- @@ -1924,19 +2611,19 @@
- ;;
- file_magic*)
- set dummy $deplibs_check_method
- - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
- + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
- for a_deplib in $deplibs; do
- name="`expr $a_deplib : '-l\(.*\)'`"
- # If $name is empty we are operating on a -L argument.
- - if test "$name" != "" ; then
- + if test -n "$name" && test "$name" != "0"; then
- libname=`eval \\$echo \"$libname_spec\"`
- - for i in $lib_search_path; do
- + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- for potent_lib in $potential_libs; do
- # Follow soft links.
- if ls -lLd "$potent_lib" 2>/dev/null \
- | grep " -> " >/dev/null; then
- - continue
- + continue
- fi
- # The statement above tries to avoid entering an
- # endless loop below, in case of cyclic links.
- @@ -1945,14 +2632,14 @@
- # but so what?
- potlib="$potent_lib"
- while test -h "$potlib" 2>/dev/null; do
- - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
- - case "$potliblink" in
- + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
- + case $potliblink in
- [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
- *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
- esac
- done
- if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
- - | sed 10q \
- + | ${SED} 10q \
- | egrep "$file_magic_regex" > /dev/null; then
- newdeplibs="$newdeplibs $a_deplib"
- a_deplib=""
- @@ -1963,10 +2650,59 @@
- if test -n "$a_deplib" ; then
- droppeddeps=yes
- echo
- - echo "*** Warning: This library needs some functionality provided by $a_deplib."
- + echo "*** Warning: linker path does not have real file for library $a_deplib."
- + echo "*** I have the capability to make that library automatically link in when"
- + echo "*** you link to this library. But I can only do this if you have a"
- + echo "*** shared version of the library, which you do not appear to have"
- + echo "*** because I did check the linker path looking for a file starting"
- + if test -z "$potlib" ; then
- + echo "*** with $libname but no candidates were found. (...for file magic test)"
- + else
- + echo "*** with $libname and none of the candidates passed a file format test"
- + echo "*** using a file magic. Last file checked: $potlib"
- + fi
- + fi
- + else
- + # Add a -L argument.
- + newdeplibs="$newdeplibs $a_deplib"
- + fi
- + done # Gone through all deplibs.
- + ;;
- + match_pattern*)
- + set dummy $deplibs_check_method
- + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
- + for a_deplib in $deplibs; do
- + name="`expr $a_deplib : '-l\(.*\)'`"
- + # If $name is empty we are operating on a -L argument.
- + if test -n "$name" && test "$name" != "0"; then
- + libname=`eval \\$echo \"$libname_spec\"`
- + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
- + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
- + for potent_lib in $potential_libs; do
- + potlib="$potent_lib" # see symlink-check below in file_magic test
- + if eval echo \"$potent_lib\" 2>/dev/null \
- + | ${SED} 10q \
- + | egrep "$match_pattern_regex" > /dev/null; then
- + newdeplibs="$newdeplibs $a_deplib"
- + a_deplib=""
- + break 2
- + fi
- + done
- + done
- + if test -n "$a_deplib" ; then
- + droppeddeps=yes
- + echo
- + echo "*** Warning: linker path does not have real file for library $a_deplib."
- echo "*** I have the capability to make that library automatically link in when"
- echo "*** you link to this library. But I can only do this if you have a"
- - echo "*** shared version of the library, which you do not appear to have."
- + echo "*** shared version of the library, which you do not appear to have"
- + echo "*** because I did check the linker path looking for a file starting"
- + if test -z "$potlib" ; then
- + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
- + else
- + echo "*** with $libname and none of the candidates passed a file format test"
- + echo "*** using a regex pattern. Last file checked: $potlib"
- + fi
- fi
- else
- # Add a -L argument.
- @@ -1996,6 +2732,13 @@
- libname=$libname_save
- name=$name_save
-
- + case $host in
- + *-*-rhapsody* | *-*-darwin1.[012])
- + # On Rhapsody replace the C library is the System framework
- + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
- + ;;
- + esac
- +
- if test "$droppeddeps" = yes; then
- if test "$module" = yes; then
- echo
- @@ -2021,6 +2764,21 @@
- echo "*** The inter-library dependencies that have been dropped here will be"
- echo "*** automatically added whenever a program is linked with this library"
- echo "*** or is declared to -dlopen it."
- +
- + if test $allow_undefined = no; then
- + echo
- + echo "*** Since this library must not contain undefined symbols,"
- + echo "*** because either the platform does not support them or"
- + echo "*** it was explicitly requested with -no-undefined,"
- + echo "*** libtool will only create a static version of it."
- + if test "$build_old_libs" = no; then
- + oldlibs="$output_objdir/$libname.$libext"
- + build_libtool_libs=module
- + build_old_libs=yes
- + else
- + build_libtool_libs=no
- + fi
- + fi
- fi
- fi
- # Done checking deplibs!
- @@ -2031,9 +2789,64 @@
- library_names=
- old_library=
- dlname=
- -
- +
- # Test again, we may have decided not to build it any more
- if test "$build_libtool_libs" = yes; then
- + if test $hardcode_into_libs = yes; then
- + # Hardcode the library paths
- + hardcode_libdirs=
- + dep_rpath=
- + rpath="$finalize_rpath"
- + test "$mode" != relink && rpath="$compile_rpath$rpath"
- + for libdir in $rpath; do
- + if test -n "$hardcode_libdir_flag_spec"; then
- + if test -n "$hardcode_libdir_separator"; then
- + if test -z "$hardcode_libdirs"; then
- + hardcode_libdirs="$libdir"
- + else
- + # Just accumulate the unique libdirs.
- + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- + ;;
- + *)
- + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
- + ;;
- + esac
- + fi
- + else
- + eval flag=\"$hardcode_libdir_flag_spec\"
- + dep_rpath="$dep_rpath $flag"
- + fi
- + elif test -n "$runpath_var"; then
- + case "$perm_rpath " in
- + *" $libdir "*) ;;
- + *) perm_rpath="$perm_rpath $libdir" ;;
- + esac
- + fi
- + done
- + # Substitute the hardcoded libdirs into the rpath.
- + if test -n "$hardcode_libdir_separator" &&
- + test -n "$hardcode_libdirs"; then
- + libdir="$hardcode_libdirs"
- + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
- + fi
- + if test -n "$runpath_var" && test -n "$perm_rpath"; then
- + # We should set the runpath_var.
- + rpath=
- + for dir in $perm_rpath; do
- + rpath="$rpath$dir:"
- + done
- + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
- + fi
- + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
- + fi
- +
- + shlibpath="$finalize_shlibpath"
- + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
- + if test -n "$shlibpath"; then
- + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
- + fi
- +
- # Get the real and link names of the library.
- eval library_names=\"$library_names_spec\"
- set dummy $library_names
- @@ -2045,6 +2858,7 @@
- else
- soname="$realname"
- fi
- + test -z "$dlname" && dlname=$soname
-
- lib="$output_objdir/$realname"
- for link
- @@ -2079,7 +2893,7 @@
- export_symbols="$output_objdir/$libname.exp"
- $run $rm $export_symbols
- eval cmds=\"$export_symbols_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -2116,7 +2930,7 @@
-
- for xlib in $convenience; do
- # Extract the objects.
- - case "$xlib" in
- + case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- @@ -2141,16 +2955,32 @@
-
- if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
- eval flag=\"$thread_safe_flag_spec\"
- - linkopts="$linkopts $flag"
- + linker_flags="$linker_flags $flag"
- + fi
- +
- + # Make a backup of the uninstalled library when relinking
- + if test "$mode" = relink; then
- + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
- fi
-
- # Do each of the archive commands.
- if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
- eval cmds=\"$archive_expsym_cmds\"
- else
- + save_deplibs="$deplibs"
- + for conv in $convenience; do
- + tmp_deplibs=
- + for test_deplib in $deplibs; do
- + if test "$test_deplib" != "$conv"; then
- + tmp_deplibs="$tmp_deplibs $test_deplib"
- + fi
- + done
- + deplibs="$tmp_deplibs"
- + done
- eval cmds=\"$archive_cmds\"
- + deplibs="$save_deplibs"
- fi
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -2158,6 +2988,12 @@
- done
- IFS="$save_ifs"
-
- + # Restore the uninstalled library and exit
- + if test "$mode" = relink; then
- + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
- + exit 0
- + fi
- +
- # Create links to the real library.
- for linkname in $linknames; do
- if test "$realname" != "$linkname"; then
- @@ -2174,12 +3010,7 @@
- fi
- ;;
-
- - *.lo | *.o | *.obj)
- - if test -n "$link_against_libtool_libs"; then
- - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
- - exit 1
- - fi
- -
- + obj)
- if test -n "$deplibs"; then
- $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
- fi
- @@ -2204,9 +3035,9 @@
- $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
- fi
-
- - case "$output" in
- + case $output in
- *.lo)
- - if test -n "$objs"; then
- + if test -n "$objs$old_deplibs"; then
- $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
- exit 1
- fi
- @@ -2230,7 +3061,7 @@
- gentop=
- # reload_cmds runs $LD directly, so let us get rid of
- # -Wl from whole_archive_flag_spec
- - wl=
- + wl=
-
- if test -n "$convenience"; then
- if test -n "$whole_archive_flag_spec"; then
- @@ -2249,7 +3080,7 @@
-
- for xlib in $convenience; do
- # Extract the objects.
- - case "$xlib" in
- + case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- @@ -2273,11 +3104,11 @@
- fi
-
- # Create the old-style object.
- - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
- + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
-
- output="$obj"
- eval cmds=\"$reload_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -2308,12 +3139,12 @@
- exit 0
- fi
-
- - if test -n "$pic_flag"; then
- + if test -n "$pic_flag" || test "$pic_mode" != default; then
- # Only do commands if we really have different PIC objects.
- reload_objs="$libobjs $reload_conv_objs"
- output="$libobj"
- eval cmds=\"$reload_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -2344,8 +3175,10 @@
- exit 0
- ;;
-
- - # Anything else should be a program.
- - *)
- + prog)
- + case $host in
- + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
- + esac
- if test -n "$vinfo"; then
- $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
- fi
- @@ -2355,20 +3188,34 @@
- fi
-
- if test "$preload" = yes; then
- - if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
- + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
- test "$dlopen_self_static" = unknown; then
- $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
- - fi
- + fi
- fi
- -
- +
- + case $host in
- + *-*-rhapsody* | *-*-darwin1.[012])
- + # On Rhapsody replace the C library is the System framework
- + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
- + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
- + case $host in
- + *darwin*)
- + # Don't allow lazy linking, it breaks C++ global constructors
- + compile_command="$compile_command ${wl}-bind_at_load"
- + finalize_command="$finalize_command ${wl}-bind_at_load"
- + ;;
- + esac
- + ;;
- + esac
- +
- + compile_command="$compile_command $compile_deplibs"
- + finalize_command="$finalize_command $finalize_deplibs"
- +
- if test -n "$rpath$xrpath"; then
- # If the user specified any rpath flags, then add them.
- for libdir in $rpath $xrpath; do
- # This is the magic to use -rpath.
- - case "$compile_rpath " in
- - *" $libdir "*) ;;
- - *) compile_rpath="$compile_rpath $libdir" ;;
- - esac
- case "$finalize_rpath " in
- *" $libdir "*) ;;
- *) finalize_rpath="$finalize_rpath $libdir" ;;
- @@ -2386,7 +3233,7 @@
- hardcode_libdirs="$libdir"
- else
- # Just accumulate the unique libdirs.
- - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
- + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- ;;
- *)
- @@ -2404,6 +3251,14 @@
- *) perm_rpath="$perm_rpath $libdir" ;;
- esac
- fi
- + case $host in
- + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
- + case :$dllsearchpath: in
- + *":$libdir:"*) ;;
- + *) dllsearchpath="$dllsearchpath:$libdir";;
- + esac
- + ;;
- + esac
- done
- # Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator" &&
- @@ -2422,7 +3277,7 @@
- hardcode_libdirs="$libdir"
- else
- # Just accumulate the unique libdirs.
- - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
- + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
- *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
- ;;
- *)
- @@ -2449,23 +3304,6 @@
- fi
- finalize_rpath="$rpath"
-
- - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
- - if test "X$output_objdir" = "X$output"; then
- - output_objdir="$objdir"
- - else
- - output_objdir="$output_objdir/$objdir"
- - fi
- -
- - # Create the binary in the object directory, then wrap it.
- - if test ! -d $output_objdir; then
- - $show "$mkdir $output_objdir"
- - $run $mkdir $output_objdir
- - status=$?
- - if test $status -ne 0 && test ! -d $output_objdir; then
- - exit $status
- - fi
- - fi
- -
- if test -n "$libobjs" && test "$build_old_libs" = yes; then
- # Transform all the library objects into standard objects.
- compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- @@ -2482,7 +3320,7 @@
- fi
-
- if test -n "$dlsyms"; then
- - case "$dlsyms" in
- + case $dlsyms in
- "") ;;
- *.c)
- # Discover the nlist of each of the dlfiles.
- @@ -2514,7 +3352,7 @@
- test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
-
- # Add our own program objects to the symbol list.
- - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
- for arg in $progfiles; do
- $show "extracting global C symbols from \`$arg'"
- $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
- @@ -2524,7 +3362,7 @@
- $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
- $run eval '$mv "$nlist"T "$nlist"'
- fi
- -
- +
- if test -n "$export_symbols_regex"; then
- $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
- $run eval '$mv "$nlist"T "$nlist"'
- @@ -2534,9 +3372,9 @@
- if test -z "$export_symbols"; then
- export_symbols="$output_objdir/$output.exp"
- $run $rm $export_symbols
- - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
- + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
- else
- - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
- + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
- $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
- $run eval 'mv "$nlist"T "$nlist"'
- fi
- @@ -2544,7 +3382,7 @@
-
- for arg in $dlprefiles; do
- $show "extracting global C symbols from \`$arg'"
- - name=`echo "$arg" | sed -e 's%^.*/%%'`
- + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
- $run eval 'echo ": $name " >> "$nlist"'
- $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
- done
- @@ -2559,7 +3397,13 @@
- fi
-
- # Try sorting and uniquifying the output.
- - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
- + if grep -v "^: " < "$nlist" |
- + if sort -k 3 </dev/null >/dev/null 2>&1; then
- + sort -k 3
- + else
- + sort +2
- + fi |
- + uniq > "$nlist"S; then
- :
- else
- grep -v "^: " < "$nlist" > "$nlist"S
- @@ -2576,27 +3420,25 @@
- #undef lt_preloaded_symbols
-
- #if defined (__STDC__) && __STDC__
- -# define lt_ptr_t void *
- +# define lt_ptr void *
- #else
- -# define lt_ptr_t char *
- +# define lt_ptr char *
- # define const
- #endif
-
- /* The mapping between symbol names and symbols. */
- const struct {
- const char *name;
- - lt_ptr_t address;
- + lt_ptr address;
- }
- lt_preloaded_symbols[] =
- {\
- "
-
- - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
- - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
- - < "$nlist" >> "$output_objdir/$dlsyms"
- + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
-
- $echo >> "$output_objdir/$dlsyms" "\
- - {0, (lt_ptr_t) 0}
- + {0, (lt_ptr) 0}
- };
-
- /* This works around a problem in FreeBSD linker */
- @@ -2658,7 +3500,7 @@
- finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
- fi
-
- - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
- + if test $need_relink = no || test "$build_libtool_libs" != yes; then
- # Replace the output file specification.
- compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
- link_command="$compile_command$compile_rpath"
- @@ -2667,7 +3509,7 @@
- $show "$link_command"
- $run eval "$link_command"
- status=$?
- -
- +
- # Delete the generated files.
- if test -n "$dlsyms"; then
- $show "$rm $output_objdir/${outputname}S.${objext}"
- @@ -2681,7 +3523,7 @@
- # We should set the shlibpath_var
- rpath=
- for dir in $temp_rpath; do
- - case "$dir" in
- + case $dir in
- [\\/]* | [A-Za-z]:[\\/]*)
- # Absolute path.
- rpath="$rpath$dir:"
- @@ -2723,11 +3565,24 @@
- fi
- fi
-
- + if test "$no_install" = yes; then
- + # We don't need to create a wrapper script.
- + link_command="$compile_var$compile_command$compile_rpath"
- + # Replace the output file specification.
- + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
- + # Delete the old output file.
- + $run $rm $output
- + # Link the executable and exit
- + $show "$link_command"
- + $run eval "$link_command" || exit $?
- + exit 0
- + fi
- +
- if test "$hardcode_action" = relink; then
- # Fast installation is not supported
- link_command="$compile_var$compile_command$compile_rpath"
- relink_command="$finalize_var$finalize_command$finalize_rpath"
- -
- +
- $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
- $echo "$modename: \`$output' will be relinked during installation" 1>&2
- else
- @@ -2747,7 +3602,7 @@
-
- # Replace the output file specification.
- link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
- -
- +
- # Delete the old output files.
- $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
-
- @@ -2759,12 +3614,24 @@
-
- # Quote the relink command for shipping.
- if test -n "$relink_command"; then
- + # Preserve any variables that may affect compiler behavior
- + for var in $variables_saved_for_relink; do
- + if eval test -z \"\${$var+set}\"; then
- + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
- + elif eval var_value=\$$var; test -z "$var_value"; then
- + relink_command="$var=; export $var; $relink_command"
- + else
- + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
- + relink_command="$var=\"$var_value\"; export $var; $relink_command"
- + fi
- + done
- + relink_command="(cd `pwd`; $relink_command)"
- relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
- fi
-
- # Quote $echo for shipping.
- if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
- - case "$0" in
- + case $0 in
- [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
- *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
- esac
- @@ -2778,7 +3645,12 @@
- # win32 will think the script is a binary if it has
- # a .exe suffix, so we strip it off here.
- case $output in
- - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
- + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
- + esac
- + # test for cygwin because mv fails w/o .exe extensions
- + case $host in
- + *cygwin*) exeext=.exe ;;
- + *) exeext= ;;
- esac
- $rm $output
- trap "$rm $output; exit 1" 1 2 15
- @@ -2797,7 +3669,7 @@
-
- # Sed substitution that helps us do robust quoting. It backslashifies
- # metacharacters that are still active within double-quoted strings.
- -Xsed='sed -e 1s/^X//'
- +Xsed="${SED}"' -e 1s/^X//'
- sed_quote_subst='$sed_quote_subst'
-
- # The HP-UX ksh and POSIX shell print the target directory to stdout
- @@ -2809,7 +3681,7 @@
- # This environment variable determines our operation mode.
- if test \"\$libtool_install_magic\" = \"$magic\"; then
- # install mode needs the following variable:
- - link_against_libtool_libs='$link_against_libtool_libs'
- + notinst_deplibs='$notinst_deplibs'
- else
- # When we are sourced in execute mode, \$file and \$echo are already set.
- if test \"\$libtool_execute_magic\" != \"$magic\"; then
- @@ -2835,20 +3707,20 @@
- test \"x\$thisdir\" = \"x\$file\" && thisdir=.
-
- # Follow symbolic links until we get to the real thisdir.
- - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
- + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
- while test -n \"\$file\"; do
- destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
-
- # If there was a directory component, then change thisdir.
- if test \"x\$destdir\" != \"x\$file\"; then
- case \"\$destdir\" in
- - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
- + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
- *) thisdir=\"\$thisdir/\$destdir\" ;;
- esac
- fi
-
- file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
- - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
- + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
- done
-
- # Try to get the absolute directory name.
- @@ -2858,11 +3730,11 @@
-
- if test "$fast_install" = yes; then
- echo >> $output "\
- - program=lt-'$outputname'
- + program=lt-'$outputname'$exeext
- progdir=\"\$thisdir/$objdir\"
- -
- +
- if test ! -f \"\$progdir/\$program\" || \\
- - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
- + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
- test \"X\$file\" != \"X\$progdir/\$program\"; }; then
-
- file=\"\$\$-\$program\"
- @@ -2877,8 +3749,9 @@
-
- # relink executable if necessary
- if test -n \"\$relink_command\"; then
- - if (cd \"\$thisdir\" && eval \$relink_command); then :
- + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
- else
- + $echo \"\$relink_command_output\" >&2
- $rm \"\$progdir/\$file\"
- exit 1
- fi
- @@ -2907,7 +3780,7 @@
- $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
-
- # Some systems cannot cope with colon-terminated $shlibpath_var
- - # The second colon is a workaround for a bug in BeOS R4 sed
- + # The second colon is a workaround for a bug in BeOS R4 ${SED}
- $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
-
- export $shlibpath_var
- @@ -2927,13 +3800,21 @@
- # Run the actual program with our arguments.
- "
- case $host in
- - *-*-cygwin* | *-*-mingw | *-*-os2*)
- - # win32 systems need to use the prog path for dll
- - # lookup to work
- + # win32 systems need to use the prog path for dll
- + # lookup to work
- + *-*-cygwin* | *-*-pw32*)
- + $echo >> $output "\
- + exec \$progdir/\$program \${1+\"\$@\"}
- +"
- + ;;
- +
- + # Backslashes separate directories on plain windows
- + *-*-mingw | *-*-os2*)
- $echo >> $output "\
- exec \$progdir\\\\\$program \${1+\"\$@\"}
- "
- ;;
- +
- *)
- $echo >> $output "\
- # Export the path to the program.
- @@ -2975,7 +3856,7 @@
- oldobjs="$libobjs_save"
- build_libtool_libs=no
- else
- - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
- + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
- fi
- addlibs="$old_convenience"
- fi
- @@ -2991,11 +3872,11 @@
- exit $status
- fi
- generated="$generated $gentop"
- -
- +
- # Add in members from convenience archives.
- for xlib in $addlibs; do
- # Extract the objects.
- - case "$xlib" in
- + case $xlib in
- [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
- *) xabs=`pwd`"/$xlib" ;;
- esac
- @@ -3041,7 +3922,7 @@
-
- eval cmds=\"$old_archive_cmds\"
- fi
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -3056,19 +3937,26 @@
- fi
-
- # Now create the libtool archive.
- - case "$output" in
- + case $output in
- *.la)
- old_library=
- test "$build_old_libs" = yes && old_library="$libname.$libext"
- $show "creating $output"
-
- - if test -n "$xrpath"; then
- - temp_xrpath=
- - for libdir in $xrpath; do
- - temp_xrpath="$temp_xrpath -R$libdir"
- - done
- - dependency_libs="$temp_xrpath $dependency_libs"
- - fi
- + # Preserve any variables that may affect compiler behavior
- + for var in $variables_saved_for_relink; do
- + if eval test -z \"\${$var+set}\"; then
- + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
- + elif eval var_value=\$$var; test -z "$var_value"; then
- + relink_command="$var=; export $var; $relink_command"
- + else
- + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
- + relink_command="$var=\"$var_value\"; export $var; $relink_command"
- + fi
- + done
- + # Quote the link command for shipping.
- + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
- + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
-
- # Only create the output if not a dry run.
- if test -z "$run"; then
- @@ -3078,8 +3966,52 @@
- break
- fi
- output="$output_objdir/$outputname"i
- + # Replace all uninstalled libtool libraries with the installed ones
- + newdependency_libs=
- + for deplib in $dependency_libs; do
- + case $deplib in
- + *.la)
- + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
- + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- + if test -z "$libdir"; then
- + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
- + exit 1
- + fi
- + newdependency_libs="$newdependency_libs $libdir/$name"
- + ;;
- + *) newdependency_libs="$newdependency_libs $deplib" ;;
- + esac
- + done
- + dependency_libs="$newdependency_libs"
- + newdlfiles=
- + for lib in $dlfiles; do
- + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
- + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
- + if test -z "$libdir"; then
- + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- + exit 1
- + fi
- + newdlfiles="$newdlfiles $libdir/$name"
- + done
- + dlfiles="$newdlfiles"
- + newdlprefiles=
- + for lib in $dlprefiles; do
- + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
- + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
- + if test -z "$libdir"; then
- + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- + exit 1
- + fi
- + newdlprefiles="$newdlprefiles $libdir/$name"
- + done
- + dlprefiles="$newdlprefiles"
- fi
- $rm $output
- + # place dlname in correct position for cygwin
- + tdlname=$dlname
- + case $host,$output,$installed,$module,$dlname in
- + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
- + esac
- $echo > $output "\
- # $outputname - a libtool library file
- # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
- @@ -3088,7 +4020,7 @@
- # It is necessary for linking the library.
-
- # The name that we can dlopen(3).
- -dlname='$dlname'
- +dlname='$tdlname'
-
- # Names of this library.
- library_names='$library_names'
- @@ -3107,16 +4039,23 @@
- # Is this an already installed library?
- installed=$installed
-
- +# Files to dlopen/dlpreopen
- +dlopen='$dlfiles'
- +dlpreopen='$dlprefiles'
- +
- # Directory that this library needs to be installed in:
- -libdir='$install_libdir'\
- -"
- +libdir='$install_libdir'"
- + if test "$installed" = no && test $need_relink = yes; then
- + $echo >> $output "\
- +relink_command=\"$relink_command\""
- + fi
- done
- fi
-
- # Do a symbolic link so that the libtool archive can be found in
- # LD_LIBRARY_PATH before the program is installed.
- $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
- - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
- + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
- ;;
- esac
- exit 0
- @@ -3128,10 +4067,12 @@
-
- # There may be an optional sh(1) argument at the beginning of
- # install_prog (especially on Windows NT).
- - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
- + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
- + # Allow the use of GNU shtool's install command.
- + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
- # Aesthetically quote it.
- arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
- - case "$arg" in
- + case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- arg="\"$arg\""
- ;;
- @@ -3147,7 +4088,7 @@
- # The real first argument should be the name of the installation program.
- # Aesthetically quote it.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- - case "$arg" in
- + case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- arg="\"$arg\""
- ;;
- @@ -3170,7 +4111,7 @@
- continue
- fi
-
- - case "$arg" in
- + case $arg in
- -d) isdir=yes ;;
- -f) prev="-f" ;;
- -g) prev="-g" ;;
- @@ -3195,7 +4136,7 @@
-
- # Aesthetically quote the argument.
- arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
- - case "$arg" in
- + case $arg in
- *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
- arg="\"$arg\""
- ;;
- @@ -3246,11 +4187,11 @@
- exit 1
- fi
- fi
- - case "$destdir" in
- + case $destdir in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
- *)
- for file in $files; do
- - case "$file" in
- + case $file in
- *.lo) ;;
- *)
- $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
- @@ -3272,15 +4213,15 @@
- for file in $files; do
-
- # Do each installation.
- - case "$file" in
- - *.a | *.lib)
- + case $file in
- + *.$libext)
- # Do the static libraries later.
- staticlibs="$staticlibs $file"
- ;;
-
- *.la)
- # Check to see that this really is a libtool archive.
- - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- else
- $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
- $echo "$help" 1>&2
- @@ -3289,8 +4230,9 @@
-
- library_names=
- old_library=
- + relink_command=
- # If there is no directory component, then add one.
- - case "$file" in
- + case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
- @@ -3309,10 +4251,38 @@
- esac
- fi
-
- - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
- + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
- test "X$dir" = "X$file/" && dir=
- dir="$dir$objdir"
-
- + if test -n "$relink_command"; then
- + # Determine the prefix the user has applied to our future dir.
- + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
- +
- + # Don't allow the user to place us outside of our expected
- + # location b/c this prevents finding dependent libraries that
- + # are installed to the same prefix.
- + if test "$inst_prefix_dir" = "$destdir"; then
- + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
- + exit 1
- + fi
- +
- + if test -n "$inst_prefix_dir"; then
- + # Stick the inst_prefix_dir data into the link command.
- + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
- + else
- + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
- + fi
- +
- + $echo "$modename: warning: relinking \`$file'" 1>&2
- + $show "$relink_command"
- + if $run eval "$relink_command"; then :
- + else
- + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
- + exit 1
- + fi
- + fi
- +
- # See the names of the shared library.
- set dummy $library_names
- if test -n "$2"; then
- @@ -3320,9 +4290,16 @@
- shift
- shift
-
- + srcname="$realname"
- + test -n "$relink_command" && srcname="$realname"T
- +
- # Install the shared library and build the symlinks.
- - $show "$install_prog $dir/$realname $destdir/$realname"
- - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
- + $show "$install_prog $dir/$srcname $destdir/$realname"
- + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
- + if test -n "$stripme" && test -n "$striplib"; then
- + $show "$striplib $destdir/$realname"
- + $run eval "$striplib $destdir/$realname" || exit $?
- + fi
-
- if test $# -gt 0; then
- # Delete the old symlinks, and create new ones.
- @@ -3338,7 +4315,7 @@
- # Do each command in the postinstall commands.
- lib="$destdir/$realname"
- eval cmds=\"$postinstall_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -3369,11 +4346,11 @@
- fi
-
- # Deduce the name of the destination old-style object file.
- - case "$destfile" in
- + case $destfile in
- *.lo)
- staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
- ;;
- - *.o | *.obj)
- + *.$objext)
- staticdest="$destfile"
- destfile=
- ;;
- @@ -3411,40 +4388,55 @@
- fi
-
- # Do a test to see if this is really a libtool program.
- - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- - link_against_libtool_libs=
- + case $host in
- + *cygwin*|*mingw*)
- + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
- + ;;
- + *)
- + wrapper=$file
- + ;;
- + esac
- + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
- + notinst_deplibs=
- relink_command=
-
- # If there is no directory component, then add one.
- - case "$file" in
- - */* | *\\*) . $file ;;
- - *) . ./$file ;;
- + case $file in
- + */* | *\\*) . $wrapper ;;
- + *) . ./$wrapper ;;
- esac
-
- # Check the variables that should have been set.
- - if test -z "$link_against_libtool_libs"; then
- - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
- + if test -z "$notinst_deplibs"; then
- + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
- exit 1
- fi
-
- finalize=yes
- - for lib in $link_against_libtool_libs; do
- + for lib in $notinst_deplibs; do
- # Check to see that each library is installed.
- libdir=
- if test -f "$lib"; then
- # If there is no directory component, then add one.
- - case "$lib" in
- + case $lib in
- */* | *\\*) . $lib ;;
- *) . ./$lib ;;
- esac
- fi
- - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
- + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
- if test -n "$libdir" && test ! -f "$libfile"; then
- $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
- finalize=no
- fi
- done
-
- + relink_command=
- + # If there is no directory component, then add one.
- + case $file in
- + */* | *\\*) . $wrapper ;;
- + *) . ./$wrapper ;;
- + esac
- +
- outputname=
- if test "$fast_install" = no && test -n "$relink_command"; then
- if test "$finalize" = yes && test -z "$run"; then
- @@ -3456,6 +4448,7 @@
- $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
- continue
- fi
- + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- outputname="$tmpdir/$file"
- # Replace the output file specification.
- relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
- @@ -3477,6 +4470,23 @@
- fi
- fi
-
- + # remove .exe since cygwin /usr/bin/install will append another
- + # one anyways
- + case $install_prog,$host in
- + /usr/bin/install*,*cygwin*)
- + case $file:$destfile in
- + *.exe:*.exe)
- + # this is ok
- + ;;
- + *.exe:*)
- + destfile=$destfile.exe
- + ;;
- + *:*.exe)
- + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
- + ;;
- + esac
- + ;;
- + esac
- $show "$install_prog$stripme $file $destfile"
- $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
- test -n "$outputname" && ${rm}r "$tmpdir"
- @@ -3493,9 +4503,14 @@
- $show "$install_prog $file $oldlib"
- $run eval "$install_prog \$file \$oldlib" || exit $?
-
- + if test -n "$stripme" && test -n "$striplib"; then
- + $show "$old_striplib $oldlib"
- + $run eval "$old_striplib $oldlib" || exit $?
- + fi
- +
- # Do each command in the postinstall commands.
- eval cmds=\"$old_postinstall_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -3511,11 +4526,10 @@
- if test -n "$current_libdirs"; then
- # Maybe just do a dry run.
- test -n "$run" && current_libdirs=" -n$current_libdirs"
- - exec $SHELL $0 --finish$current_libdirs
- - exit 1
- + exec_cmd='$SHELL $0 --finish$current_libdirs'
- + else
- + exit 0
- fi
- -
- - exit 0
- ;;
-
- # libtool finish mode
- @@ -3534,7 +4548,7 @@
- if test -n "$finish_cmds"; then
- # Do each command in the finish commands.
- eval cmds=\"$finish_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- + save_ifs="$IFS"; IFS='~'
- for cmd in $cmds; do
- IFS="$save_ifs"
- $show "$cmd"
- @@ -3553,7 +4567,7 @@
- fi
-
- # Exit here if they wanted silent mode.
- - test "$show" = : && exit 0
- + test "$show" = ":" && exit 0
-
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- @@ -3563,7 +4577,7 @@
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- @@ -3613,10 +4627,10 @@
- fi
-
- dir=
- - case "$file" in
- + case $file in
- *.la)
- # Check to see that this really is a libtool archive.
- - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
- else
- $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
- $echo "$help" 1>&2
- @@ -3628,7 +4642,7 @@
- library_names=
-
- # If there is no directory component, then add one.
- - case "$file" in
- + case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
- @@ -3683,13 +4697,13 @@
- args=
- for file
- do
- - case "$file" in
- + case $file in
- -*) ;;
- *)
- # Do a test to see if this is really a libtool program.
- - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- # If there is no directory component, then add one.
- - case "$file" in
- + case $file in
- */* | *\\*) . $file ;;
- *) . ./$file ;;
- esac
- @@ -3706,8 +4720,8 @@
-
- if test -z "$run"; then
- if test -n "$shlibpath_var"; then
- - # Export the shlibpath_var.
- - eval "export $shlibpath_var"
- + # Export the shlibpath_var.
- + eval "export $shlibpath_var"
- fi
-
- # Restore saved enviroment variables
- @@ -3718,31 +4732,35 @@
- LANG="$save_LANG"; export LANG
- fi
-
- - # Now actually exec the command.
- - eval "exec \$cmd$args"
- -
- - $echo "$modename: cannot exec \$cmd$args"
- - exit 1
- + # Now prepare to actually exec the command.
- + exec_cmd="\$cmd$args"
- else
- # Display what would be done.
- if test -n "$shlibpath_var"; then
- - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
- - $echo "export $shlibpath_var"
- + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
- + $echo "export $shlibpath_var"
- fi
- $echo "$cmd$args"
- exit 0
- fi
- ;;
-
- - # libtool uninstall mode
- - uninstall)
- - modename="$modename: uninstall"
- + # libtool clean and uninstall mode
- + clean | uninstall)
- + modename="$modename: $mode"
- rm="$nonopt"
- files=
- + rmforce=
- + exit_status=0
- +
- + # This variable tells wrapper scripts just to set variables rather
- + # than running their programs.
- + libtool_install_magic="$magic"
-
- for arg
- do
- - case "$arg" in
- + case $arg in
- + -f) rm="$rm $arg"; rmforce=yes ;;
- -*) rm="$rm $arg" ;;
- *) files="$files $arg" ;;
- esac
- @@ -3754,53 +4772,86 @@
- exit 1
- fi
-
- + rmdirs=
- +
- for file in $files; do
- dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
- - test "X$dir" = "X$file" && dir=.
- + if test "X$dir" = "X$file"; then
- + dir=.
- + objdir="$objdir"
- + else
- + objdir="$dir/$objdir"
- + fi
- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- + test $mode = uninstall && objdir="$dir"
- +
- + # Remember objdir for removal later, being careful to avoid duplicates
- + if test $mode = clean; then
- + case " $rmdirs " in
- + *" $objdir "*) ;;
- + *) rmdirs="$rmdirs $objdir" ;;
- + esac
- + fi
- +
- + # Don't error if the file doesn't exist and rm -f was used.
- + if (test -L "$file") >/dev/null 2>&1 \
- + || (test -h "$file") >/dev/null 2>&1 \
- + || test -f "$file"; then
- + :
- + elif test -d "$file"; then
- + exit_status=1
- + continue
- + elif test "$rmforce" = yes; then
- + continue
- + fi
-
- rmfiles="$file"
-
- - case "$name" in
- + case $name in
- *.la)
- # Possibly a libtool archive, so verify it.
- - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- . $dir/$name
-
- # Delete the libtool libraries and symlinks.
- for n in $library_names; do
- - rmfiles="$rmfiles $dir/$n"
- + rmfiles="$rmfiles $objdir/$n"
- done
- - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
- + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
- + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
-
- - $show "$rm $rmfiles"
- - $run $rm $rmfiles
- -
- - if test -n "$library_names"; then
- - # Do each command in the postuninstall commands.
- - eval cmds=\"$postuninstall_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- - for cmd in $cmds; do
- + if test $mode = uninstall; then
- + if test -n "$library_names"; then
- + # Do each command in the postuninstall commands.
- + eval cmds=\"$postuninstall_cmds\"
- + save_ifs="$IFS"; IFS='~'
- + for cmd in $cmds; do
- + IFS="$save_ifs"
- + $show "$cmd"
- + $run eval "$cmd"
- + if test $? != 0 && test "$rmforce" != yes; then
- + exit_status=1
- + fi
- + done
- IFS="$save_ifs"
- - $show "$cmd"
- - $run eval "$cmd"
- - done
- - IFS="$save_ifs"
- - fi
- + fi
-
- - if test -n "$old_library"; then
- - # Do each command in the old_postuninstall commands.
- - eval cmds=\"$old_postuninstall_cmds\"
- - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
- - for cmd in $cmds; do
- + if test -n "$old_library"; then
- + # Do each command in the old_postuninstall commands.
- + eval cmds=\"$old_postuninstall_cmds\"
- + save_ifs="$IFS"; IFS='~'
- + for cmd in $cmds; do
- + IFS="$save_ifs"
- + $show "$cmd"
- + $run eval "$cmd"
- + if test $? != 0 && test "$rmforce" != yes; then
- + exit_status=1
- + fi
- + done
- IFS="$save_ifs"
- - $show "$cmd"
- - $run eval "$cmd"
- - done
- - IFS="$save_ifs"
- + fi
- + # FIXME: should reinstall the best remaining shared library.
- fi
- -
- - # FIXME: should reinstall the best remaining shared library.
- fi
- ;;
-
- @@ -3809,17 +4860,35 @@
- oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
- rmfiles="$rmfiles $dir/$oldobj"
- fi
- - $show "$rm $rmfiles"
- - $run $rm $rmfiles
- ;;
-
- *)
- - $show "$rm $rmfiles"
- - $run $rm $rmfiles
- + # Do a test to see if this is a libtool program.
- + if test $mode = clean &&
- + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
- + relink_command=
- + . $dir/$file
- +
- + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
- + if test "$fast_install" = yes && test -n "$relink_command"; then
- + rmfiles="$rmfiles $objdir/lt-$name"
- + fi
- + fi
- ;;
- esac
- + $show "$rm $rmfiles"
- + $run $rm $rmfiles || exit_status=1
- done
- - exit 0
- +
- + # Try to remove the ${objdir}s in the directories where we deleted files
- + for dir in $rmdirs; do
- + if test -d "$dir"; then
- + $show "rmdir $dir"
- + $run rmdir $dir >/dev/null 2>&1
- + fi
- + done
- +
- + exit $exit_status
- ;;
-
- "")
- @@ -3829,13 +4898,20 @@
- ;;
- esac
-
- - $echo "$modename: invalid operation mode \`$mode'" 1>&2
- - $echo "$generic_help" 1>&2
- - exit 1
- + if test -z "$exec_cmd"; then
- + $echo "$modename: invalid operation mode \`$mode'" 1>&2
- + $echo "$generic_help" 1>&2
- + exit 1
- + fi
- fi # test -z "$show_help"
-
- +if test -n "$exec_cmd"; then
- + eval exec $exec_cmd
- + exit 1
- +fi
- +
- # We need to display help for each of the modes.
- -case "$mode" in
- +case $mode in
- "") $echo \
- "Usage: $modename [OPTION]... [MODE-ARG]...
-
- @@ -3854,6 +4930,7 @@
-
- MODE must be one of the following:
-
- + clean remove files from the build directory
- compile compile a source file into a libtool object
- execute automatically set library path, then run a program
- finish complete the installation of libtool libraries
- @@ -3866,6 +4943,20 @@
- exit 0
- ;;
-
- +clean)
- + $echo \
- +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
- +
- +Remove files from the build directory.
- +
- +RM is the name of the program to use to delete files associated with each FILE
- +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
- +to RM.
- +
- +If FILE is a libtool library, object or program, all the files associated
- +with it are deleted. Otherwise, only FILE itself is deleted using RM."
- + ;;
- +
- compile)
- $echo \
- "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
- @@ -3875,6 +4966,8 @@
- This mode accepts the following additional options:
-
- -o OUTPUT-FILE set the output file name to OUTPUT-FILE
- + -prefer-pic try to building PIC objects only
- + -prefer-non-pic try to building non-PIC objects only
- -static always build a \`.o' file suitable for static linking
-
- COMPILE-COMMAND is a command to be used in creating a \`standard' object file
- @@ -3954,6 +5047,8 @@
- -LLIBDIR search LIBDIR for required installed libraries
- -lNAME OUTPUT-FILE requires the installed library libNAME
- -module build a library that can dlopened
- + -no-fast-install disable the fast-install mode
- + -no-install link a not-installable executable
- -no-undefined declare that a library does not refer to external symbols
- -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
- -release RELEASE specify package release information
- --- glib1.2-1.2.10.orig/gmodule/Makefile.in
- +++ glib1.2-1.2.10/gmodule/Makefile.in
- @@ -1,6 +1,6 @@
- -# Makefile.in generated automatically by automake 1.4 from Makefile.am
- +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
- -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- @@ -62,8 +62,10 @@
- AS = @AS@
- CC = @CC@
- DLLTOOL = @DLLTOOL@
- +ECHO = @ECHO@
- ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
- ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
- +EXEEXT = @EXEEXT@
- GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
- GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
- GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
- @@ -88,8 +90,10 @@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- OBJDUMP = @OBJDUMP@
- +OBJEXT = @OBJEXT@
- PACKAGE = @PACKAGE@
- RANLIB = @RANLIB@
- +STRIP = @STRIP@
- VERSION = @VERSION@
-
- INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
- @@ -112,17 +116,17 @@
- libgmodule_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
-
-
- -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
- # we should really depend on $(libglib) for libgmodule.la, but libtool has a
- # problem with this ;(
-
- libgplugin_a_la_SOURCES = libgplugin_a.c
- libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
- -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
-
- libgplugin_b_la_SOURCES = libgplugin_b.c
- libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
- -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
-
- noinst_PROGRAMS = testgmodule
- testgmodule_LDFLAGS = @G_MODULE_LDFLAGS@
- @@ -143,10 +147,11 @@
- libgplugin_a_la_OBJECTS = libgplugin_a.lo
- libgplugin_b_la_DEPENDENCIES =
- libgplugin_b_la_OBJECTS = libgplugin_b.lo
- +noinst_PROGRAMS = testgmodule$(EXEEXT)
- PROGRAMS = $(noinst_PROGRAMS)
-
- testgmodule_SOURCES = testgmodule.c
- -testgmodule_OBJECTS = testgmodule.o
- +testgmodule_OBJECTS = testgmodule.$(OBJEXT)
- testgmodule_DEPENDENCIES = libgmodule.la $(top_builddir)/libglib.la
- CFLAGS = @CFLAGS@
- COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
- @@ -161,14 +166,14 @@
-
- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
- -TAR = gtar
- +TAR = tar
- GZIP_ENV = --best
- SOURCES = $(libgmodule_la_SOURCES) $(libgplugin_a_la_SOURCES) $(libgplugin_b_la_SOURCES) testgmodule.c
- -OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.o
- +OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.$(OBJEXT)
-
- all: all-redirect
- .SUFFIXES:
- -.SUFFIXES: .S .c .lo .o .s
- +.SUFFIXES: .S .c .lo .o .obj .s
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gmodule/Makefile
-
- @@ -197,6 +202,11 @@
- .c.o:
- $(COMPILE) -c $<
-
- +# FIXME: We should only use cygpath when building on Windows,
- +# and only if it is available.
- +.c.obj:
- + $(COMPILE) -c `cygpath -w $<`
- +
- .s.o:
- $(COMPILE) -c $<
-
- @@ -205,6 +215,7 @@
-
- mostlyclean-compile:
- -rm -f *.o core *.core
- + -rm -f *.$(OBJEXT)
-
- clean-compile:
-
- @@ -250,8 +261,8 @@
-
- maintainer-clean-noinstPROGRAMS:
-
- -testgmodule: $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
- - @rm -f testgmodule
- +testgmodule$(EXEEXT): $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
- + @rm -f testgmodule$(EXEEXT)
- $(LINK) $(testgmodule_LDFLAGS) $(testgmodule_OBJECTS) $(testgmodule_LDADD) $(LIBS)
-
- install-glibincludeHEADERS: $(glibinclude_HEADERS)
- @@ -287,7 +298,7 @@
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
- - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
- + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
-
- mostlyclean-tags:
-
- @@ -313,15 +324,6 @@
- || cp -p $$d/$$file $(distdir)/$$file || :; \
- fi; \
- done
- -gmodule.lo gmodule.o : gmodule.c gmodule.h ../glib.h ../glibconfig.h \
- - gmoduleconf.h gmodule-dl.c
- -libgplugin_a.lo libgplugin_a.o : libgplugin_a.c gmodule.h ../glib.h \
- - ../glibconfig.h
- -libgplugin_b.lo libgplugin_b.o : libgplugin_b.c gmodule.h ../glib.h \
- - ../glibconfig.h
- -testgmodule.o: testgmodule.c gmodule.h ../glib.h ../glibconfig.h \
- - gmoduleconf.h
- -
- info-am:
- info: info-am
- dvi-am:
- --- glib1.2-1.2.10.orig/gmodule/Makefile.am
- +++ glib1.2-1.2.10/gmodule/Makefile.am
- @@ -29,17 +29,17 @@
- -release $(LT_RELEASE) \
- -export-dynamic
-
- -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
- # we should really depend on $(libglib) for libgmodule.la, but libtool has a
- # problem with this ;(
-
- libgplugin_a_la_SOURCES = libgplugin_a.c
- libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
- -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
-
- libgplugin_b_la_SOURCES = libgplugin_b.c
- libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
- -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
- +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
-
- noinst_PROGRAMS = testgmodule
- testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
- --- glib1.2-1.2.10.orig/gthread/Makefile.in
- +++ glib1.2-1.2.10/gthread/Makefile.in
- @@ -1,6 +1,6 @@
- -# Makefile.in generated automatically by automake 1.4 from Makefile.am
- +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
- -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- @@ -62,8 +62,10 @@
- AS = @AS@
- CC = @CC@
- DLLTOOL = @DLLTOOL@
- +ECHO = @ECHO@
- ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
- ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
- +EXEEXT = @EXEEXT@
- GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
- GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
- GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
- @@ -88,8 +90,10 @@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- OBJDUMP = @OBJDUMP@
- +OBJEXT = @OBJEXT@
- PACKAGE = @PACKAGE@
- RANLIB = @RANLIB@
- +STRIP = @STRIP@
- VERSION = @VERSION@
-
- INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread -DG_LOG_DOMAIN=\"GThread\"
- @@ -105,7 +109,7 @@
- libgthread_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
-
-
- -libgthread_la_LIBADD = @G_THREAD_LIBS@
- +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
-
- noinst_PROGRAMS = testgthread
- testgthread_LDADD = ../libglib.la libgthread.la
- @@ -121,10 +125,11 @@
- LIBS = @LIBS@
- libgthread_la_DEPENDENCIES =
- libgthread_la_OBJECTS = gthread.lo
- +noinst_PROGRAMS = testgthread$(EXEEXT)
- PROGRAMS = $(noinst_PROGRAMS)
-
- testgthread_SOURCES = testgthread.c
- -testgthread_OBJECTS = testgthread.o
- +testgthread_OBJECTS = testgthread.$(OBJEXT)
- testgthread_DEPENDENCIES = ../libglib.la libgthread.la
- testgthread_LDFLAGS =
- CFLAGS = @CFLAGS@
- @@ -137,14 +142,14 @@
-
- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
- -TAR = gtar
- +TAR = tar
- GZIP_ENV = --best
- SOURCES = $(libgthread_la_SOURCES) testgthread.c
- -OBJECTS = $(libgthread_la_OBJECTS) testgthread.o
- +OBJECTS = $(libgthread_la_OBJECTS) testgthread.$(OBJEXT)
-
- all: all-redirect
- .SUFFIXES:
- -.SUFFIXES: .S .c .lo .o .s
- +.SUFFIXES: .S .c .lo .o .obj .s
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gthread/Makefile
-
- @@ -181,6 +186,11 @@
- .c.o:
- $(COMPILE) -c $<
-
- +# FIXME: We should only use cygpath when building on Windows,
- +# and only if it is available.
- +.c.obj:
- + $(COMPILE) -c `cygpath -w $<`
- +
- .s.o:
- $(COMPILE) -c $<
-
- @@ -189,6 +199,7 @@
-
- mostlyclean-compile:
- -rm -f *.o core *.core
- + -rm -f *.$(OBJEXT)
-
- clean-compile:
-
- @@ -228,8 +239,8 @@
-
- maintainer-clean-noinstPROGRAMS:
-
- -testgthread: $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
- - @rm -f testgthread
- +testgthread$(EXEEXT): $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
- + @rm -f testgthread$(EXEEXT)
- $(LINK) $(testgthread_LDFLAGS) $(testgthread_OBJECTS) $(testgthread_LDADD) $(LIBS)
-
- tags: TAGS
- @@ -250,7 +261,7 @@
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
- - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
- + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
-
- mostlyclean-tags:
-
- @@ -276,11 +287,6 @@
- || cp -p $$d/$$file $(distdir)/$$file || :; \
- fi; \
- done
- -gthread.lo gthread.o : gthread.c ../config.h ../glib.h ../glibconfig.h \
- - gthread-posix.c
- -testgthread.o: testgthread.c ../config.h ../testglib.c ../glib.h \
- - ../glibconfig.h
- -
- info-am:
- info: info-am
- dvi-am:
- --- glib1.2-1.2.10.orig/gthread/Makefile.am
- +++ glib1.2-1.2.10/gthread/Makefile.am
- @@ -19,7 +19,7 @@
- -release $(LT_RELEASE) \
- -export-dynamic
-
- -libgthread_la_LIBADD = @G_THREAD_LIBS@
- +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
-
- noinst_PROGRAMS = testgthread
- testgthread_LDADD = ../libglib.la libgthread.la
- --- glib1.2-1.2.10.orig/docs/Makefile.in
- +++ glib1.2-1.2.10/docs/Makefile.in
- @@ -1,6 +1,6 @@
- -# Makefile.in generated automatically by automake 1.4 from Makefile.am
- +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
- -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- @@ -62,8 +62,10 @@
- AS = @AS@
- CC = @CC@
- DLLTOOL = @DLLTOOL@
- +ECHO = @ECHO@
- ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
- ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
- +EXEEXT = @EXEEXT@
- GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
- GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
- GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
- @@ -88,8 +90,10 @@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- OBJDUMP = @OBJDUMP@
- +OBJEXT = @OBJEXT@
- PACKAGE = @PACKAGE@
- RANLIB = @RANLIB@
- +STRIP = @STRIP@
- VERSION = @VERSION@
-
- info_TEXINFOS = glib.texi
- @@ -114,7 +118,7 @@
-
- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
- -TAR = gtar
- +TAR = tar
- GZIP_ENV = --best
- all: all-redirect
- .SUFFIXES:
- @@ -208,7 +212,7 @@
- else ii=; fi; \
- list='$(INFO_DEPS)'; \
- for file in $$list; do \
- - test -z "$ii" \
- + test -z "$$ii" \
- || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
- done
- @$(NORMAL_UNINSTALL)
- --- glib1.2-1.2.10.orig/tests/Makefile.in
- +++ glib1.2-1.2.10/tests/Makefile.in
- @@ -1,6 +1,6 @@
- -# Makefile.in generated automatically by automake 1.4 from Makefile.am
- +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
-
- -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
- +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- @@ -62,8 +62,10 @@
- AS = @AS@
- CC = @CC@
- DLLTOOL = @DLLTOOL@
- +ECHO = @ECHO@
- ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
- ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
- +EXEEXT = @EXEEXT@
- GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
- GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
- GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
- @@ -88,8 +90,10 @@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- OBJDUMP = @OBJDUMP@
- +OBJEXT = @OBJEXT@
- PACKAGE = @PACKAGE@
- RANLIB = @RANLIB@
- +STRIP = @STRIP@
- VERSION = @VERSION@
-
- INCLUDES = -I$(top_srcdir)
- @@ -116,6 +120,10 @@
- mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
- CONFIG_HEADER = ../config.h
- CONFIG_CLEAN_FILES =
- +noinst_PROGRAMS = array-test$(EXEEXT) dirname-test$(EXEEXT) \
- +hash-test$(EXEEXT) list-test$(EXEEXT) node-test$(EXEEXT) \
- +relation-test$(EXEEXT) slist-test$(EXEEXT) string-test$(EXEEXT) \
- +strfunc-test$(EXEEXT) tree-test$(EXEEXT) type-test$(EXEEXT)
- PROGRAMS = $(noinst_PROGRAMS)
-
-
- @@ -124,47 +132,47 @@
- LDFLAGS = @LDFLAGS@
- LIBS = @LIBS@
- array_test_SOURCES = array-test.c
- -array_test_OBJECTS = array-test.o
- +array_test_OBJECTS = array-test.$(OBJEXT)
- array_test_DEPENDENCIES = $(top_builddir)/libglib.la
- array_test_LDFLAGS =
- dirname_test_SOURCES = dirname-test.c
- -dirname_test_OBJECTS = dirname-test.o
- +dirname_test_OBJECTS = dirname-test.$(OBJEXT)
- dirname_test_DEPENDENCIES = $(top_builddir)/libglib.la
- dirname_test_LDFLAGS =
- hash_test_SOURCES = hash-test.c
- -hash_test_OBJECTS = hash-test.o
- +hash_test_OBJECTS = hash-test.$(OBJEXT)
- hash_test_DEPENDENCIES = $(top_builddir)/libglib.la
- hash_test_LDFLAGS =
- list_test_SOURCES = list-test.c
- -list_test_OBJECTS = list-test.o
- +list_test_OBJECTS = list-test.$(OBJEXT)
- list_test_DEPENDENCIES = $(top_builddir)/libglib.la
- list_test_LDFLAGS =
- node_test_SOURCES = node-test.c
- -node_test_OBJECTS = node-test.o
- +node_test_OBJECTS = node-test.$(OBJEXT)
- node_test_DEPENDENCIES = $(top_builddir)/libglib.la
- node_test_LDFLAGS =
- relation_test_SOURCES = relation-test.c
- -relation_test_OBJECTS = relation-test.o
- +relation_test_OBJECTS = relation-test.$(OBJEXT)
- relation_test_DEPENDENCIES = $(top_builddir)/libglib.la
- relation_test_LDFLAGS =
- slist_test_SOURCES = slist-test.c
- -slist_test_OBJECTS = slist-test.o
- +slist_test_OBJECTS = slist-test.$(OBJEXT)
- slist_test_DEPENDENCIES = $(top_builddir)/libglib.la
- slist_test_LDFLAGS =
- string_test_SOURCES = string-test.c
- -string_test_OBJECTS = string-test.o
- +string_test_OBJECTS = string-test.$(OBJEXT)
- string_test_DEPENDENCIES = $(top_builddir)/libglib.la
- string_test_LDFLAGS =
- strfunc_test_SOURCES = strfunc-test.c
- -strfunc_test_OBJECTS = strfunc-test.o
- +strfunc_test_OBJECTS = strfunc-test.$(OBJEXT)
- strfunc_test_DEPENDENCIES = $(top_builddir)/libglib.la
- strfunc_test_LDFLAGS =
- tree_test_SOURCES = tree-test.c
- -tree_test_OBJECTS = tree-test.o
- +tree_test_OBJECTS = tree-test.$(OBJEXT)
- tree_test_DEPENDENCIES = $(top_builddir)/libglib.la
- tree_test_LDFLAGS =
- type_test_SOURCES = type-test.c
- -type_test_OBJECTS = type-test.o
- +type_test_OBJECTS = type-test.$(OBJEXT)
- type_test_DEPENDENCIES = $(top_builddir)/libglib.la
- type_test_LDFLAGS =
- CFLAGS = @CFLAGS@
- @@ -177,14 +185,14 @@
-
- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
- -TAR = gtar
- +TAR = tar
- GZIP_ENV = --best
- SOURCES = array-test.c dirname-test.c hash-test.c list-test.c node-test.c relation-test.c slist-test.c string-test.c strfunc-test.c tree-test.c type-test.c
- -OBJECTS = array-test.o dirname-test.o hash-test.o list-test.o node-test.o relation-test.o slist-test.o string-test.o strfunc-test.o tree-test.o type-test.o
- +OBJECTS = array-test.$(OBJEXT) dirname-test.$(OBJEXT) hash-test.$(OBJEXT) list-test.$(OBJEXT) node-test.$(OBJEXT) relation-test.$(OBJEXT) slist-test.$(OBJEXT) string-test.$(OBJEXT) strfunc-test.$(OBJEXT) tree-test.$(OBJEXT) type-test.$(OBJEXT)
-
- all: all-redirect
- .SUFFIXES:
- -.SUFFIXES: .S .c .lo .o .s
- +.SUFFIXES: .S .c .lo .o .obj .s
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps tests/Makefile
-
- @@ -205,6 +213,11 @@
- .c.o:
- $(COMPILE) -c $<
-
- +# FIXME: We should only use cygpath when building on Windows,
- +# and only if it is available.
- +.c.obj:
- + $(COMPILE) -c `cygpath -w $<`
- +
- .s.o:
- $(COMPILE) -c $<
-
- @@ -213,6 +226,7 @@
-
- mostlyclean-compile:
- -rm -f *.o core *.core
- + -rm -f *.$(OBJEXT)
-
- clean-compile:
-
- @@ -240,48 +254,48 @@
-
- maintainer-clean-libtool:
-
- -array-test: $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
- - @rm -f array-test
- +array-test$(EXEEXT): $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
- + @rm -f array-test$(EXEEXT)
- $(LINK) $(array_test_LDFLAGS) $(array_test_OBJECTS) $(array_test_LDADD) $(LIBS)
-
- -dirname-test: $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
- - @rm -f dirname-test
- +dirname-test$(EXEEXT): $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
- + @rm -f dirname-test$(EXEEXT)
- $(LINK) $(dirname_test_LDFLAGS) $(dirname_test_OBJECTS) $(dirname_test_LDADD) $(LIBS)
-
- -hash-test: $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
- - @rm -f hash-test
- +hash-test$(EXEEXT): $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
- + @rm -f hash-test$(EXEEXT)
- $(LINK) $(hash_test_LDFLAGS) $(hash_test_OBJECTS) $(hash_test_LDADD) $(LIBS)
-
- -list-test: $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
- - @rm -f list-test
- +list-test$(EXEEXT): $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
- + @rm -f list-test$(EXEEXT)
- $(LINK) $(list_test_LDFLAGS) $(list_test_OBJECTS) $(list_test_LDADD) $(LIBS)
-
- -node-test: $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
- - @rm -f node-test
- +node-test$(EXEEXT): $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
- + @rm -f node-test$(EXEEXT)
- $(LINK) $(node_test_LDFLAGS) $(node_test_OBJECTS) $(node_test_LDADD) $(LIBS)
-
- -relation-test: $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
- - @rm -f relation-test
- +relation-test$(EXEEXT): $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
- + @rm -f relation-test$(EXEEXT)
- $(LINK) $(relation_test_LDFLAGS) $(relation_test_OBJECTS) $(relation_test_LDADD) $(LIBS)
-
- -slist-test: $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
- - @rm -f slist-test
- +slist-test$(EXEEXT): $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
- + @rm -f slist-test$(EXEEXT)
- $(LINK) $(slist_test_LDFLAGS) $(slist_test_OBJECTS) $(slist_test_LDADD) $(LIBS)
-
- -string-test: $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
- - @rm -f string-test
- +string-test$(EXEEXT): $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
- + @rm -f string-test$(EXEEXT)
- $(LINK) $(string_test_LDFLAGS) $(string_test_OBJECTS) $(string_test_LDADD) $(LIBS)
-
- -strfunc-test: $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
- - @rm -f strfunc-test
- +strfunc-test$(EXEEXT): $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
- + @rm -f strfunc-test$(EXEEXT)
- $(LINK) $(strfunc_test_LDFLAGS) $(strfunc_test_OBJECTS) $(strfunc_test_LDADD) $(LIBS)
-
- -tree-test: $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
- - @rm -f tree-test
- +tree-test$(EXEEXT): $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
- + @rm -f tree-test$(EXEEXT)
- $(LINK) $(tree_test_LDFLAGS) $(tree_test_OBJECTS) $(tree_test_LDADD) $(LIBS)
-
- -type-test: $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
- - @rm -f type-test
- +type-test$(EXEEXT): $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
- + @rm -f type-test$(EXEEXT)
- $(LINK) $(type_test_LDFLAGS) $(type_test_OBJECTS) $(type_test_LDADD) $(LIBS)
-
- tags: TAGS
- @@ -302,7 +316,7 @@
- awk ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
- - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
- + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
-
- mostlyclean-tags:
-
- @@ -328,18 +342,6 @@
- || cp -p $$d/$$file $(distdir)/$$file || :; \
- fi; \
- done
- -array-test.o: array-test.c ../glib.h ../glibconfig.h
- -dirname-test.o: dirname-test.c ../glib.h ../glibconfig.h
- -hash-test.o: hash-test.c ../config.h ../glib.h ../glibconfig.h
- -list-test.o: list-test.c ../glib.h ../glibconfig.h
- -node-test.o: node-test.c ../config.h ../glib.h ../glibconfig.h
- -relation-test.o: relation-test.c ../glib.h ../glibconfig.h
- -slist-test.o: slist-test.c ../glib.h ../glibconfig.h
- -strfunc-test.o: strfunc-test.c ../glib.h ../glibconfig.h
- -string-test.o: string-test.c ../glib.h ../glibconfig.h
- -tree-test.o: tree-test.c ../glib.h ../glibconfig.h
- -type-test.o: type-test.c ../glib.h ../glibconfig.h
- -
- check-TESTS: $(TESTS)
- @failed=0; all=0; \
- srcdir=$(srcdir); export srcdir; \
- --- glib1.2-1.2.10.orig/debian/rules
- +++ glib1.2-1.2.10/debian/rules
- @@ -0,0 +1,137 @@
- +#!/usr/bin/make -f
- +# Sample debian/rules that uses debhelper.
- +# GNU copyright 1997 to 1999 by Joey Hess.
- +
- +# Uncomment this to turn on verbose mode.
- +#export DH_VERBOSE=1
- +
- +# These are used for cross-compiling and for saving the configure script
- +# from having to guess our platform (since we know it already)
- +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
- +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
- +
- +CFLAGS = -Wall -g
- +
- +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- + CFLAGS += -O0
- +else
- + CFLAGS += -O2
- +endif
- +ifeq (,$(findstring,nostrip,$(DEB_BUILD_OPTIONS)))
- + INSTALL_PROGRAM += -s
- +endif
- +
- +# shared library versions, option 1
- +version=2.0.5
- +major=2
- +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
- +#version=`ls src/.libs/lib*.so.* | \
- +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
- +#major=`ls src/.libs/lib*.so.* | \
- +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
- +
- +config.status: configure
- + dh_testdir
- +
- + # Add here commands to configure the package.
- + ./configure --host=$(DEB_HOST_GNU_TYPE) \
- + --build=$(DEB_BUILD_GNU_TYPE) \
- + --prefix=/usr \
- + --mandir=\$${prefix}/share/man \
- + --infodir=\$${prefix}/share/info \
- + --enable-debug=yes
- +
- +build: build-stamp
- +build-stamp: config.status
- + dh_testdir
- +
- + # Add here commands to compile the package.
- + $(MAKE)
- +
- + touch $@
- +
- +clean:
- + dh_testdir
- + dh_testroot
- + rm -f build-stamp
- +
- + # Add here commands to clean up after the build process.
- + -$(MAKE) distclean
- +
- + -test -r /usr/share/misc/config.sub && \
- + cp -r /usr/share/misc/config.sub config.sub
- + -test -r /usr/share/misc/config.guess && \
- + cp -r /usr/share/misc/config.guess config.guess
- +
- + dh_clean
- +
- +install: build
- + dh_testdir
- + dh_testroot
- + dh_clean -k
- + dh_installdirs
- +
- + # Add here commands to install the package into debian/tmp
- + $(MAKE) install prefix=$(CURDIR)/debian/libglib1.2/usr
- +
- + # for -dbg
- + mkdir -p $(CURDIR)/debian/libglib1.2/usr/lib/debug
- + for l in `find $(CURDIR)/debian/libglib1.2/usr/lib -name '*.so*'`; do \
- + cp -vdf $$l \
- + $(CURDIR)/debian/libglib1.2/usr/lib/debug/; \
- + done
- +
- + dh_movefiles --sourcedir=debian/libglib1.2
- + -find $(CURDIR)/debian/ -type d -empty | xargs rmdir -p 2>&1 > /dev/null
- +
- +# Build architecture-independent files here.
- +binary-indep: build install
- + dh_testdir -i
- + dh_testroot -i
- +
- + dh_installdocs -i
- +
- + dh_installexamples -i
- + dh_installinfo -i
- + dh_installchangelogs -i ChangeLog
- + dh_compress -i
- + dh_fixperms -i
- + dh_installdeb -i
- + dh_gencontrol -i
- + dh_md5sums -i
- + dh_builddeb -i
- +
- +# Build architecture-dependent files here.
- +binary-arch: build install
- + dh_testdir -a
- + dh_testroot -a
- +
- +# dh_installdebconf
- + dh_installdocs -a
- + dh_installexamples -a
- + dh_installmenu -a
- +# dh_installlogrotate
- +# dh_installemacsen
- +# dh_installpam
- +# dh_installmime
- +# dh_installinit
- +# dh_installcron
- + dh_installman -a
- + dh_installinfo -a
- +# dh_undocumented
- + dh_installchangelogs -a ChangeLog
- + dh_link -a
- + dh_strip -a -Nlibglib1.2-dbg
- + dh_compress -a
- + dh_fixperms -a
- + dh_makeshlibs -a -Nlibglib1.2-dbg
- + dh_makeshlibs -n -plibglib1.2 -V 'libglib1.2 (>= 1.2.0)'
- + dh_installdeb -a
- +# dh_perl
- + dh_shlibdeps -a
- + dh_gencontrol -a
- + dh_md5sums -a
- + dh_builddeb -a
- +
- +binary: binary-indep binary-arch
- +.PHONY: build clean binary-indep binary-arch binary install
- --- glib1.2-1.2.10.orig/debian/docs
- +++ glib1.2-1.2.10/debian/docs
- @@ -0,0 +1,2 @@
- +NEWS
- +README
- --- glib1.2-1.2.10.orig/debian/README.Debian
- +++ glib1.2-1.2.10/debian/README.Debian
- @@ -0,0 +1,25 @@
- +glib for Debian
- +----------------------
- +
- +This is GLib version 1.2. GLib, is a library which includes support
- +routines for C such as lists, trees, hashes, memory allocation, and
- +many other things.
- +
- +Versions of GLib prior to 1.1 are distributed with GTK+ versions 1.1.0
- +and earlier.
- +
- +The GIMP Tool Kit (gtk) is a set of widgets to help you program
- +programs for the X Windowing System easily and powerfully.
- +
- +gtk is the moving force behind The GNU Image Manipulation Program (The
- +GIMP) -- the number one freely-available image editing and creation
- +program available.
- +
- +gtk is rapidly under development, and the source tree has officially
- +been separated from The GIMP now, as other teams of programmers
- +are beginning to write software using its great widget set -- like
- +GNOME, a desktop interface for X, and gzilla, a freely available
- +web browser for X.
- +
- +Ben Gertzfield <che@debian.org>, Mon, 29 Sep 1997 13:11:45 -0700
- +
- --- glib1.2-1.2.10.orig/debian/changelog
- +++ glib1.2-1.2.10/debian/changelog
- @@ -0,0 +1,298 @@
- +glib1.2 (1.2.10-9) unstable; urgency=low
- +
- + * debian/control:
- + - bumped Standards-Version to 3.5.10.0.
- + - changed the sections for libglib1.2-dev and libglib1.2-dbg to libdevel.
- + * debian/compat:
- + - use it instead of DH_COMPAT.
- + * gmodule/Makefile.in, gthread/Makefile.in:
- + fix the undefined non-weak symbols. (closes: Bug#193347)
- +
- + -- Akira TAGOH <tagoh@debian.org> Sun, 18 May 2003 00:00:17 +0900
- +
- +glib1.2 (1.2.10-8) unstable; urgency=low
- +
- + * Fixed libtool issue on mispel. (closes: Bug#183793)
- + * acinclude.m4, ltconfig:
- + - removed. it contained the old libtool stuff.
- +
- + -- Akira TAGOH <tagoh@debian.org> Tue, 11 Mar 2003 23:36:10 +0900
- +
- +glib1.2 (1.2.10-7) unstable; urgency=low
- +
- + * debian/rules:
- + - fix twice modified the maintainer script for dh_installdocs.
- + - support DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE.
- + - support noopt and nostrip for DEB_BUILD_OPTIONS.
- + - copy the latest config.sub and config.guess. (closes: Bug#181942)
- + - don't call ldconfig for -dbg package.
- + * debian/control:
- + - bumped Standards-Version to 3.5.8.
- + - updated Build-Depends.
- + - split the documentation files into libglib1.2-doc.
- + * debian/libglib1.2-doc.info: add glib.info. (closes: Bug#159677)
- +
- + -- Akira TAGOH <tagoh@debian.org> Thu, 27 Feb 2003 00:12:39 +0900
- +
- +glib1.2 (1.2.10-6) unstable; urgency=low
- +
- + * debian/control:
- + - removed libc6-dev from Build-Depends.
- + - changed libc6-dev to libc6-dev | libc-dev in -dev's Depends.
- +
- + -- Akira TAGOH <tagoh@debian.org> Thu, 22 Aug 2002 02:02:32 +0900
- +
- +glib1.2 (1.2.10-5) unstable; urgency=low
- +
- + * debian/control: add libc6-dev to Depends for -dev (closes: Bug#147653)
- +
- + -- Akira TAGOH <tagoh@debian.org> Wed, 22 May 2002 23:58:14 +0900
- +
- +glib1.2 (1.2.10-4) unstable; urgency=low
- +
- + * debian/control: Fixed build-depends for NetBSD/i386 (closes: Bug#133443)
- +
- + -- Akira TAGOH <tagoh@debian.org> Wed, 13 Feb 2002 02:22:20 +0900
- +
- +glib1.2 (1.2.10-3) unstable; urgency=low
- +
- + * Closed a NMU bug. (closes: Bug#93932)
- + * Fixed description typo (closes: Bug#102988)
- + * -dbg package contains shared libraries for debugging. so if you
- + need static link, add -static to compiler option and use
- + static libraries which is included in libglib1.2-dev.
- +
- + -- Akira TAGOH <tagoh@debian.org> Sat, 24 Nov 2001 20:54:25 +0900
- +
- +glib1.2 (1.2.10-2) unstable; urgency=low
- +
- + * I took over this package from Ben.
- + * Closed a bug because it is already fixed in the latest release.
- + (closes: Bug#62463)
- +
- + -- Akira TAGOH <tagoh@debian.org> Sat, 10 Nov 2001 19:49:14 +0900
- +
- +glib1.2 (1.2.10-1.2) unstable; urgency=low
- +
- + * Non-Maintainer Upload, approved by Ben.
- + * Updated config.sub and config.guess for ia64 (closes: #93932).
- + * If -dev's postinst fails at install-info, have a look at Bug#99816.
- +
- + -- Jordi Mallach <jordi@debian.org> Sat, 23 Jun 2001 05:28:15 +0200
- +
- +glib1.2 (1.2.10-1.1) unstable; urgency=low
- +
- + * Binary-only rebuild because of gcc 2.95 atexit() problem on i386.
- + (Closes: #93052)
- +
- + -- Ben Gertzfield <che@debian.org> Wed, 11 Apr 2001 19:46:27 -0700
- +
- +glib1.2 (1.2.10-1) unstable; urgency=low
- +
- + * New upstream version.
- + * Patch config.sub for s390 architecture. (Closes: #88553)
- +
- + -- Ben Gertzfield <che@debian.org> Sun, 1 Apr 2001 21:44:47 -0700
- +
- +glib1.2 (1.2.9-1) unstable; urgency=low
- +
- + * New upstream version.
- + * Include upstream changelog. (Closes: #59744)
- + * Note that the include files have been moved (according to
- + upstream) to /usr/include/glib-1.2/, but this should not be a
- + problem for anything using glib-config. Please, PLEASE, don't
- + submit bugs on my poor packages because your program isn't using
- + glib-config!
- + * Fix bashisms in debian/rules. (Hah, caught 'em on my own..)
- +
- + -- Ben Gertzfield <che@debian.org> Fri, 2 Mar 2001 16:18:36 -0800
- +
- +glib1.2 (1.2.8-2) unstable; urgency=low
- +
- + * Bump Standards-Version to 3.2.1.
- +
- + -- Ben Gertzfield <che@debian.org> Sat, 23 Dec 2000 01:31:39 -0800
- +
- +glib1.2 (1.2.8-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Wed, 24 May 2000 19:41:54 -0700
- +
- +glib1.2 (1.2.7-2) frozen unstable; urgency=medium
- +
- + * Fix "guard code" in configure.in that tests for gcc version
- + greater than 2.8 (will fail when 3.0 comes out.) This fixes
- + *half* of the release-critical bug report #55246.
- + * The other half of RC bug #55246 is not really a glib problem;
- + G_GNUC_EXTENSION arguably should be defined on all platforms, but
- + that's up to upstream to change this. It's been reported upstream as
- + gnome bug #6328, http://bugs.gnome.org/db/63/6328.html. In any case,
- + gentoo should be using G_GINT64_CONSTANT(12345) for portably declaring
- + 64-bit constants, instead of the undocumented, internal,
- + not-defined-on-all-platforms G_GNUC_EXTENSION. I will be reassigning
- + the remainder of RC bug #55246 to gentoo.
- +
- + -- Ben Gertzfield <che@debian.org> Mon, 28 Feb 2000 12:33:57 -0800
- +
- +glib1.2 (1.2.7-1) frozen unstable; urgency=low
- +
- + * To fix i18n problems with GTK+, glib 1.2.7 and gtk+ 1.2.7
- + must both make it into frozen.
- + * (New upstream version, too. :)
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 17 Feb 2000 09:12:20 -0800
- +
- +glib1.2 (1.2.6-1) unstable; urgency=low
- +
- + * New upstream version.
- + * Make sure docs are in /usr/share/doc/libglib1.2 etc.
- +
- + -- Ben Gertzfield <che@debian.org> Fri, 15 Oct 1999 09:44:19 -0700
- +
- +glib1.2 (1.2.5-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Fri, 24 Sep 1999 09:27:25 -0700
- +
- +glib1.2 (1.2.4-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 24 Aug 1999 11:10:11 -0700
- +
- +glib1.2 (1.2.3-2) unstable; urgency=low
- +
- + * Erg. Make sure -dev depends on exact version of lib, and -dbg
- + depends on exact version of -dev and lib.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 27 Jul 1999 15:24:33 -0700
- +
- +glib1.2 (1.2.3-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 11 May 1999 20:55:00 -0700
- +
- +glib1.2 (1.2.2-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Mon, 26 Apr 1999 18:15:06 -0700
- +
- +glib1.2 (1.2.1-2) unstable; urgency=low
- +
- + * Recompile with GNU libc 2.1.
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 15 Apr 1999 13:26:50 -0700
- +
- +glib1.2 (1.2.1-1) unstable; urgency=low
- +
- + * New upstream version.
- + * Make the shlibs looser; now packages depend on libglib1.2 (>= 1.2.0)
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 25 Mar 1999 10:33:26 -0800
- +
- +glib1.2 (1.2.0-1) unstable; urgency=low
- +
- + * Hallelujah! :) We made it.
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 25 Feb 1999 22:17:36 -0800
- +
- +glib1.1.16 (1.1.16-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 16 Feb 1999 16:55:07 -0800
- +
- +glib1.1.13 (1.1.13-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Wed, 20 Jan 1999 18:25:48 -0800
- +
- +glib1.1.12 (1.1.12-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Mon, 4 Jan 1999 14:13:59 -0800
- +
- +glib1.1.11 (1.1.11-1) unstable; urgency=low
- +
- + * New upstream version. (They skipped .10.)
- +
- + -- Ben Gertzfield <che@debian.org> Wed, 30 Dec 1998 21:46:40 -0800
- +
- +glib1.1.9 (1.1.9-1) unstable; urgency=low
- +
- + * New upstream version.
- + * Now debian/rules uses a $(version) variable to make my life easier.
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 17 Dec 1998 10:36:27 -0800
- +
- +glib1.1.6 (1.1.6-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 8 Dec 1998 20:54:59 -0800
- +
- +glib1.1.5 (1.1.5-2) unstable; urgency=low
- +
- + * Now libglib1.1.5-dev Provides: libglib-dev and libglib1.1-dev.
- +
- + -- Ben Gertzfield <che@debian.org> Sun, 29 Nov 1998 17:59:52 -0800
- +
- +glib1.1.5 (1.1.5-1) unstable; urgency=low
- +
- + * Now the source and binary packages *all* specifically have the version
- + number in them. This is so a new release of glib or gtk+ does not break
- + all apps dependant upon glib or gtk+'s unstable branch.
- + * Removed --enable-debug=no from libglib1.1 build; it was causing problems
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 24 Nov 1998 14:25:15 -0800
- +
- +glib (1.1.4-1) unstable; urgency=low
- +
- + * New upstream version.
- + * debian/control: libglib-dev and libglib-dbg now depend on ${Source-Version}
- + of libglib1.1 to make upgrades force you to have one version of the library
- + and -dev and -dbg, no more multiple versions allowed.
- +
- + -- Ben Gertzfield <che@debian.org> Thu, 5 Nov 1998 10:50:03 -0800
- +
- +glib (1.1.3-2) unstable; urgency=low
- +
- + * Rebuild with new clean-dbg target to fix my error helped along by
- + an old broken debhelper.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 29 Sep 1998 13:01:24 -0700
- +
- +glib (1.1.3-1) unstable; urgency=low
- +
- + * New upstream version.
- + * New libglib-dbg package.
- +
- + -- Ben Gertzfield <che@debian.org> Mon, 21 Sep 1998 22:30:46 -0700
- +
- +glib (1.1.2-1) unstable; urgency=low
- +
- + * New upstream version (that was fast!).
- +
- + -- Ben Gertzfield <che@debian.org> Wed, 5 Aug 1998 12:13:59 -0700
- +
- +glib (1.1.1-1) unstable; urgency=low
- +
- + * New upstream version.
- +
- + -- Ben Gertzfield <che@debian.org> Tue, 4 Aug 1998 22:42:09 -0700
- +
- +glib (1.1.0-1) unstable; urgency=low
- +
- + * Split off of GTK+ package upstream. New package.
- +
- + -- Ben Gertzfield <che@debian.org> Mon, 27 Jul 1998 14:11:04 -0700
- +
- +Local variables:
- +mode: debian-changelog
- +End:
- --- glib1.2-1.2.10.orig/debian/control
- +++ glib1.2-1.2.10/debian/control
- @@ -0,0 +1,73 @@
- +Source: glib1.2
- +Priority: optional
- +Section: libs
- +Maintainer: Akira TAGOH <tagoh@debian.org>
- +Standards-Version: 3.5.10.0
- +Build-Depends: debhelper (>> 4.0.0), libpth-dev [netbsd-i386], autotools-dev
- +
- +Package: libglib1.2
- +Architecture: any
- +Section: libs
- +Depends: ${shlibs:Depends}
- +Replaces: libgtk-doc
- +Description: The GLib library of C routines
- + GLib is a library containing many useful C routines for things such
- + as trees, hashes, and lists. GLib was previously distributed with
- + the GTK+ toolkit, but has been split off as of the developers' version
- + 1.1.0.
- + .
- + You do not need to install this package if you have libgtk1 (note 1,
- + not 1.1 or 1.2) installed. libgtk1 included libglib in it. libgtk1.1
- + and libgtk1.2, however, do need libglib1.1 to be installed separately.
- +
- +Package: libglib1.2-dev
- +Architecture: any
- +Section: libdevel
- +Depends: libglib1.2 (= ${Source-Version}), libc6-dev | libc-dev, pkg-config
- +Conflicts: libglib-dev, libglib1.1.5-dev, libglib1.1.7-dev, libglib1.1.8-dev, libglib1.1.9-dev, libglib1.1.10-dev, libglib1.1.11-dev, libglib1.1.12-dev, libglib1.1.13-dev, libglib1.1.16-dev, libglib1.2 (<< 1.2.10-3)
- +Provides: libglib-dev, libglib1.1-dev
- +Replaces: libgtk-doc, libglib1.1.5-dev, libglib1.1.6-dev, libglib1.1.9-dev, libglib1.1.11-dev, libglib1.1.12-dev, libglib1.1.13-dev, libglib1.1.16-dev, libglib1.2 (<< 1.2.10-3)
- +Suggests: libglib1.2-doc
- +Description: Development files for GLib library
- + GLib is a library containing many useful C routines for things such
- + as trees, hashes, and lists. GLib was previously distributed with
- + the GTK+ toolkit, but has been split off as of the developers' version
- + 1.1.0.
- + .
- + This package contains the header files and static libraries for the
- + GLib C library
- +
- +Package: libglib1.2-dbg
- +Architecture: any
- +Section: libdevel
- +Priority: extra
- +Conflicts: libgtk-dev
- +Depends: libglib1.2 (= ${Source-Version})
- +Conflicts: libglib-dbg, libglib1.1.5-dbg, libglib1.1.7-dbg, libglib1.1.8-dbg, libglib1.1.9-dbg, libglib1.1.11-dbg, libglib1.1.12-dbg, libglib1.1.13-dbg, libglib1.1.16-dbg
- +Replaces: libglib1.1.5-dbg, libglib1.1.6-dbg, libglib1.1.9-dbg, libglib1.1.11-dbg, libglib1.1.12-dbg, libglib1.1.13-dbg, libglib1.1.16-dbg
- +Description: GLib libraries and debugging symbols
- + GLib is a library containing many useful C routines for things such
- + as trees, hashes, and lists. GLib was previously distributed with
- + the GTK+ toolkit, but has been split off as of the developers' version
- + 1.1.0.
- + .
- + This package contains unstripped shared libraries. it is provided
- + primarily to provide a backtrace with names in a debugger, this makes
- + it somewhat easier to interpret core dumps. The libraries are installed
- + in /usr/lib/debug and can be used by placing that directory in
- + LD_LIBRARY_PATH.
- + Most people will not need this package.
- +
- +Package: libglib1.2-doc
- +Architecture: all
- +Section: doc
- +Depends: lynx | www-browser
- +Description: Documentation files for the GLib library version 1.2
- + GLib is a library containing many useful C routines for things such
- + as trees, hashes, and lists. GLib was previously distributed with
- + the GTK+ toolkit, but has been split off as of the developers' version
- + 1.1.0.
- + .
- + This package contains the documentation files for the GLib library
- + in /usr/share/doc/libglib1.2-doc/ .
- +
- --- glib1.2-1.2.10.orig/debian/copyright
- +++ glib1.2-1.2.10/debian/copyright
- @@ -0,0 +1,8 @@
- +This package was debianized by Ben Gertzfield <che@debian.org>
- +on Mon, 27 Jul 1998 14:17:44 -0700
- +
- +GIMP's source may be fetched from http://www.gimp.org/ .
- +
- +It may be redistributed under the terms of the GNU LGPL, Version 2 or
- +later, found on Debian systems in the file /usr/share/common-licenses/LGPL-2.
- +
- --- glib1.2-1.2.10.orig/debian/compat
- +++ glib1.2-1.2.10/debian/compat
- @@ -0,0 +1 @@
- +4
- --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.dirs
- +++ glib1.2-1.2.10/debian/libglib1.2-dbg.dirs
- @@ -0,0 +1 @@
- +usr/lib/debug
- --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.files
- +++ glib1.2-1.2.10/debian/libglib1.2-dbg.files
- @@ -0,0 +1 @@
- +usr/lib/debug/*.so*
- --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.dirs
- +++ glib1.2-1.2.10/debian/libglib1.2-dev.dirs
- @@ -0,0 +1,4 @@
- +usr/include
- +usr/lib
- +usr/lib/pkgconfig
- +
- --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.doc-base
- +++ glib1.2-1.2.10/debian/libglib1.2-doc.doc-base
- @@ -0,0 +1,16 @@
- +Document: glib-docs
- +Title: GLib C library documentation
- +Author: Gregory McLean
- +Abstract: Library reference for GLib C library of useful functions
- + This document goes into detail on each function of the GLib C
- + library of useful functions to deal with common structures like
- + lists, trees, et cetera.
- +Section: Apps/Programming
- +
- +Format: texinfo
- +Files: /usr/share/doc/libglib1.2-doc/glib.texi.gz
- +
- +Format: HTML
- +Index: /usr/share/doc/libglib1.2-doc/glib_toc.html
- +Files: /usr/share/doc/libglib1.2-doc/glib.html
- +
- --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.files
- +++ glib1.2-1.2.10/debian/libglib1.2-dev.files
- @@ -0,0 +1,7 @@
- +usr/bin/glib-config
- +usr/include/*
- +usr/lib/lib*.{so,la,a}
- +usr/lib/glib/include/*
- +usr/lib/pkgconfig/*.pc
- +usr/share/aclocal/*m4
- +usr/share/man/man1/glib-config.1*
- --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.dirs
- +++ glib1.2-1.2.10/debian/libglib1.2-doc.dirs
- @@ -0,0 +1 @@
- +usr/share/doc/libglib1.2-doc
- --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.files
- +++ glib1.2-1.2.10/debian/libglib1.2-doc.files
- @@ -0,0 +1,2 @@
- +usr/share/doc/libglib1.2-doc/*
- +usr/share/info/*
- --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.docs
- +++ glib1.2-1.2.10/debian/libglib1.2-doc.docs
- @@ -0,0 +1,2 @@
- +docs/*.html
- +docs/*.texi
- --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.info
- +++ glib1.2-1.2.10/debian/libglib1.2-doc.info
- @@ -0,0 +1 @@
- +docs/glib.info
- --- glib1.2-1.2.10.orig/glibconfig.h
- +++ glib1.2-1.2.10/glibconfig.h
- @@ -0,0 +1,131 @@
- +/* glibconfig.h
- + *
- + * This is a generated file. Please modify `configure.in'
- + */
- +
- +#ifndef GLIBCONFIG_H
- +#define GLIBCONFIG_H
- +
- +#include <limits.h>
- +#include <float.h>
- +#define GLIB_HAVE_SYS_POLL_H
- +
- +#ifdef __cplusplus
- +extern "C" {
- +#endif /* __cplusplus */
- +
- +#define G_MINFLOAT FLT_MIN
- +#define G_MAXFLOAT FLT_MAX
- +#define G_MINDOUBLE DBL_MIN
- +#define G_MAXDOUBLE DBL_MAX
- +#define G_MINSHORT SHRT_MIN
- +#define G_MAXSHORT SHRT_MAX
- +#define G_MININT INT_MIN
- +#define G_MAXINT INT_MAX
- +#define G_MINLONG LONG_MIN
- +#define G_MAXLONG LONG_MAX
- +
- +typedef signed char gint8;
- +typedef unsigned char guint8;
- +typedef signed short gint16;
- +typedef unsigned short guint16;
- +typedef signed int gint32;
- +typedef unsigned int guint32;
- +
- +#if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
- +# define G_GNUC_EXTENSION __extension__
- +#else
- +# define G_GNUC_EXTENSION
- +#endif
- +
- +#define G_HAVE_GINT64 1
- +
- +G_GNUC_EXTENSION typedef signed long long gint64;
- +G_GNUC_EXTENSION typedef unsigned long long guint64;
- +
- +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
- +
- +#define GPOINTER_TO_INT(p) ((gint) (p))
- +#define GPOINTER_TO_UINT(p) ((guint) (p))
- +
- +#define GINT_TO_POINTER(i) ((gpointer) (i))
- +#define GUINT_TO_POINTER(u) ((gpointer) (u))
- +
- +#ifdef NeXT /* @#%@! NeXTStep */
- +# define g_ATEXIT(proc) (!atexit (proc))
- +#else
- +# define g_ATEXIT(proc) (atexit (proc))
- +#endif
- +
- +#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
- +
- +#define GLIB_MAJOR_VERSION 1
- +#define GLIB_MINOR_VERSION 2
- +#define GLIB_MICRO_VERSION 10
- +
- +
- +#define G_VA_COPY __va_copy
- +
- +#ifdef __cplusplus
- +#define G_HAVE_INLINE 1
- +#else /* !__cplusplus */
- +#define G_HAVE_INLINE 1
- +#define G_HAVE___INLINE 1
- +#define G_HAVE___INLINE__ 1
- +#endif /* !__cplusplus */
- +
- +#define G_THREADS_ENABLED
- +#define G_THREADS_IMPL_POSIX
- +typedef struct _GStaticMutex GStaticMutex;
- +struct _GStaticMutex
- +{
- + struct _GMutex *runtime_mutex;
- + union {
- + char pad[24];
- + double dummy_double;
- + void *dummy_pointer;
- + long dummy_long;
- + } aligned_pad_u;
- +};
- +#define G_STATIC_MUTEX_INIT { NULL, { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} } }
- +#define g_static_mutex_get_mutex(mutex) (g_thread_use_default_impl ? ((GMutex*) &((mutex)->aligned_pad_u)) : g_static_mutex_get_mutex_impl (&((mutex)->runtime_mutex)))
- +
- +#define GINT16_TO_LE(val) ((gint16) (val))
- +#define GUINT16_TO_LE(val) ((guint16) (val))
- +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
- +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
- +#define GINT32_TO_LE(val) ((gint32) (val))
- +#define GUINT32_TO_LE(val) ((guint32) (val))
- +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
- +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
- +#define GINT64_TO_LE(val) ((gint64) (val))
- +#define GUINT64_TO_LE(val) ((guint64) (val))
- +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
- +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
- +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
- +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
- +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
- +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
- +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
- +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
- +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
- +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
- +#define G_BYTE_ORDER G_LITTLE_ENDIAN
- +
- +#define GLIB_SYSDEF_POLLIN =1
- +#define GLIB_SYSDEF_POLLOUT =4
- +#define GLIB_SYSDEF_POLLPRI =2
- +#define GLIB_SYSDEF_POLLERR =8
- +#define GLIB_SYSDEF_POLLHUP =16
- +#define GLIB_SYSDEF_POLLNVAL =32
- +
- +
- +#define G_HAVE_WCHAR_H 1
- +#define G_HAVE_WCTYPE_H 1
- +
- +
- +#ifdef __cplusplus
- +}
- +#endif /* __cplusplus */
- +
- +#endif /* GLIBCONFIG_H */
- --- glib1.2-1.2.10.orig/stamp-gc-h
- +++ glib1.2-1.2.10/stamp-gc-h
- @@ -0,0 +1 @@
- +timestamp
- --- glib1.2-1.2.10.orig/glibconfig-sysdefs.h
- +++ glib1.2-1.2.10/glibconfig-sysdefs.h
- @@ -0,0 +1,6 @@
- +#define GLIB_SYSDEF_POLLIN =1
- +#define GLIB_SYSDEF_POLLOUT =4
- +#define GLIB_SYSDEF_POLLPRI =2
- +#define GLIB_SYSDEF_POLLERR =8
- +#define GLIB_SYSDEF_POLLHUP =16
- +#define GLIB_SYSDEF_POLLNVAL =32
|