01-debian-9.patch 609 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988
  1. --- glib1.2-1.2.10.orig/Makefile.in
  2. +++ glib1.2-1.2.10/Makefile.in
  3. @@ -1,6 +1,6 @@
  4. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  5. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  6. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  7. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  8. # This Makefile.in is free software; the Free Software Foundation
  9. # gives unlimited permission to copy and/or distribute it,
  10. # with or without modifications, as long as this notice is preserved.
  11. @@ -64,8 +64,10 @@
  12. AS = @AS@
  13. CC = @CC@
  14. DLLTOOL = @DLLTOOL@
  15. +ECHO = @ECHO@
  16. ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
  17. ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
  18. +EXEEXT = @EXEEXT@
  19. GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
  20. GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
  21. GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
  22. @@ -90,8 +92,10 @@
  23. MAINT = @MAINT@
  24. MAKEINFO = @MAKEINFO@
  25. OBJDUMP = @OBJDUMP@
  26. +OBJEXT = @OBJEXT@
  27. PACKAGE = @PACKAGE@
  28. RANLIB = @RANLIB@
  29. +STRIP = @STRIP@
  30. VERSION = @VERSION@
  31. AUTOMAKE_OPTIONS = 1.4
  32. @@ -154,18 +158,20 @@
  33. gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo \
  34. gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo \
  35. gutils.lo
  36. +noinst_PROGRAMS = testglib$(EXEEXT) testgdate$(EXEEXT) \
  37. +testgdateparser$(EXEEXT)
  38. PROGRAMS = $(noinst_PROGRAMS)
  39. testglib_SOURCES = testglib.c
  40. -testglib_OBJECTS = testglib.o
  41. +testglib_OBJECTS = testglib.$(OBJEXT)
  42. testglib_DEPENDENCIES = libglib.la
  43. testglib_LDFLAGS =
  44. testgdate_SOURCES = testgdate.c
  45. -testgdate_OBJECTS = testgdate.o
  46. +testgdate_OBJECTS = testgdate.$(OBJEXT)
  47. testgdate_DEPENDENCIES = libglib.la
  48. testgdate_LDFLAGS =
  49. testgdateparser_SOURCES = testgdateparser.c
  50. -testgdateparser_OBJECTS = testgdateparser.o
  51. +testgdateparser_OBJECTS = testgdateparser.$(OBJEXT)
  52. testgdateparser_DEPENDENCIES = libglib.la
  53. testgdateparser_LDFLAGS =
  54. SCRIPTS = $(bin_SCRIPTS)
  55. @@ -180,22 +186,22 @@
  56. HEADERS = $(glibinclude_HEADERS)
  57. DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
  58. -Makefile.am Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 \
  59. -config.guess config.h.in config.sub configure configure.in \
  60. -glib-config.in glib.pc.in glib.spec.in gmodule.pc.in gthread.pc.in \
  61. -install-sh ltconfig ltmain.sh missing mkinstalldirs
  62. +Makefile.am Makefile.in NEWS acconfig.h aclocal.m4 config.guess \
  63. +config.h.in config.sub configure configure.in glib-config.in glib.pc.in \
  64. +glib.spec.in gmodule.pc.in gthread.pc.in install-sh ltmain.sh missing \
  65. +mkinstalldirs
  66. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  67. -TAR = gtar
  68. +TAR = tar
  69. GZIP_ENV = --best
  70. SOURCES = $(libglib_la_SOURCES) testglib.c testgdate.c testgdateparser.c
  71. -OBJECTS = $(libglib_la_OBJECTS) testglib.o testgdate.o testgdateparser.o
  72. +OBJECTS = $(libglib_la_OBJECTS) testglib.$(OBJEXT) testgdate.$(OBJEXT) testgdateparser.$(OBJEXT)
  73. all: all-redirect
  74. .SUFFIXES:
  75. -.SUFFIXES: .S .c .lo .o .s
  76. +.SUFFIXES: .S .c .lo .o .obj .s
  77. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  78. cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
  79. @@ -203,7 +209,7 @@
  80. cd $(top_builddir) \
  81. && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  82. -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
  83. +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
  84. cd $(srcdir) && $(ACLOCAL)
  85. config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  86. @@ -277,6 +283,11 @@
  87. .c.o:
  88. $(COMPILE) -c $<
  89. +# FIXME: We should only use cygpath when building on Windows,
  90. +# and only if it is available.
  91. +.c.obj:
  92. + $(COMPILE) -c `cygpath -w $<`
  93. +
  94. .s.o:
  95. $(COMPILE) -c $<
  96. @@ -285,6 +296,7 @@
  97. mostlyclean-compile:
  98. -rm -f *.o core *.core
  99. + -rm -f *.$(OBJEXT)
  100. clean-compile:
  101. @@ -324,16 +336,16 @@
  102. maintainer-clean-noinstPROGRAMS:
  103. -testglib: $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
  104. - @rm -f testglib
  105. +testglib$(EXEEXT): $(testglib_OBJECTS) $(testglib_DEPENDENCIES)
  106. + @rm -f testglib$(EXEEXT)
  107. $(LINK) $(testglib_LDFLAGS) $(testglib_OBJECTS) $(testglib_LDADD) $(LIBS)
  108. -testgdate: $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
  109. - @rm -f testgdate
  110. +testgdate$(EXEEXT): $(testgdate_OBJECTS) $(testgdate_DEPENDENCIES)
  111. + @rm -f testgdate$(EXEEXT)
  112. $(LINK) $(testgdate_LDFLAGS) $(testgdate_OBJECTS) $(testgdate_LDADD) $(LIBS)
  113. -testgdateparser: $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
  114. - @rm -f testgdateparser
  115. +testgdateparser$(EXEEXT): $(testgdateparser_OBJECTS) $(testgdateparser_DEPENDENCIES)
  116. + @rm -f testgdateparser$(EXEEXT)
  117. $(LINK) $(testgdateparser_LDFLAGS) $(testgdateparser_OBJECTS) $(testgdateparser_LDADD) $(LIBS)
  118. install-binSCRIPTS: $(bin_SCRIPTS)
  119. @@ -463,7 +475,7 @@
  120. dot_seen=no; \
  121. rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
  122. rev="$$subdir $$rev"; \
  123. - test "$$subdir" = "." && dot_seen=yes; \
  124. + test "$$subdir" != "." || dot_seen=yes; \
  125. done; \
  126. test "$$dot_seen" = "no" && rev=". $$rev"; \
  127. target=`echo $@ | sed s/-recursive//`; \
  128. @@ -505,7 +517,7 @@
  129. awk ' { files[$$0] = 1; } \
  130. END { for (i in files) print i; }'`; \
  131. test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  132. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
  133. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
  134. mostlyclean-tags:
  135. @@ -575,35 +587,6 @@
  136. fi; \
  137. done
  138. $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
  139. -garray.lo garray.o : garray.c glib.h glibconfig.h
  140. -gcache.lo gcache.o : gcache.c glib.h glibconfig.h
  141. -gcompletion.lo gcompletion.o : gcompletion.c glib.h glibconfig.h
  142. -gdataset.lo gdataset.o : gdataset.c glib.h glibconfig.h
  143. -gdate.lo gdate.o : gdate.c config.h glib.h glibconfig.h
  144. -gerror.lo gerror.o : gerror.c config.h glib.h glibconfig.h
  145. -ghash.lo ghash.o : ghash.c glib.h glibconfig.h
  146. -ghook.lo ghook.o : ghook.c glib.h glibconfig.h
  147. -giochannel.lo giochannel.o : giochannel.c config.h glib.h glibconfig.h
  148. -giounix.lo giounix.o : giounix.c glib.h glibconfig.h
  149. -glist.lo glist.o : glist.c glib.h glibconfig.h
  150. -gmain.lo gmain.o : gmain.c config.h glib.h glibconfig.h
  151. -gmem.lo gmem.o : gmem.c config.h glib.h glibconfig.h
  152. -gmessages.lo gmessages.o : gmessages.c config.h glib.h glibconfig.h
  153. -gmutex.lo gmutex.o : gmutex.c glib.h glibconfig.h
  154. -gnode.lo gnode.o : gnode.c glib.h glibconfig.h
  155. -gprimes.lo gprimes.o : gprimes.c glib.h glibconfig.h
  156. -grel.lo grel.o : grel.c glib.h glibconfig.h
  157. -gscanner.lo gscanner.o : gscanner.c config.h glib.h glibconfig.h
  158. -gslist.lo gslist.o : gslist.c glib.h glibconfig.h
  159. -gstrfuncs.lo gstrfuncs.o : gstrfuncs.c config.h glib.h glibconfig.h
  160. -gstring.lo gstring.o : gstring.c glib.h glibconfig.h
  161. -gtimer.lo gtimer.o : gtimer.c config.h glib.h glibconfig.h
  162. -gtree.lo gtree.o : gtree.c glib.h glibconfig.h
  163. -gutils.lo gutils.o : gutils.c config.h glibconfig.h glib.h
  164. -testgdate.o: testgdate.c glib.h glibconfig.h
  165. -testgdateparser.o: testgdateparser.c glib.h glibconfig.h
  166. -testglib.o: testglib.c glib.h glibconfig.h
  167. -
  168. info-am:
  169. info: info-recursive
  170. dvi-am:
  171. --- glib1.2-1.2.10.orig/aclocal.m4
  172. +++ glib1.2-1.2.10/aclocal.m4
  173. @@ -1,6 +1,6 @@
  174. -dnl aclocal.m4 generated automatically by aclocal 1.4
  175. +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  176. -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  177. +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  178. dnl This file is free software; the Free Software Foundation
  179. dnl gives unlimited permission to copy and/or distribute it,
  180. dnl with or without modifications, as long as this notice is preserved.
  181. @@ -10,135 +10,3114 @@
  182. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  183. dnl PARTICULAR PURPOSE.
  184. +# Do all the work for Automake. This macro actually does too much --
  185. +# some checks are only needed if your package does certain things.
  186. +# But this isn't really a big deal.
  187. -# serial 40 AC_PROG_LIBTOOL
  188. -AC_DEFUN(AC_PROG_LIBTOOL,
  189. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  190. +# serial 1
  191. +
  192. +dnl Usage:
  193. +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  194. +
  195. +AC_DEFUN([AM_INIT_AUTOMAKE],
  196. +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  197. +AC_REQUIRE([AC_PROG_INSTALL])
  198. +PACKAGE=[$1]
  199. +AC_SUBST(PACKAGE)
  200. +VERSION=[$2]
  201. +AC_SUBST(VERSION)
  202. +dnl test to see if srcdir already configured
  203. +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  204. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  205. +fi
  206. +ifelse([$3],,
  207. +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  208. +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  209. +AC_REQUIRE([AM_SANITY_CHECK])
  210. +AC_REQUIRE([AC_ARG_PROGRAM])
  211. +dnl FIXME This is truly gross.
  212. +missing_dir=`cd $ac_aux_dir && pwd`
  213. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  214. +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  215. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  216. +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  217. +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  218. +AC_REQUIRE([AC_PROG_MAKE_SET])])
  219. +
  220. +# Copyright 2002 Free Software Foundation, Inc.
  221. +
  222. +# This program is free software; you can redistribute it and/or modify
  223. +# it under the terms of the GNU General Public License as published by
  224. +# the Free Software Foundation; either version 2, or (at your option)
  225. +# any later version.
  226. +
  227. +# This program is distributed in the hope that it will be useful,
  228. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  229. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  230. +# GNU General Public License for more details.
  231. +
  232. +# You should have received a copy of the GNU General Public License
  233. +# along with this program; if not, write to the Free Software
  234. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  235. +
  236. +# AM_AUTOMAKE_VERSION(VERSION)
  237. +# ----------------------------
  238. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  239. +# generated from the m4 files accompanying Automake X.Y.
  240. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  241. +
  242. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  243. +# -------------------------------
  244. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  245. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  246. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  247. + [AM_AUTOMAKE_VERSION([1.4-p6])])
  248. +
  249. +#
  250. +# Check to make sure that the build environment is sane.
  251. +#
  252. +
  253. +AC_DEFUN([AM_SANITY_CHECK],
  254. +[AC_MSG_CHECKING([whether build environment is sane])
  255. +# Just in case
  256. +sleep 1
  257. +echo timestamp > conftestfile
  258. +# Do `set' in a subshell so we don't clobber the current shell's
  259. +# arguments. Must try -L first in case configure is actually a
  260. +# symlink; some systems play weird games with the mod time of symlinks
  261. +# (eg FreeBSD returns the mod time of the symlink's containing
  262. +# directory).
  263. +if (
  264. + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  265. + if test "[$]*" = "X"; then
  266. + # -L didn't work.
  267. + set X `ls -t $srcdir/configure conftestfile`
  268. + fi
  269. + if test "[$]*" != "X $srcdir/configure conftestfile" \
  270. + && test "[$]*" != "X conftestfile $srcdir/configure"; then
  271. +
  272. + # If neither matched, then we have a broken ls. This can happen
  273. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  274. + # broken ls alias from the environment. This has actually
  275. + # happened. Such a system could not be considered "sane".
  276. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  277. +alias in your environment])
  278. + fi
  279. +
  280. + test "[$]2" = conftestfile
  281. + )
  282. +then
  283. + # Ok.
  284. + :
  285. +else
  286. + AC_MSG_ERROR([newly created file is older than distributed files!
  287. +Check your system clock])
  288. +fi
  289. +rm -f conftest*
  290. +AC_MSG_RESULT(yes)])
  291. +
  292. +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  293. +dnl The program must properly implement --version.
  294. +AC_DEFUN([AM_MISSING_PROG],
  295. +[AC_MSG_CHECKING(for working $2)
  296. +# Run test in a subshell; some versions of sh will print an error if
  297. +# an executable is not found, even if stderr is redirected.
  298. +# Redirect stdin to placate older versions of autoconf. Sigh.
  299. +if ($2 --version) < /dev/null > /dev/null 2>&1; then
  300. + $1=$2
  301. + AC_MSG_RESULT(found)
  302. +else
  303. + $1="$3/missing $2"
  304. + AC_MSG_RESULT(missing)
  305. +fi
  306. +AC_SUBST($1)])
  307. +
  308. +# Like AC_CONFIG_HEADER, but automatically create stamp file.
  309. +
  310. +AC_DEFUN([AM_CONFIG_HEADER],
  311. +[AC_PREREQ([2.12])
  312. +AC_CONFIG_HEADER([$1])
  313. +dnl When config.status generates a header, we must update the stamp-h file.
  314. +dnl This file resides in the same directory as the config header
  315. +dnl that is generated. We must strip everything past the first ":",
  316. +dnl and everything past the last "/".
  317. +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  318. +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  319. +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  320. +<<am_indx=1
  321. +for am_file in <<$1>>; do
  322. + case " <<$>>CONFIG_HEADERS " in
  323. + *" <<$>>am_file "*<<)>>
  324. + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  325. + ;;
  326. + esac
  327. + am_indx=`expr "<<$>>am_indx" + 1`
  328. +done<<>>dnl>>)
  329. +changequote([,]))])
  330. -# Save cache, so that ltconfig can load it
  331. -AC_CACHE_SAVE
  332. +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  333. -# Actually configure libtool. ac_aux_dir is where install-sh is found.
  334. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  335. -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  336. -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  337. -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  338. -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  339. -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  340. -|| AC_MSG_ERROR([libtool configure failed])
  341. +# serial 46 AC_PROG_LIBTOOL
  342. -# Reload cache, that may have been modified by ltconfig
  343. -AC_CACHE_LOAD
  344. +AC_DEFUN([AC_PROG_LIBTOOL],
  345. +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  346. # This can be used to rebuild libtool when needed
  347. -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  348. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  349. # Always use our own libtool.
  350. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  351. AC_SUBST(LIBTOOL)dnl
  352. -# Redirect the config.log output again, so that the ltconfig log is not
  353. -# clobbered by the next message.
  354. -exec 5>>./config.log
  355. +# Prevent multiple expansion
  356. +define([AC_PROG_LIBTOOL], [])
  357. ])
  358. -AC_DEFUN(AC_LIBTOOL_SETUP,
  359. +AC_DEFUN([AC_LIBTOOL_SETUP],
  360. [AC_PREREQ(2.13)dnl
  361. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  362. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  363. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  364. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  365. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  366. -AC_REQUIRE([AC_PROG_RANLIB])dnl
  367. AC_REQUIRE([AC_PROG_CC])dnl
  368. AC_REQUIRE([AC_PROG_LD])dnl
  369. +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  370. AC_REQUIRE([AC_PROG_NM])dnl
  371. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  372. +
  373. AC_REQUIRE([AC_PROG_LN_S])dnl
  374. +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  375. +AC_REQUIRE([AC_OBJEXT])dnl
  376. +AC_REQUIRE([AC_EXEEXT])dnl
  377. dnl
  378. -case "$target" in
  379. -NONE) lt_target="$host" ;;
  380. -*) lt_target="$target" ;;
  381. +_LT_AC_PROG_ECHO_BACKSLASH
  382. +# Only perform the check for file, if the check method requires it
  383. +case $deplibs_check_method in
  384. +file_magic*)
  385. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  386. + AC_PATH_MAGIC
  387. + fi
  388. + ;;
  389. esac
  390. -# Check for any special flags to pass to ltconfig.
  391. -libtool_flags="--cache-file=$cache_file"
  392. -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  393. -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  394. -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  395. -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  396. -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  397. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
  398. -[libtool_flags="$libtool_flags --enable-dlopen"])
  399. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  400. +AC_CHECK_TOOL(STRIP, strip, :)
  401. +
  402. +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  403. ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  404. -[libtool_flags="$libtool_flags --enable-win32-dll"])
  405. +enable_win32_dll=yes, enable_win32_dll=no)
  406. +
  407. AC_ARG_ENABLE(libtool-lock,
  408. [ --disable-libtool-lock avoid locking (might break parallel builds)])
  409. -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  410. -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  411. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  412. +
  413. +# Some flags need to be propagated to the compiler or linker for good
  414. +# libtool support.
  415. +case $host in
  416. +*-*-irix6*)
  417. + # Find out which ABI we are using.
  418. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  419. + if AC_TRY_EVAL(ac_compile); then
  420. + case `/usr/bin/file conftest.$ac_objext` in
  421. + *32-bit*)
  422. + LD="${LD-ld} -32"
  423. + ;;
  424. + *N32*)
  425. + LD="${LD-ld} -n32"
  426. + ;;
  427. + *64-bit*)
  428. + LD="${LD-ld} -64"
  429. + ;;
  430. + esac
  431. + fi
  432. + rm -rf conftest*
  433. + ;;
  434. +
  435. +*-*-sco3.2v5*)
  436. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  437. + SAVE_CFLAGS="$CFLAGS"
  438. + CFLAGS="$CFLAGS -belf"
  439. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  440. + [AC_LANG_SAVE
  441. + AC_LANG_C
  442. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  443. + AC_LANG_RESTORE])
  444. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  445. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  446. + CFLAGS="$SAVE_CFLAGS"
  447. + fi
  448. + ;;
  449. +
  450. +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  451. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  452. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  453. + AC_CHECK_TOOL(AS, as, false)
  454. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  455. +
  456. + # recent cygwin and mingw systems supply a stub DllMain which the user
  457. + # can override, but on older systems we have to supply one
  458. + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  459. + [AC_TRY_LINK([],
  460. + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  461. + DllMain (0, 0, 0);],
  462. + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  463. +
  464. + case $host/$CC in
  465. + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  466. + # old mingw systems require "-dll" to link a DLL, while more recent ones
  467. + # require "-mdll"
  468. + SAVE_CFLAGS="$CFLAGS"
  469. + CFLAGS="$CFLAGS -mdll"
  470. + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  471. + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  472. + CFLAGS="$SAVE_CFLAGS" ;;
  473. + *-*-cygwin* | *-*-pw32*)
  474. + # cygwin systems need to pass --dll to the linker, and not link
  475. + # crt.o which will require a WinMain@16 definition.
  476. + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  477. + esac
  478. + ;;
  479. + ])
  480. +esac
  481. +
  482. +_LT_AC_LTCONFIG_HACK
  483. +
  484. +])
  485. +
  486. +# AC_LIBTOOL_HEADER_ASSERT
  487. +# ------------------------
  488. +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  489. +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  490. + [lt_cv_func_assert_works],
  491. + [case $host in
  492. + *-*-solaris*)
  493. + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  494. + case `$CC --version 2>/dev/null` in
  495. + [[12]].*) lt_cv_func_assert_works=no ;;
  496. + *) lt_cv_func_assert_works=yes ;;
  497. + esac
  498. + fi
  499. + ;;
  500. + esac])
  501. +
  502. +if test "x$lt_cv_func_assert_works" = xyes; then
  503. + AC_CHECK_HEADERS(assert.h)
  504. +fi
  505. +])# AC_LIBTOOL_HEADER_ASSERT
  506. +
  507. +# _LT_AC_CHECK_DLFCN
  508. +# --------------------
  509. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  510. +[AC_CHECK_HEADERS(dlfcn.h)
  511. +])# _LT_AC_CHECK_DLFCN
  512. +
  513. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  514. +# ---------------------------------
  515. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  516. +[AC_REQUIRE([AC_CANONICAL_HOST])
  517. +AC_REQUIRE([AC_PROG_NM])
  518. +AC_REQUIRE([AC_OBJEXT])
  519. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  520. +AC_MSG_CHECKING([command to parse $NM output])
  521. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  522. +
  523. +# These are sane defaults that work on at least a few old systems.
  524. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  525. +
  526. +# Character class describing NM global symbol codes.
  527. +symcode='[[BCDEGRST]]'
  528. +
  529. +# Regexp to match symbols that can be accessed directly from C.
  530. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  531. +
  532. +# Transform the above into a raw symbol and a C symbol.
  533. +symxfrm='\1 \2\3 \3'
  534. +
  535. +# Transform an extracted symbol line into a proper C declaration
  536. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  537. +
  538. +# Transform an extracted symbol line into symbol name and symbol address
  539. +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'"
  540. +
  541. +# Define system-specific variables.
  542. +case $host_os in
  543. +aix*)
  544. + symcode='[[BCDT]]'
  545. + ;;
  546. +cygwin* | mingw* | pw32*)
  547. + symcode='[[ABCDGISTW]]'
  548. + ;;
  549. +hpux*) # Its linker distinguishes data from code symbols
  550. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  551. + 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'"
  552. + ;;
  553. +irix* | nonstopux*)
  554. + symcode='[[BCDEGRST]]'
  555. + ;;
  556. +osf*)
  557. + symcode='[[BCDEGQRST]]'
  558. + ;;
  559. +solaris* | sysv5*)
  560. + symcode='[[BDT]]'
  561. + ;;
  562. +sysv4)
  563. + symcode='[[DFNSTU]]'
  564. + ;;
  565. +esac
  566. +
  567. +# Handle CRLF in mingw tool chain
  568. +opt_cr=
  569. +case $host_os in
  570. +mingw*)
  571. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  572. + ;;
  573. +esac
  574. +
  575. +# If we're using GNU nm, then use its standard symbol codes.
  576. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  577. + symcode='[[ABCDGISTW]]'
  578. +fi
  579. +
  580. +# Try without a prefix undercore, then with it.
  581. +for ac_symprfx in "" "_"; do
  582. +
  583. + # Write the raw and C identifiers.
  584. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  585. +
  586. + # Check to see that the pipe works correctly.
  587. + pipe_works=no
  588. + rm -f conftest*
  589. + cat > conftest.$ac_ext <<EOF
  590. +#ifdef __cplusplus
  591. +extern "C" {
  592. +#endif
  593. +char nm_test_var;
  594. +void nm_test_func(){}
  595. +#ifdef __cplusplus
  596. +}
  597. +#endif
  598. +int main(){nm_test_var='a';nm_test_func();return(0);}
  599. +EOF
  600. +
  601. + if AC_TRY_EVAL(ac_compile); then
  602. + # Now try to grab the symbols.
  603. + nlist=conftest.nm
  604. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  605. + # Try sorting and uniquifying the output.
  606. + if sort "$nlist" | uniq > "$nlist"T; then
  607. + mv -f "$nlist"T "$nlist"
  608. + else
  609. + rm -f "$nlist"T
  610. + fi
  611. +
  612. + # Make sure that we snagged all the symbols we need.
  613. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  614. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  615. + cat <<EOF > conftest.$ac_ext
  616. +#ifdef __cplusplus
  617. +extern "C" {
  618. +#endif
  619. +
  620. +EOF
  621. + # Now generate the symbol file.
  622. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  623. +
  624. + cat <<EOF >> conftest.$ac_ext
  625. +#if defined (__STDC__) && __STDC__
  626. +# define lt_ptr void *
  627. +#else
  628. +# define lt_ptr char *
  629. +# define const
  630. +#endif
  631. +
  632. +/* The mapping between symbol names and symbols. */
  633. +const struct {
  634. + const char *name;
  635. + lt_ptr address;
  636. +}
  637. +lt_preloaded_symbols[[]] =
  638. +{
  639. +EOF
  640. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  641. + cat <<\EOF >> conftest.$ac_ext
  642. + {0, (lt_ptr) 0}
  643. +};
  644. +
  645. +#ifdef __cplusplus
  646. +}
  647. +#endif
  648. +EOF
  649. + # Now try linking the two files.
  650. + mv conftest.$ac_objext conftstm.$ac_objext
  651. + save_LIBS="$LIBS"
  652. + save_CFLAGS="$CFLAGS"
  653. + LIBS="conftstm.$ac_objext"
  654. + CFLAGS="$CFLAGS$no_builtin_flag"
  655. + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  656. + pipe_works=yes
  657. + fi
  658. + LIBS="$save_LIBS"
  659. + CFLAGS="$save_CFLAGS"
  660. + else
  661. + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  662. + fi
  663. + else
  664. + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  665. + fi
  666. + else
  667. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  668. + fi
  669. + else
  670. + echo "$progname: failed program was:" >&AC_FD_CC
  671. + cat conftest.$ac_ext >&5
  672. + fi
  673. + rm -f conftest* conftst*
  674. +
  675. + # Do not use the global_symbol_pipe unless it works.
  676. + if test "$pipe_works" = yes; then
  677. + break
  678. + else
  679. + lt_cv_sys_global_symbol_pipe=
  680. + fi
  681. +done
  682. +])
  683. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  684. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  685. + global_symbol_to_cdecl=
  686. + global_symbol_to_c_name_address=
  687. +else
  688. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  689. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  690. +fi
  691. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  692. +then
  693. + AC_MSG_RESULT(failed)
  694. +else
  695. + AC_MSG_RESULT(ok)
  696. +fi
  697. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  698. +
  699. +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  700. +# ---------------------------------
  701. +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  702. +[# Find the correct PATH separator. Usually this is `:', but
  703. +# DJGPP uses `;' like DOS.
  704. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  705. + UNAME=${UNAME-`uname 2>/dev/null`}
  706. + case X$UNAME in
  707. + *-DOS) lt_cv_sys_path_separator=';' ;;
  708. + *) lt_cv_sys_path_separator=':' ;;
  709. + esac
  710. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  711. +fi
  712. +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  713. +
  714. +# _LT_AC_PROG_ECHO_BACKSLASH
  715. +# --------------------------
  716. +# Add some code to the start of the generated configure script which
  717. +# will find an echo command which doesn't interpret backslashes.
  718. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  719. +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  720. + [AC_DIVERT_PUSH(NOTICE)])
  721. +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  722. +
  723. +# Check that we are running under the correct shell.
  724. +SHELL=${CONFIG_SHELL-/bin/sh}
  725. +
  726. +case X$ECHO in
  727. +X*--fallback-echo)
  728. + # Remove one level of quotation (which was required for Make).
  729. + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  730. + ;;
  731. +esac
  732. +
  733. +echo=${ECHO-echo}
  734. +if test "X[$]1" = X--no-reexec; then
  735. + # Discard the --no-reexec flag, and continue.
  736. + shift
  737. +elif test "X[$]1" = X--fallback-echo; then
  738. + # Avoid inline document here, it may be left over
  739. + :
  740. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  741. + # Yippee, $echo works!
  742. + :
  743. +else
  744. + # Restart under the correct shell.
  745. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  746. +fi
  747. +
  748. +if test "X[$]1" = X--fallback-echo; then
  749. + # used as fallback echo
  750. + shift
  751. + cat <<EOF
  752. +$*
  753. +EOF
  754. + exit 0
  755. +fi
  756. +
  757. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  758. +# if CDPATH is set.
  759. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  760. +
  761. +if test -z "$ECHO"; then
  762. +if test "X${echo_test_string+set}" != Xset; then
  763. +# find a string as large as possible, as long as the shell can cope with it
  764. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  765. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  766. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  767. + echo_test_string="`eval $cmd`" &&
  768. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  769. + then
  770. + break
  771. + fi
  772. + done
  773. +fi
  774. +
  775. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  776. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  777. + test "X$echo_testing_string" = "X$echo_test_string"; then
  778. + :
  779. +else
  780. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  781. + # backslashes. This makes it impossible to quote backslashes using
  782. + # echo "$something" | sed 's/\\/\\\\/g'
  783. + #
  784. + # So, first we look for a working echo in the user's PATH.
  785. +
  786. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  787. + for dir in $PATH /usr/ucb; do
  788. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  789. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  790. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  791. + test "X$echo_testing_string" = "X$echo_test_string"; then
  792. + echo="$dir/echo"
  793. + break
  794. + fi
  795. + done
  796. + IFS="$save_ifs"
  797. +
  798. + if test "X$echo" = Xecho; then
  799. + # We didn't find a better echo, so look for alternatives.
  800. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  801. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  802. + test "X$echo_testing_string" = "X$echo_test_string"; then
  803. + # This shell has a builtin print -r that does the trick.
  804. + echo='print -r'
  805. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  806. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  807. + # If we have ksh, try running configure again with it.
  808. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  809. + export ORIGINAL_CONFIG_SHELL
  810. + CONFIG_SHELL=/bin/ksh
  811. + export CONFIG_SHELL
  812. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  813. + else
  814. + # Try using printf.
  815. + echo='printf %s\n'
  816. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  817. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  818. + test "X$echo_testing_string" = "X$echo_test_string"; then
  819. + # Cool, printf works
  820. + :
  821. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  822. + test "X$echo_testing_string" = 'X\t' &&
  823. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  824. + test "X$echo_testing_string" = "X$echo_test_string"; then
  825. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  826. + export CONFIG_SHELL
  827. + SHELL="$CONFIG_SHELL"
  828. + export SHELL
  829. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  830. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  831. + test "X$echo_testing_string" = 'X\t' &&
  832. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  833. + test "X$echo_testing_string" = "X$echo_test_string"; then
  834. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  835. + else
  836. + # maybe with a smaller string...
  837. + prev=:
  838. +
  839. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  840. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  841. + then
  842. + break
  843. + fi
  844. + prev="$cmd"
  845. + done
  846. +
  847. + if test "$prev" != 'sed 50q "[$]0"'; then
  848. + echo_test_string=`eval $prev`
  849. + export echo_test_string
  850. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  851. + else
  852. + # Oops. We lost completely, so just stick with echo.
  853. + echo=echo
  854. + fi
  855. + fi
  856. + fi
  857. + fi
  858. +fi
  859. +fi
  860. +
  861. +# Copy echo and quote the copy suitably for passing to libtool from
  862. +# the Makefile, instead of quoting the original, which is used later.
  863. +ECHO=$echo
  864. +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  865. + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  866. +fi
  867. +
  868. +AC_SUBST(ECHO)
  869. +AC_DIVERT_POP
  870. +])# _LT_AC_PROG_ECHO_BACKSLASH
  871. +
  872. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  873. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  874. +# ------------------------------------------------------------------
  875. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  876. +[if test "$cross_compiling" = yes; then :
  877. + [$4]
  878. +else
  879. + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  880. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  881. + lt_status=$lt_dlunknown
  882. + cat > conftest.$ac_ext <<EOF
  883. +[#line __oline__ "configure"
  884. +#include "confdefs.h"
  885. +
  886. +#if HAVE_DLFCN_H
  887. +#include <dlfcn.h>
  888. +#endif
  889. +
  890. +#include <stdio.h>
  891. +
  892. +#ifdef RTLD_GLOBAL
  893. +# define LT_DLGLOBAL RTLD_GLOBAL
  894. +#else
  895. +# ifdef DL_GLOBAL
  896. +# define LT_DLGLOBAL DL_GLOBAL
  897. +# else
  898. +# define LT_DLGLOBAL 0
  899. +# endif
  900. +#endif
  901. +
  902. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  903. + find out it does not work in some platform. */
  904. +#ifndef LT_DLLAZY_OR_NOW
  905. +# ifdef RTLD_LAZY
  906. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  907. +# else
  908. +# ifdef DL_LAZY
  909. +# define LT_DLLAZY_OR_NOW DL_LAZY
  910. +# else
  911. +# ifdef RTLD_NOW
  912. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  913. +# else
  914. +# ifdef DL_NOW
  915. +# define LT_DLLAZY_OR_NOW DL_NOW
  916. +# else
  917. +# define LT_DLLAZY_OR_NOW 0
  918. +# endif
  919. +# endif
  920. +# endif
  921. +# endif
  922. +#endif
  923. +
  924. +#ifdef __cplusplus
  925. +extern "C" void exit (int);
  926. +#endif
  927. +
  928. +void fnord() { int i=42;}
  929. +int main ()
  930. +{
  931. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  932. + int status = $lt_dlunknown;
  933. +
  934. + if (self)
  935. + {
  936. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  937. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  938. + /* dlclose (self); */
  939. + }
  940. +
  941. + exit (status);
  942. +}]
  943. +EOF
  944. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  945. + (./conftest; exit; ) 2>/dev/null
  946. + lt_status=$?
  947. + case x$lt_status in
  948. + x$lt_dlno_uscore) $1 ;;
  949. + x$lt_dlneed_uscore) $2 ;;
  950. + x$lt_unknown|x*) $3 ;;
  951. + esac
  952. + else :
  953. + # compilation failed
  954. + $3
  955. + fi
  956. +fi
  957. +rm -fr conftest*
  958. +])# _LT_AC_TRY_DLOPEN_SELF
  959. +
  960. +# AC_LIBTOOL_DLOPEN_SELF
  961. +# -------------------
  962. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  963. +[if test "x$enable_dlopen" != xyes; then
  964. + enable_dlopen=unknown
  965. + enable_dlopen_self=unknown
  966. + enable_dlopen_self_static=unknown
  967. +else
  968. + lt_cv_dlopen=no
  969. + lt_cv_dlopen_libs=
  970. +
  971. + case $host_os in
  972. + beos*)
  973. + lt_cv_dlopen="load_add_on"
  974. + lt_cv_dlopen_libs=
  975. + lt_cv_dlopen_self=yes
  976. + ;;
  977. +
  978. + cygwin* | mingw* | pw32*)
  979. + lt_cv_dlopen="LoadLibrary"
  980. + lt_cv_dlopen_libs=
  981. + ;;
  982. +
  983. + *)
  984. + AC_CHECK_FUNC([shl_load],
  985. + [lt_cv_dlopen="shl_load"],
  986. + [AC_CHECK_LIB([dld], [shl_load],
  987. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  988. + [AC_CHECK_FUNC([dlopen],
  989. + [lt_cv_dlopen="dlopen"],
  990. + [AC_CHECK_LIB([dl], [dlopen],
  991. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  992. + [AC_CHECK_LIB([svld], [dlopen],
  993. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  994. + [AC_CHECK_LIB([dld], [dld_link],
  995. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  996. + ])
  997. + ])
  998. + ])
  999. + ])
  1000. + ])
  1001. + ;;
  1002. + esac
  1003. +
  1004. + if test "x$lt_cv_dlopen" != xno; then
  1005. + enable_dlopen=yes
  1006. + else
  1007. + enable_dlopen=no
  1008. + fi
  1009. +
  1010. + case $lt_cv_dlopen in
  1011. + dlopen)
  1012. + save_CPPFLAGS="$CPPFLAGS"
  1013. + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1014. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1015. +
  1016. + save_LDFLAGS="$LDFLAGS"
  1017. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1018. +
  1019. + save_LIBS="$LIBS"
  1020. + LIBS="$lt_cv_dlopen_libs $LIBS"
  1021. +
  1022. + AC_CACHE_CHECK([whether a program can dlopen itself],
  1023. + lt_cv_dlopen_self, [dnl
  1024. + _LT_AC_TRY_DLOPEN_SELF(
  1025. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1026. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1027. + ])
  1028. +
  1029. + if test "x$lt_cv_dlopen_self" = xyes; then
  1030. + LDFLAGS="$LDFLAGS $link_static_flag"
  1031. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1032. + lt_cv_dlopen_self_static, [dnl
  1033. + _LT_AC_TRY_DLOPEN_SELF(
  1034. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1035. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1036. + ])
  1037. + fi
  1038. +
  1039. + CPPFLAGS="$save_CPPFLAGS"
  1040. + LDFLAGS="$save_LDFLAGS"
  1041. + LIBS="$save_LIBS"
  1042. + ;;
  1043. + esac
  1044. +
  1045. + case $lt_cv_dlopen_self in
  1046. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1047. + *) enable_dlopen_self=unknown ;;
  1048. + esac
  1049. +
  1050. + case $lt_cv_dlopen_self_static in
  1051. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1052. + *) enable_dlopen_self_static=unknown ;;
  1053. + esac
  1054. +fi
  1055. +])# AC_LIBTOOL_DLOPEN_SELF
  1056. +
  1057. +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  1058. +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  1059. +# Sed substitution that helps us do robust quoting. It backslashifies
  1060. +# metacharacters that are still active within double-quoted strings.
  1061. +Xsed='sed -e s/^X//'
  1062. +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  1063. +
  1064. +# Same as above, but do not quote variable references.
  1065. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  1066. +
  1067. +# Sed substitution to delay expansion of an escaped shell variable in a
  1068. +# double_quote_subst'ed string.
  1069. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1070. +
  1071. +# Constants:
  1072. +rm="rm -f"
  1073. +
  1074. +# Global variables:
  1075. +default_ofile=libtool
  1076. +can_build_shared=yes
  1077. +
  1078. +# All known linkers require a `.a' archive for static linking (except M$VC,
  1079. +# which needs '.lib').
  1080. +libext=a
  1081. +ltmain="$ac_aux_dir/ltmain.sh"
  1082. +ofile="$default_ofile"
  1083. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  1084. +need_locks="$enable_libtool_lock"
  1085. +
  1086. +old_CC="$CC"
  1087. +old_CFLAGS="$CFLAGS"
  1088. +
  1089. +# Set sane defaults for various variables
  1090. +test -z "$AR" && AR=ar
  1091. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1092. +test -z "$AS" && AS=as
  1093. +test -z "$CC" && CC=cc
  1094. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1095. +test -z "$LD" && LD=ld
  1096. +test -z "$LN_S" && LN_S="ln -s"
  1097. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1098. +test -z "$NM" && NM=nm
  1099. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1100. +test -z "$RANLIB" && RANLIB=:
  1101. +test -z "$STRIP" && STRIP=:
  1102. +test -z "$ac_objext" && ac_objext=o
  1103. +
  1104. +if test x"$host" != x"$build"; then
  1105. + ac_tool_prefix=${host_alias}-
  1106. +else
  1107. + ac_tool_prefix=
  1108. +fi
  1109. +
  1110. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  1111. +case $host_os in
  1112. +linux-gnu*) ;;
  1113. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  1114. +esac
  1115. +
  1116. +case $host_os in
  1117. +aix3*)
  1118. + # AIX sometimes has problems with the GCC collect2 program. For some
  1119. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  1120. + # vanish in a puff of smoke.
  1121. + if test "X${COLLECT_NAMES+set}" != Xset; then
  1122. + COLLECT_NAMES=
  1123. + export COLLECT_NAMES
  1124. + fi
  1125. + ;;
  1126. +esac
  1127. +
  1128. +# Determine commands to create old-style static archives.
  1129. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1130. +old_postinstall_cmds='chmod 644 $oldlib'
  1131. +old_postuninstall_cmds=
  1132. +
  1133. +if test -n "$RANLIB"; then
  1134. + case $host_os in
  1135. + openbsd*)
  1136. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  1137. + ;;
  1138. + *)
  1139. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1140. + ;;
  1141. + esac
  1142. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1143. +fi
  1144. +
  1145. +# Allow CC to be a program name with arguments.
  1146. +set dummy $CC
  1147. +compiler="[$]2"
  1148. +
  1149. +AC_MSG_CHECKING([for objdir])
  1150. +rm -f .libs 2>/dev/null
  1151. +mkdir .libs 2>/dev/null
  1152. +if test -d .libs; then
  1153. + objdir=.libs
  1154. +else
  1155. + # MS-DOS does not allow filenames that begin with a dot.
  1156. + objdir=_libs
  1157. +fi
  1158. +rmdir .libs 2>/dev/null
  1159. +AC_MSG_RESULT($objdir)
  1160. +
  1161. +
  1162. +AC_ARG_WITH(pic,
  1163. +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  1164. +pic_mode="$withval", pic_mode=default)
  1165. +test -z "$pic_mode" && pic_mode=default
  1166. +
  1167. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  1168. +# in isolation, and that seeing it set (from the cache) indicates that
  1169. +# the associated values are set (in the cache) correctly too.
  1170. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  1171. +AC_CACHE_VAL(lt_cv_prog_cc_pic,
  1172. +[ lt_cv_prog_cc_pic=
  1173. + lt_cv_prog_cc_shlib=
  1174. + lt_cv_prog_cc_wl=
  1175. + lt_cv_prog_cc_static=
  1176. + lt_cv_prog_cc_no_builtin=
  1177. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  1178. +
  1179. + if test "$GCC" = yes; then
  1180. + lt_cv_prog_cc_wl='-Wl,'
  1181. + lt_cv_prog_cc_static='-static'
  1182. +
  1183. + case $host_os in
  1184. + aix*)
  1185. + # Below there is a dirty hack to force normal static linking with -ldl
  1186. + # The problem is because libdl dynamically linked with both libc and
  1187. + # libC (AIX C++ library), which obviously doesn't included in libraries
  1188. + # list by gcc. This cause undefined symbols with -static flags.
  1189. + # This hack allows C programs to be linked with "-static -ldl", but
  1190. + # not sure about C++ programs.
  1191. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  1192. + ;;
  1193. + amigaos*)
  1194. + # FIXME: we need at least 68020 code to build shared libraries, but
  1195. + # adding the `-m68020' flag to GCC prevents building anything better,
  1196. + # like `-m68040'.
  1197. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  1198. + ;;
  1199. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1200. + # PIC is the default for these OSes.
  1201. + ;;
  1202. + darwin* | rhapsody*)
  1203. + # PIC is the default on this platform
  1204. + # Common symbols not allowed in MH_DYLIB files
  1205. + lt_cv_prog_cc_pic='-fno-common'
  1206. + ;;
  1207. + cygwin* | mingw* | pw32* | os2*)
  1208. + # This hack is so that the source file can tell whether it is being
  1209. + # built for inclusion in a dll (and should export symbols for example).
  1210. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1211. + ;;
  1212. + sysv4*MP*)
  1213. + if test -d /usr/nec; then
  1214. + lt_cv_prog_cc_pic=-Kconform_pic
  1215. + fi
  1216. + ;;
  1217. + *)
  1218. + lt_cv_prog_cc_pic='-fPIC'
  1219. + ;;
  1220. + esac
  1221. + else
  1222. + # PORTME Check for PIC flags for the system compiler.
  1223. + case $host_os in
  1224. + aix3* | aix4* | aix5*)
  1225. + lt_cv_prog_cc_wl='-Wl,'
  1226. + # All AIX code is PIC.
  1227. + if test "$host_cpu" = ia64; then
  1228. + # AIX 5 now supports IA64 processor
  1229. + lt_cv_prog_cc_static='-Bstatic'
  1230. + else
  1231. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  1232. + fi
  1233. + ;;
  1234. +
  1235. + hpux9* | hpux10* | hpux11*)
  1236. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  1237. + lt_cv_prog_cc_wl='-Wl,'
  1238. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  1239. + lt_cv_prog_cc_pic='+Z'
  1240. + ;;
  1241. +
  1242. + irix5* | irix6* | nonstopux*)
  1243. + lt_cv_prog_cc_wl='-Wl,'
  1244. + lt_cv_prog_cc_static='-non_shared'
  1245. + # PIC (with -KPIC) is the default.
  1246. + ;;
  1247. +
  1248. + cygwin* | mingw* | pw32* | os2*)
  1249. + # This hack is so that the source file can tell whether it is being
  1250. + # built for inclusion in a dll (and should export symbols for example).
  1251. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1252. + ;;
  1253. +
  1254. + newsos6)
  1255. + lt_cv_prog_cc_pic='-KPIC'
  1256. + lt_cv_prog_cc_static='-Bstatic'
  1257. + ;;
  1258. +
  1259. + osf3* | osf4* | osf5*)
  1260. + # All OSF/1 code is PIC.
  1261. + lt_cv_prog_cc_wl='-Wl,'
  1262. + lt_cv_prog_cc_static='-non_shared'
  1263. + ;;
  1264. +
  1265. + sco3.2v5*)
  1266. + lt_cv_prog_cc_pic='-Kpic'
  1267. + lt_cv_prog_cc_static='-dn'
  1268. + lt_cv_prog_cc_shlib='-belf'
  1269. + ;;
  1270. +
  1271. + solaris*)
  1272. + lt_cv_prog_cc_pic='-KPIC'
  1273. + lt_cv_prog_cc_static='-Bstatic'
  1274. + lt_cv_prog_cc_wl='-Wl,'
  1275. + ;;
  1276. +
  1277. + sunos4*)
  1278. + lt_cv_prog_cc_pic='-PIC'
  1279. + lt_cv_prog_cc_static='-Bstatic'
  1280. + lt_cv_prog_cc_wl='-Qoption ld '
  1281. + ;;
  1282. +
  1283. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1284. + lt_cv_prog_cc_pic='-KPIC'
  1285. + lt_cv_prog_cc_static='-Bstatic'
  1286. + lt_cv_prog_cc_wl='-Wl,'
  1287. + ;;
  1288. +
  1289. + uts4*)
  1290. + lt_cv_prog_cc_pic='-pic'
  1291. + lt_cv_prog_cc_static='-Bstatic'
  1292. + ;;
  1293. +
  1294. + sysv4*MP*)
  1295. + if test -d /usr/nec ;then
  1296. + lt_cv_prog_cc_pic='-Kconform_pic'
  1297. + lt_cv_prog_cc_static='-Bstatic'
  1298. + fi
  1299. + ;;
  1300. +
  1301. + *)
  1302. + lt_cv_prog_cc_can_build_shared=no
  1303. + ;;
  1304. + esac
  1305. + fi
  1306. +])
  1307. +if test -z "$lt_cv_prog_cc_pic"; then
  1308. + AC_MSG_RESULT([none])
  1309. +else
  1310. + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
  1311. +
  1312. + # Check to make sure the pic_flag actually works.
  1313. + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
  1314. + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
  1315. + save_CFLAGS="$CFLAGS"
  1316. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  1317. + AC_TRY_COMPILE([], [], [dnl
  1318. + case $host_os in
  1319. + hpux9* | hpux10* | hpux11*)
  1320. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  1321. + # they create non-PIC objects. So, if there were any warnings, we
  1322. + # assume that PIC is not supported.
  1323. + if test -s conftest.err; then
  1324. + lt_cv_prog_cc_pic_works=no
  1325. + else
  1326. + lt_cv_prog_cc_pic_works=yes
  1327. + fi
  1328. + ;;
  1329. + *)
  1330. + lt_cv_prog_cc_pic_works=yes
  1331. + ;;
  1332. + esac
  1333. + ], [dnl
  1334. + lt_cv_prog_cc_pic_works=no
  1335. + ])
  1336. + CFLAGS="$save_CFLAGS"
  1337. + ])
  1338. +
  1339. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  1340. + lt_cv_prog_cc_pic=
  1341. + lt_cv_prog_cc_can_build_shared=no
  1342. + else
  1343. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  1344. + fi
  1345. +
  1346. + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
  1347. +fi
  1348. +
  1349. +# Check for any special shared library compilation flags.
  1350. +if test -n "$lt_cv_prog_cc_shlib"; then
  1351. + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  1352. + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  1353. + else
  1354. + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  1355. + lt_cv_prog_cc_can_build_shared=no
  1356. + fi
  1357. +fi
  1358. +
  1359. +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
  1360. +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
  1361. + lt_cv_prog_cc_static_works=no
  1362. + save_LDFLAGS="$LDFLAGS"
  1363. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  1364. + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
  1365. + LDFLAGS="$save_LDFLAGS"
  1366. +])
  1367. +
  1368. +# Belt *and* braces to stop my trousers falling down:
  1369. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  1370. +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
  1371. +
  1372. +pic_flag="$lt_cv_prog_cc_pic"
  1373. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  1374. +wl="$lt_cv_prog_cc_wl"
  1375. +link_static_flag="$lt_cv_prog_cc_static"
  1376. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  1377. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  1378. +
  1379. +
  1380. +# Check to see if options -o and -c are simultaneously supported by compiler
  1381. +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
  1382. +AC_CACHE_VAL([lt_cv_compiler_c_o], [
  1383. +$rm -r conftest 2>/dev/null
  1384. +mkdir conftest
  1385. +cd conftest
  1386. +echo "int some_variable = 0;" > conftest.$ac_ext
  1387. +mkdir out
  1388. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  1389. +# that will create temporary files in the current directory regardless of
  1390. +# the output directory. Thus, making CWD read-only will cause this test
  1391. +# to fail, enabling locking or at least warning the user not to do parallel
  1392. +# builds.
  1393. +chmod -w .
  1394. +save_CFLAGS="$CFLAGS"
  1395. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  1396. +compiler_c_o=no
  1397. +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  1398. + # The compiler can only warn and ignore the option if not recognized
  1399. + # So say no if there are warnings
  1400. + if test -s out/conftest.err; then
  1401. + lt_cv_compiler_c_o=no
  1402. + else
  1403. + lt_cv_compiler_c_o=yes
  1404. + fi
  1405. +else
  1406. + # Append any errors to the config.log.
  1407. + cat out/conftest.err 1>&AC_FD_CC
  1408. + lt_cv_compiler_c_o=no
  1409. +fi
  1410. +CFLAGS="$save_CFLAGS"
  1411. +chmod u+w .
  1412. +$rm conftest* out/*
  1413. +rmdir out
  1414. +cd ..
  1415. +rmdir conftest
  1416. +$rm -r conftest 2>/dev/null
  1417. +])
  1418. +compiler_c_o=$lt_cv_compiler_c_o
  1419. +AC_MSG_RESULT([$compiler_c_o])
  1420. +
  1421. +if test x"$compiler_c_o" = x"yes"; then
  1422. + # Check to see if we can write to a .lo
  1423. + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
  1424. + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
  1425. + lt_cv_compiler_o_lo=no
  1426. + save_CFLAGS="$CFLAGS"
  1427. + CFLAGS="$CFLAGS -c -o conftest.lo"
  1428. + save_objext="$ac_objext"
  1429. + ac_objext=lo
  1430. + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  1431. + # The compiler can only warn and ignore the option if not recognized
  1432. + # So say no if there are warnings
  1433. + if test -s conftest.err; then
  1434. + lt_cv_compiler_o_lo=no
  1435. + else
  1436. + lt_cv_compiler_o_lo=yes
  1437. + fi
  1438. + ])
  1439. + ac_objext="$save_objext"
  1440. + CFLAGS="$save_CFLAGS"
  1441. + ])
  1442. + compiler_o_lo=$lt_cv_compiler_o_lo
  1443. + AC_MSG_RESULT([$compiler_o_lo])
  1444. +else
  1445. + compiler_o_lo=no
  1446. +fi
  1447. +
  1448. +# Check to see if we can do hard links to lock some files if needed
  1449. +hard_links="nottested"
  1450. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  1451. + # do not overwrite the value of need_locks provided by the user
  1452. + AC_MSG_CHECKING([if we can lock with hard links])
  1453. + hard_links=yes
  1454. + $rm conftest*
  1455. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1456. + touch conftest.a
  1457. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1458. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1459. + AC_MSG_RESULT([$hard_links])
  1460. + if test "$hard_links" = no; then
  1461. + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
  1462. + need_locks=warn
  1463. + fi
  1464. +else
  1465. + need_locks=no
  1466. +fi
  1467. +
  1468. +if test "$GCC" = yes; then
  1469. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  1470. + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
  1471. + echo "int some_variable = 0;" > conftest.$ac_ext
  1472. + save_CFLAGS="$CFLAGS"
  1473. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  1474. + compiler_rtti_exceptions=no
  1475. + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  1476. + # The compiler can only warn and ignore the option if not recognized
  1477. + # So say no if there are warnings
  1478. + if test -s conftest.err; then
  1479. + compiler_rtti_exceptions=no
  1480. + else
  1481. + compiler_rtti_exceptions=yes
  1482. + fi
  1483. + ])
  1484. + CFLAGS="$save_CFLAGS"
  1485. + AC_MSG_RESULT([$compiler_rtti_exceptions])
  1486. +
  1487. + if test "$compiler_rtti_exceptions" = "yes"; then
  1488. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  1489. + else
  1490. + no_builtin_flag=' -fno-builtin'
  1491. + fi
  1492. +fi
  1493. +
  1494. +# See if the linker supports building shared libraries.
  1495. +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
  1496. +
  1497. +allow_undefined_flag=
  1498. +no_undefined_flag=
  1499. +need_lib_prefix=unknown
  1500. +need_version=unknown
  1501. +# when you set need_version to no, make sure it does not cause -set_version
  1502. +# flags to be left without arguments
  1503. +archive_cmds=
  1504. +archive_expsym_cmds=
  1505. +old_archive_from_new_cmds=
  1506. +old_archive_from_expsyms_cmds=
  1507. +export_dynamic_flag_spec=
  1508. +whole_archive_flag_spec=
  1509. +thread_safe_flag_spec=
  1510. +hardcode_into_libs=no
  1511. +hardcode_libdir_flag_spec=
  1512. +hardcode_libdir_separator=
  1513. +hardcode_direct=no
  1514. +hardcode_minus_L=no
  1515. +hardcode_shlibpath_var=unsupported
  1516. +runpath_var=
  1517. +link_all_deplibs=unknown
  1518. +always_export_symbols=no
  1519. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1520. +# include_expsyms should be a list of space-separated symbols to be *always*
  1521. +# included in the symbol list
  1522. +include_expsyms=
  1523. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  1524. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  1525. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1526. +# as well as any symbol that contains `d'.
  1527. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1528. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1529. +# platforms (ab)use it in PIC code, but their linkers get confused if
  1530. +# the symbol is explicitly referenced. Since portable code cannot
  1531. +# rely on this symbol name, it's probably fine to never include it in
  1532. +# preloaded symbol tables.
  1533. +extract_expsyms_cmds=
  1534. +
  1535. +case $host_os in
  1536. +cygwin* | mingw* | pw32*)
  1537. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1538. + # When not using gcc, we currently assume that we are using
  1539. + # Microsoft Visual C++.
  1540. + if test "$GCC" != yes; then
  1541. + with_gnu_ld=no
  1542. + fi
  1543. + ;;
  1544. +openbsd*)
  1545. + with_gnu_ld=no
  1546. + ;;
  1547. +esac
  1548. +
  1549. +ld_shlibs=yes
  1550. +if test "$with_gnu_ld" = yes; then
  1551. + # If archive_cmds runs LD, not CC, wlarc should be empty
  1552. + wlarc='${wl}'
  1553. +
  1554. + # See if GNU ld supports shared libraries.
  1555. + case $host_os in
  1556. + aix3* | aix4* | aix5*)
  1557. + # On AIX, the GNU linker is very broken
  1558. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  1559. + ld_shlibs=no
  1560. + cat <<EOF 1>&2
  1561. +
  1562. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1563. +*** to be unable to reliably create shared libraries on AIX.
  1564. +*** Therefore, libtool is disabling shared libraries support. If you
  1565. +*** really care for shared libraries, you may want to modify your PATH
  1566. +*** so that a non-GNU linker is found, and then restart.
  1567. +
  1568. +EOF
  1569. + ;;
  1570. +
  1571. + amigaos*)
  1572. + 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)'
  1573. + hardcode_libdir_flag_spec='-L$libdir'
  1574. + hardcode_minus_L=yes
  1575. +
  1576. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1577. + # that the semantics of dynamic libraries on AmigaOS, at least up
  1578. + # to version 4, is to share data among multiple programs linked
  1579. + # with the same dynamic library. Since this doesn't match the
  1580. + # behavior of shared libraries on other platforms, we can use
  1581. + # them.
  1582. + ld_shlibs=no
  1583. + ;;
  1584. +
  1585. + beos*)
  1586. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1587. + allow_undefined_flag=unsupported
  1588. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1589. + # support --undefined. This deserves some investigation. FIXME
  1590. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1591. + else
  1592. + ld_shlibs=no
  1593. + fi
  1594. + ;;
  1595. +
  1596. + cygwin* | mingw* | pw32*)
  1597. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  1598. + # no search path for DLLs.
  1599. + hardcode_libdir_flag_spec='-L$libdir'
  1600. + allow_undefined_flag=unsupported
  1601. + always_export_symbols=yes
  1602. +
  1603. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  1604. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  1605. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  1606. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  1607. + else $CC -o impgen impgen.c ; fi)~
  1608. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  1609. +
  1610. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  1611. +
  1612. + # cygwin and mingw dlls have different entry points and sets of symbols
  1613. + # to exclude.
  1614. + # FIXME: what about values for MSVC?
  1615. + dll_entry=__cygwin_dll_entry@12
  1616. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  1617. + case $host_os in
  1618. + mingw*)
  1619. + # mingw values
  1620. + dll_entry=_DllMainCRTStartup@12
  1621. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  1622. + ;;
  1623. + esac
  1624. +
  1625. + # mingw and cygwin differ, and it's simplest to just exclude the union
  1626. + # of the two symbol sets.
  1627. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  1628. +
  1629. + # recent cygwin and mingw systems supply a stub DllMain which the user
  1630. + # can override, but on older systems we have to supply one (in ltdll.c)
  1631. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  1632. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  1633. + 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~
  1634. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  1635. + else
  1636. + ltdll_obj=
  1637. + ltdll_cmds=
  1638. + fi
  1639. +
  1640. + # Extract the symbol export list from an `--export-all' def file,
  1641. + # then regenerate the def file from the symbol export list, so that
  1642. + # the compiled dll only exports the symbol export list.
  1643. + # Be careful not to strip the DATA tag left be newer dlltools.
  1644. + export_symbols_cmds="$ltdll_cmds"'
  1645. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  1646. + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  1647. +
  1648. + # If the export-symbols file already is a .def file (1st line
  1649. + # is EXPORTS), use it as is.
  1650. + # If DATA tags from a recent dlltool are present, honour them!
  1651. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  1652. + cp $export_symbols $output_objdir/$soname-def;
  1653. + else
  1654. + echo EXPORTS > $output_objdir/$soname-def;
  1655. + _lt_hint=1;
  1656. + cat $export_symbols | while read symbol; do
  1657. + set dummy \$symbol;
  1658. + case \[$]# in
  1659. + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  1660. + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  1661. + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  1662. + esac;
  1663. + _lt_hint=`expr 1 + \$_lt_hint`;
  1664. + done;
  1665. + fi~
  1666. + '"$ltdll_cmds"'
  1667. + $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~
  1668. + $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~
  1669. + $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~
  1670. + $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~
  1671. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  1672. + ;;
  1673. +
  1674. + netbsd*)
  1675. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1676. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1677. + wlarc=
  1678. + else
  1679. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1680. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1681. + fi
  1682. + ;;
  1683. +
  1684. + solaris* | sysv5*)
  1685. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  1686. + ld_shlibs=no
  1687. + cat <<EOF 1>&2
  1688. +
  1689. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1690. +*** create shared libraries on Solaris systems. Therefore, libtool
  1691. +*** is disabling shared libraries support. We urge you to upgrade GNU
  1692. +*** binutils to release 2.9.1 or newer. Another option is to modify
  1693. +*** your PATH or compiler configuration so that the native linker is
  1694. +*** used, and then restart.
  1695. +
  1696. +EOF
  1697. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1698. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1699. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1700. + else
  1701. + ld_shlibs=no
  1702. + fi
  1703. + ;;
  1704. +
  1705. + sunos4*)
  1706. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1707. + wlarc=
  1708. + hardcode_direct=yes
  1709. + hardcode_shlibpath_var=no
  1710. + ;;
  1711. +
  1712. + *)
  1713. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1714. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1715. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1716. + else
  1717. + ld_shlibs=no
  1718. + fi
  1719. + ;;
  1720. + esac
  1721. +
  1722. + if test "$ld_shlibs" = yes; then
  1723. + runpath_var=LD_RUN_PATH
  1724. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  1725. + export_dynamic_flag_spec='${wl}--export-dynamic'
  1726. + case $host_os in
  1727. + cygwin* | mingw* | pw32*)
  1728. + # dlltool doesn't understand --whole-archive et. al.
  1729. + whole_archive_flag_spec=
  1730. + ;;
  1731. + *)
  1732. + # ancient GNU ld didn't support --whole-archive et. al.
  1733. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  1734. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1735. + else
  1736. + whole_archive_flag_spec=
  1737. + fi
  1738. + ;;
  1739. + esac
  1740. + fi
  1741. +else
  1742. + # PORTME fill in a description of your system's linker (not GNU ld)
  1743. + case $host_os in
  1744. + aix3*)
  1745. + allow_undefined_flag=unsupported
  1746. + always_export_symbols=yes
  1747. + 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'
  1748. + # Note: this linker hardcodes the directories in LIBPATH if there
  1749. + # are no directories specified by -L.
  1750. + hardcode_minus_L=yes
  1751. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  1752. + # Neither direct hardcoding nor static linking is supported with a
  1753. + # broken collect2.
  1754. + hardcode_direct=unsupported
  1755. + fi
  1756. + ;;
  1757. +
  1758. + aix4* | aix5*)
  1759. + if test "$host_cpu" = ia64; then
  1760. + # On IA64, the linker does run time linking by default, so we don't
  1761. + # have to do anything special.
  1762. + aix_use_runtimelinking=no
  1763. + exp_sym_flag='-Bexport'
  1764. + no_entry_flag=""
  1765. + else
  1766. + aix_use_runtimelinking=no
  1767. +
  1768. + # Test if we are trying to use run time linking or normal
  1769. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1770. + # need to do runtime linking.
  1771. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1772. + for ld_flag in $LDFLAGS; do
  1773. + case $ld_flag in
  1774. + *-brtl*)
  1775. + aix_use_runtimelinking=yes
  1776. + break
  1777. + ;;
  1778. + esac
  1779. + done
  1780. + esac
  1781. +
  1782. + exp_sym_flag='-bexport'
  1783. + no_entry_flag='-bnoentry'
  1784. + fi
  1785. +
  1786. + # When large executables or shared objects are built, AIX ld can
  1787. + # have problems creating the table of contents. If linking a library
  1788. + # or program results in "error TOC overflow" add -mminimal-toc to
  1789. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  1790. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1791. +
  1792. + hardcode_direct=yes
  1793. + archive_cmds=''
  1794. + hardcode_libdir_separator=':'
  1795. + if test "$GCC" = yes; then
  1796. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1797. + collect2name=`${CC} -print-prog-name=collect2`
  1798. + if test -f "$collect2name" && \
  1799. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  1800. + then
  1801. + # We have reworked collect2
  1802. + hardcode_direct=yes
  1803. + else
  1804. + # We have old collect2
  1805. + hardcode_direct=unsupported
  1806. + # It fails to find uninstalled libraries when the uninstalled
  1807. + # path is not listed in the libpath. Setting hardcode_minus_L
  1808. + # to unsupported forces relinking
  1809. + hardcode_minus_L=yes
  1810. + hardcode_libdir_flag_spec='-L$libdir'
  1811. + hardcode_libdir_separator=
  1812. + fi
  1813. + esac
  1814. +
  1815. + shared_flag='-shared'
  1816. + else
  1817. + # not using gcc
  1818. + if test "$host_cpu" = ia64; then
  1819. + shared_flag='${wl}-G'
  1820. + else
  1821. + if test "$aix_use_runtimelinking" = yes; then
  1822. + shared_flag='${wl}-G'
  1823. + else
  1824. + shared_flag='${wl}-bM:SRE'
  1825. + fi
  1826. + fi
  1827. + fi
  1828. +
  1829. + # It seems that -bexpall can do strange things, so it is better to
  1830. + # generate a list of symbols to export.
  1831. + always_export_symbols=yes
  1832. + if test "$aix_use_runtimelinking" = yes; then
  1833. + # Warning - without using the other runtime loading flags (-brtl),
  1834. + # -berok will link without error, but may produce a broken library.
  1835. + allow_undefined_flag='-berok'
  1836. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  1837. + 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"
  1838. + else
  1839. + if test "$host_cpu" = ia64; then
  1840. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  1841. + allow_undefined_flag="-z nodefs"
  1842. + 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"
  1843. + else
  1844. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  1845. + # Warning - without using the other run time loading flags,
  1846. + # -berok will link without error, but may produce a broken library.
  1847. + allow_undefined_flag='${wl}-berok'
  1848. + # This is a bit strange, but is similar to how AIX traditionally builds
  1849. + # it's shared libraries.
  1850. + 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'
  1851. + fi
  1852. + fi
  1853. + ;;
  1854. +
  1855. + amigaos*)
  1856. + 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)'
  1857. + hardcode_libdir_flag_spec='-L$libdir'
  1858. + hardcode_minus_L=yes
  1859. + # see comment about different semantics on the GNU ld section
  1860. + ld_shlibs=no
  1861. + ;;
  1862. +
  1863. + cygwin* | mingw* | pw32*)
  1864. + # When not using gcc, we currently assume that we are using
  1865. + # Microsoft Visual C++.
  1866. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  1867. + # no search path for DLLs.
  1868. + hardcode_libdir_flag_spec=' '
  1869. + allow_undefined_flag=unsupported
  1870. + # Tell ltmain to make .lib files, not .a files.
  1871. + libext=lib
  1872. + # FIXME: Setting linknames here is a bad hack.
  1873. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1874. + # The linker will automatically build a .lib file if we build a DLL.
  1875. + old_archive_from_new_cmds='true'
  1876. + # FIXME: Should let the user specify the lib program.
  1877. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  1878. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  1879. + ;;
  1880. +
  1881. + darwin* | rhapsody*)
  1882. + case "$host_os" in
  1883. + rhapsody* | darwin1.[[012]])
  1884. + allow_undefined_flag='-undefined suppress'
  1885. + ;;
  1886. + *) # Darwin 1.3 on
  1887. + allow_undefined_flag='-flat_namespace -undefined suppress'
  1888. + ;;
  1889. + esac
  1890. + # FIXME: Relying on posixy $() will cause problems for
  1891. + # cross-compilation, but unfortunately the echo tests do not
  1892. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  1893. + # `"' quotes if we put them in here... so don't!
  1894. + 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)'
  1895. + # We need to add '_' to the symbols in $export_symbols first
  1896. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  1897. + hardcode_direct=yes
  1898. + hardcode_shlibpath_var=no
  1899. + whole_archive_flag_spec='-all_load $convenience'
  1900. + ;;
  1901. +
  1902. + freebsd1*)
  1903. + ld_shlibs=no
  1904. + ;;
  1905. +
  1906. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1907. + # support. Future versions do this automatically, but an explicit c++rt0.o
  1908. + # does not break anything, and helps significantly (at the cost of a little
  1909. + # extra space).
  1910. + freebsd2.2*)
  1911. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  1912. + hardcode_libdir_flag_spec='-R$libdir'
  1913. + hardcode_direct=yes
  1914. + hardcode_shlibpath_var=no
  1915. + ;;
  1916. +
  1917. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1918. + freebsd2*)
  1919. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1920. + hardcode_direct=yes
  1921. + hardcode_minus_L=yes
  1922. + hardcode_shlibpath_var=no
  1923. + ;;
  1924. +
  1925. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1926. + freebsd*)
  1927. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1928. + hardcode_libdir_flag_spec='-R$libdir'
  1929. + hardcode_direct=yes
  1930. + hardcode_shlibpath_var=no
  1931. + ;;
  1932. +
  1933. + hpux9* | hpux10* | hpux11*)
  1934. + case $host_os in
  1935. + 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' ;;
  1936. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  1937. + esac
  1938. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1939. + hardcode_libdir_separator=:
  1940. + hardcode_direct=yes
  1941. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  1942. + # location of the library.
  1943. + export_dynamic_flag_spec='${wl}-E'
  1944. + ;;
  1945. +
  1946. + irix5* | irix6* | nonstopux*)
  1947. + if test "$GCC" = yes; then
  1948. + 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'
  1949. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1950. + else
  1951. + 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'
  1952. + hardcode_libdir_flag_spec='-rpath $libdir'
  1953. + fi
  1954. + hardcode_libdir_separator=:
  1955. + link_all_deplibs=yes
  1956. + ;;
  1957. +
  1958. + netbsd*)
  1959. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1960. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  1961. + else
  1962. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  1963. + fi
  1964. + hardcode_libdir_flag_spec='-R$libdir'
  1965. + hardcode_direct=yes
  1966. + hardcode_shlibpath_var=no
  1967. + ;;
  1968. +
  1969. + newsos6)
  1970. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1971. + hardcode_direct=yes
  1972. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1973. + hardcode_libdir_separator=:
  1974. + hardcode_shlibpath_var=no
  1975. + ;;
  1976. +
  1977. + openbsd*)
  1978. + hardcode_direct=yes
  1979. + hardcode_shlibpath_var=no
  1980. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1981. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1982. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  1983. + export_dynamic_flag_spec='${wl}-E'
  1984. + else
  1985. + case "$host_os" in
  1986. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1987. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1988. + hardcode_libdir_flag_spec='-R$libdir'
  1989. + ;;
  1990. + *)
  1991. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1992. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  1993. + ;;
  1994. + esac
  1995. + fi
  1996. + ;;
  1997. +
  1998. + os2*)
  1999. + hardcode_libdir_flag_spec='-L$libdir'
  2000. + hardcode_minus_L=yes
  2001. + allow_undefined_flag=unsupported
  2002. + 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'
  2003. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  2004. + ;;
  2005. +
  2006. + osf3*)
  2007. + if test "$GCC" = yes; then
  2008. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  2009. + 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'
  2010. + else
  2011. + allow_undefined_flag=' -expect_unresolved \*'
  2012. + 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'
  2013. + fi
  2014. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2015. + hardcode_libdir_separator=:
  2016. + ;;
  2017. +
  2018. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  2019. + if test "$GCC" = yes; then
  2020. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  2021. + 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'
  2022. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2023. + else
  2024. + allow_undefined_flag=' -expect_unresolved \*'
  2025. + 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'
  2026. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  2027. + $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'
  2028. +
  2029. + #Both c and cxx compiler support -rpath directly
  2030. + hardcode_libdir_flag_spec='-rpath $libdir'
  2031. + fi
  2032. + hardcode_libdir_separator=:
  2033. + ;;
  2034. +
  2035. + sco3.2v5*)
  2036. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2037. + hardcode_shlibpath_var=no
  2038. + runpath_var=LD_RUN_PATH
  2039. + hardcode_runpath_var=yes
  2040. + export_dynamic_flag_spec='${wl}-Bexport'
  2041. + ;;
  2042. +
  2043. + solaris*)
  2044. + # gcc --version < 3.0 without binutils cannot create self contained
  2045. + # shared libraries reliably, requiring libgcc.a to resolve some of
  2046. + # the object symbols generated in some cases. Libraries that use
  2047. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  2048. + # a copy of libgcc.a into every shared library to guarantee resolving
  2049. + # such symbols causes other problems: According to Tim Van Holder
  2050. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  2051. + # (to the application) exception stack for one thing.
  2052. + no_undefined_flag=' -z defs'
  2053. + if test "$GCC" = yes; then
  2054. + case `$CC --version 2>/dev/null` in
  2055. + [[12]].*)
  2056. + cat <<EOF 1>&2
  2057. +
  2058. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  2059. +*** create self contained shared libraries on Solaris systems, without
  2060. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  2061. +*** -no-undefined support, which will at least allow you to build shared
  2062. +*** libraries. However, you may find that when you link such libraries
  2063. +*** into an application without using GCC, you have to manually add
  2064. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  2065. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  2066. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  2067. +
  2068. +EOF
  2069. + no_undefined_flag=
  2070. + ;;
  2071. + esac
  2072. + fi
  2073. + # $CC -shared without GNU ld will not create a library from C++
  2074. + # object files and a static libstdc++, better avoid it by now
  2075. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2076. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  2077. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  2078. + hardcode_libdir_flag_spec='-R$libdir'
  2079. + hardcode_shlibpath_var=no
  2080. + case $host_os in
  2081. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  2082. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  2083. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  2084. + esac
  2085. + link_all_deplibs=yes
  2086. + ;;
  2087. +
  2088. + sunos4*)
  2089. + if test "x$host_vendor" = xsequent; then
  2090. + # Use $CC to link under sequent, because it throws in some extra .o
  2091. + # files that make .init and .fini sections work.
  2092. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  2093. + else
  2094. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  2095. + fi
  2096. + hardcode_libdir_flag_spec='-L$libdir'
  2097. + hardcode_direct=yes
  2098. + hardcode_minus_L=yes
  2099. + hardcode_shlibpath_var=no
  2100. + ;;
  2101. +
  2102. + sysv4)
  2103. + case $host_vendor in
  2104. + sni)
  2105. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2106. + hardcode_direct=yes # is this really true???
  2107. + ;;
  2108. + siemens)
  2109. + ## LD is ld it makes a PLAMLIB
  2110. + ## CC just makes a GrossModule.
  2111. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  2112. + reload_cmds='$CC -r -o $output$reload_objs'
  2113. + hardcode_direct=no
  2114. + ;;
  2115. + motorola)
  2116. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2117. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  2118. + ;;
  2119. + esac
  2120. + runpath_var='LD_RUN_PATH'
  2121. + hardcode_shlibpath_var=no
  2122. + ;;
  2123. +
  2124. + sysv4.3*)
  2125. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2126. + hardcode_shlibpath_var=no
  2127. + export_dynamic_flag_spec='-Bexport'
  2128. + ;;
  2129. +
  2130. + sysv5*)
  2131. + no_undefined_flag=' -z text'
  2132. + # $CC -shared without GNU ld will not create a library from C++
  2133. + # object files and a static libstdc++, better avoid it by now
  2134. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2135. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  2136. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  2137. + hardcode_libdir_flag_spec=
  2138. + hardcode_shlibpath_var=no
  2139. + runpath_var='LD_RUN_PATH'
  2140. + ;;
  2141. +
  2142. + uts4*)
  2143. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2144. + hardcode_libdir_flag_spec='-L$libdir'
  2145. + hardcode_shlibpath_var=no
  2146. + ;;
  2147. +
  2148. + dgux*)
  2149. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2150. + hardcode_libdir_flag_spec='-L$libdir'
  2151. + hardcode_shlibpath_var=no
  2152. + ;;
  2153. +
  2154. + sysv4*MP*)
  2155. + if test -d /usr/nec; then
  2156. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2157. + hardcode_shlibpath_var=no
  2158. + runpath_var=LD_RUN_PATH
  2159. + hardcode_runpath_var=yes
  2160. + ld_shlibs=yes
  2161. + fi
  2162. + ;;
  2163. +
  2164. + sysv4.2uw2*)
  2165. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  2166. + hardcode_direct=yes
  2167. + hardcode_minus_L=no
  2168. + hardcode_shlibpath_var=no
  2169. + hardcode_runpath_var=yes
  2170. + runpath_var=LD_RUN_PATH
  2171. + ;;
  2172. +
  2173. + sysv5uw7* | unixware7*)
  2174. + no_undefined_flag='${wl}-z ${wl}text'
  2175. + if test "$GCC" = yes; then
  2176. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  2177. + else
  2178. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  2179. + fi
  2180. + runpath_var='LD_RUN_PATH'
  2181. + hardcode_shlibpath_var=no
  2182. + ;;
  2183. +
  2184. + *)
  2185. + ld_shlibs=no
  2186. + ;;
  2187. + esac
  2188. +fi
  2189. +AC_MSG_RESULT([$ld_shlibs])
  2190. +test "$ld_shlibs" = no && can_build_shared=no
  2191. +
  2192. +# Check hardcoding attributes.
  2193. +AC_MSG_CHECKING([how to hardcode library paths into programs])
  2194. +hardcode_action=
  2195. +if test -n "$hardcode_libdir_flag_spec" || \
  2196. + test -n "$runpath_var"; then
  2197. +
  2198. + # We can hardcode non-existant directories.
  2199. + if test "$hardcode_direct" != no &&
  2200. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2201. + # have to relink, otherwise we might link with an installed library
  2202. + # when we should be linking with a yet-to-be-installed one
  2203. + ## test "$hardcode_shlibpath_var" != no &&
  2204. + test "$hardcode_minus_L" != no; then
  2205. + # Linking always hardcodes the temporary library directory.
  2206. + hardcode_action=relink
  2207. + else
  2208. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2209. + hardcode_action=immediate
  2210. + fi
  2211. +else
  2212. + # We cannot hardcode anything, or else we can only hardcode existing
  2213. + # directories.
  2214. + hardcode_action=unsupported
  2215. +fi
  2216. +AC_MSG_RESULT([$hardcode_action])
  2217. +
  2218. +striplib=
  2219. +old_striplib=
  2220. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2221. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2222. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2223. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2224. + AC_MSG_RESULT([yes])
  2225. +else
  2226. + AC_MSG_RESULT([no])
  2227. +fi
  2228. +
  2229. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2230. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2231. +
  2232. +# PORTME Fill in your ld.so characteristics
  2233. +AC_MSG_CHECKING([dynamic linker characteristics])
  2234. +library_names_spec=
  2235. +libname_spec='lib$name'
  2236. +soname_spec=
  2237. +postinstall_cmds=
  2238. +postuninstall_cmds=
  2239. +finish_cmds=
  2240. +finish_eval=
  2241. +shlibpath_var=
  2242. +shlibpath_overrides_runpath=unknown
  2243. +version_type=none
  2244. +dynamic_linker="$host_os ld.so"
  2245. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2246. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2247. +
  2248. +case $host_os in
  2249. +aix3*)
  2250. + version_type=linux
  2251. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  2252. + shlibpath_var=LIBPATH
  2253. +
  2254. + # AIX has no versioning support, so we append a major version to the name.
  2255. + soname_spec='${libname}${release}.so$major'
  2256. + ;;
  2257. +
  2258. +aix4* | aix5*)
  2259. + version_type=linux
  2260. + need_lib_prefix=no
  2261. + need_version=no
  2262. + hardcode_into_libs=yes
  2263. + if test "$host_cpu" = ia64; then
  2264. + # AIX 5 supports IA64
  2265. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  2266. + shlibpath_var=LD_LIBRARY_PATH
  2267. + else
  2268. + # With GCC up to 2.95.x, collect2 would create an import file
  2269. + # for dependence libraries. The import file would start with
  2270. + # the line `#! .'. This would cause the generated library to
  2271. + # depend on `.', always an invalid library. This was fixed in
  2272. + # development snapshots of GCC prior to 3.0.
  2273. + case $host_os in
  2274. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2275. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2276. + echo ' yes '
  2277. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2278. + :
  2279. + else
  2280. + can_build_shared=no
  2281. + fi
  2282. + ;;
  2283. + esac
  2284. + # AIX (on Power*) has no versioning support, so currently we can
  2285. + # not hardcode correct soname into executable. Probably we can
  2286. + # add versioning support to collect2, so additional links can
  2287. + # be useful in future.
  2288. + if test "$aix_use_runtimelinking" = yes; then
  2289. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2290. + # instead of lib<name>.a to let people know that these are not
  2291. + # typical AIX shared libraries.
  2292. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2293. + else
  2294. + # We preserve .a as extension for shared libraries through AIX4.2
  2295. + # and later when we are not doing run time linking.
  2296. + library_names_spec='${libname}${release}.a $libname.a'
  2297. + soname_spec='${libname}${release}.so$major'
  2298. + fi
  2299. + shlibpath_var=LIBPATH
  2300. + fi
  2301. + hardcode_into_libs=yes
  2302. + ;;
  2303. +
  2304. +amigaos*)
  2305. + library_names_spec='$libname.ixlibrary $libname.a'
  2306. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2307. + 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'
  2308. + ;;
  2309. +
  2310. +beos*)
  2311. + library_names_spec='${libname}.so'
  2312. + dynamic_linker="$host_os ld.so"
  2313. + shlibpath_var=LIBRARY_PATH
  2314. + ;;
  2315. +
  2316. +bsdi4*)
  2317. + version_type=linux
  2318. + need_version=no
  2319. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2320. + soname_spec='${libname}${release}.so$major'
  2321. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2322. + shlibpath_var=LD_LIBRARY_PATH
  2323. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2324. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2325. + export_dynamic_flag_spec=-rdynamic
  2326. + # the default ld.so.conf also contains /usr/contrib/lib and
  2327. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2328. + # libtool to hard-code these into programs
  2329. + ;;
  2330. +
  2331. +cygwin* | mingw* | pw32*)
  2332. + version_type=windows
  2333. + need_version=no
  2334. + need_lib_prefix=no
  2335. + case $GCC,$host_os in
  2336. + yes,cygwin*)
  2337. + library_names_spec='$libname.dll.a'
  2338. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  2339. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  2340. + dldir=$destdir/`dirname \$dlpath`~
  2341. + test -d \$dldir || mkdir -p \$dldir~
  2342. + $install_prog .libs/$dlname \$dldir/$dlname'
  2343. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2344. + dlpath=$dir/\$dldll~
  2345. + $rm \$dlpath'
  2346. + ;;
  2347. + yes,mingw*)
  2348. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  2349. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  2350. + ;;
  2351. + yes,pw32*)
  2352. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  2353. + ;;
  2354. + *)
  2355. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  2356. + ;;
  2357. + esac
  2358. + dynamic_linker='Win32 ld.exe'
  2359. + # FIXME: first we should search . and the directory the executable is in
  2360. + shlibpath_var=PATH
  2361. + ;;
  2362. +
  2363. +darwin* | rhapsody*)
  2364. + dynamic_linker="$host_os dyld"
  2365. + version_type=darwin
  2366. + need_lib_prefix=no
  2367. + need_version=no
  2368. + # FIXME: Relying on posixy $() will cause problems for
  2369. + # cross-compilation, but unfortunately the echo tests do not
  2370. + # yet detect zsh echo's removal of \ escapes.
  2371. + 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)'
  2372. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  2373. + shlibpath_overrides_runpath=yes
  2374. + shlibpath_var=DYLD_LIBRARY_PATH
  2375. + ;;
  2376. +
  2377. +freebsd1*)
  2378. + dynamic_linker=no
  2379. + ;;
  2380. +
  2381. +freebsd*-gnu*)
  2382. + version_type=linux
  2383. + need_lib_prefix=no
  2384. + need_version=no
  2385. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2386. + soname_spec='${libname}${release}.so$major'
  2387. + shlibpath_var=LD_LIBRARY_PATH
  2388. + shlibpath_overrides_runpath=no
  2389. + hardcode_into_libs=yes
  2390. + dynamic_linker='GNU/FreeBSD ld.so'
  2391. + ;;
  2392. +
  2393. +freebsd*)
  2394. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2395. + version_type=freebsd-$objformat
  2396. + case $version_type in
  2397. + freebsd-elf*)
  2398. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  2399. + need_version=no
  2400. + need_lib_prefix=no
  2401. + ;;
  2402. + freebsd-*)
  2403. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  2404. + need_version=yes
  2405. + ;;
  2406. + esac
  2407. + shlibpath_var=LD_LIBRARY_PATH
  2408. + case $host_os in
  2409. + freebsd2*)
  2410. + shlibpath_overrides_runpath=yes
  2411. + ;;
  2412. + *)
  2413. + shlibpath_overrides_runpath=no
  2414. + hardcode_into_libs=yes
  2415. + ;;
  2416. + esac
  2417. + ;;
  2418. +
  2419. +gnu*)
  2420. + version_type=linux
  2421. + need_lib_prefix=no
  2422. + need_version=no
  2423. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  2424. + soname_spec='${libname}${release}.so$major'
  2425. + shlibpath_var=LD_LIBRARY_PATH
  2426. + hardcode_into_libs=yes
  2427. + ;;
  2428. +
  2429. +hpux9* | hpux10* | hpux11*)
  2430. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2431. + # link against other versions.
  2432. + dynamic_linker="$host_os dld.sl"
  2433. + version_type=sunos
  2434. + need_lib_prefix=no
  2435. + need_version=no
  2436. + shlibpath_var=SHLIB_PATH
  2437. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2438. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  2439. + soname_spec='${libname}${release}.sl$major'
  2440. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2441. + postinstall_cmds='chmod 555 $lib'
  2442. + ;;
  2443. +
  2444. +irix5* | irix6* | nonstopux*)
  2445. + case $host_os in
  2446. + nonstopux*) version_type=nonstopux ;;
  2447. + *) version_type=irix ;;
  2448. + esac
  2449. + need_lib_prefix=no
  2450. + need_version=no
  2451. + soname_spec='${libname}${release}.so$major'
  2452. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  2453. + case $host_os in
  2454. + irix5* | nonstopux*)
  2455. + libsuff= shlibsuff=
  2456. + ;;
  2457. + *)
  2458. + case $LD in # libtool.m4 will add one of these switches to LD
  2459. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  2460. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  2461. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2462. + *) libsuff= shlibsuff= libmagic=never-match;;
  2463. + esac
  2464. + ;;
  2465. + esac
  2466. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2467. + shlibpath_overrides_runpath=no
  2468. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2469. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2470. + ;;
  2471. +
  2472. +# No shared lib support for Linux oldld, aout, or coff.
  2473. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  2474. + dynamic_linker=no
  2475. + ;;
  2476. +
  2477. +# This must be Linux ELF.
  2478. +linux-gnu*)
  2479. + version_type=linux
  2480. + need_lib_prefix=no
  2481. + need_version=no
  2482. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2483. + soname_spec='${libname}${release}.so$major'
  2484. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2485. + shlibpath_var=LD_LIBRARY_PATH
  2486. + shlibpath_overrides_runpath=no
  2487. + # This implies no fast_install, which is unacceptable.
  2488. + # Some rework will be needed to allow for fast_install
  2489. + # before this can be enabled.
  2490. + hardcode_into_libs=yes
  2491. +
  2492. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2493. + # powerpc, because MkLinux only supported shared libraries with the
  2494. + # GNU dynamic linker. Since this was broken with cross compilers,
  2495. + # most powerpc-linux boxes support dynamic linking these days and
  2496. + # people can always --disable-shared, the test was removed, and we
  2497. + # assume the GNU/Linux dynamic linker is in use.
  2498. + dynamic_linker='GNU/Linux ld.so'
  2499. + ;;
  2500. +
  2501. +netbsd*)
  2502. + version_type=sunos
  2503. + need_lib_prefix=no
  2504. + need_version=no
  2505. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2506. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  2507. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2508. + dynamic_linker='NetBSD (a.out) ld.so'
  2509. + else
  2510. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  2511. + soname_spec='${libname}${release}.so$major'
  2512. + dynamic_linker='NetBSD ld.elf_so'
  2513. + fi
  2514. + shlibpath_var=LD_LIBRARY_PATH
  2515. + shlibpath_overrides_runpath=yes
  2516. + hardcode_into_libs=yes
  2517. + ;;
  2518. +
  2519. +newsos6)
  2520. + version_type=linux
  2521. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2522. + shlibpath_var=LD_LIBRARY_PATH
  2523. + shlibpath_overrides_runpath=yes
  2524. + ;;
  2525. +
  2526. +openbsd*)
  2527. + version_type=sunos
  2528. + need_lib_prefix=no
  2529. + need_version=no
  2530. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2531. + case "$host_os" in
  2532. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2533. + shlibpath_overrides_runpath=no
  2534. + ;;
  2535. + *)
  2536. + shlibpath_overrides_runpath=yes
  2537. + ;;
  2538. + esac
  2539. + else
  2540. + shlibpath_overrides_runpath=yes
  2541. + fi
  2542. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  2543. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2544. + shlibpath_var=LD_LIBRARY_PATH
  2545. + ;;
  2546. +
  2547. +os2*)
  2548. + libname_spec='$name'
  2549. + need_lib_prefix=no
  2550. + library_names_spec='$libname.dll $libname.a'
  2551. + dynamic_linker='OS/2 ld.exe'
  2552. + shlibpath_var=LIBPATH
  2553. + ;;
  2554. +
  2555. +osf3* | osf4* | osf5*)
  2556. + version_type=osf
  2557. + need_version=no
  2558. + need_lib_prefix=no
  2559. + soname_spec='${libname}${release}.so$major'
  2560. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2561. + shlibpath_var=LD_LIBRARY_PATH
  2562. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2563. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2564. + hardcode_into_libs=yes
  2565. + ;;
  2566. +
  2567. +sco3.2v5*)
  2568. + version_type=osf
  2569. + soname_spec='${libname}${release}.so$major'
  2570. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2571. + shlibpath_var=LD_LIBRARY_PATH
  2572. + ;;
  2573. +
  2574. +solaris*)
  2575. + version_type=linux
  2576. + need_lib_prefix=no
  2577. + need_version=no
  2578. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2579. + soname_spec='${libname}${release}.so$major'
  2580. + shlibpath_var=LD_LIBRARY_PATH
  2581. + shlibpath_overrides_runpath=yes
  2582. + hardcode_into_libs=yes
  2583. + # ldd complains unless libraries are executable
  2584. + postinstall_cmds='chmod +x $lib'
  2585. + ;;
  2586. +
  2587. +sunos4*)
  2588. + version_type=sunos
  2589. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  2590. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2591. + shlibpath_var=LD_LIBRARY_PATH
  2592. + shlibpath_overrides_runpath=yes
  2593. + if test "$with_gnu_ld" = yes; then
  2594. + need_lib_prefix=no
  2595. + fi
  2596. + need_version=yes
  2597. + ;;
  2598. +
  2599. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2600. + version_type=linux
  2601. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2602. + soname_spec='${libname}${release}.so$major'
  2603. + shlibpath_var=LD_LIBRARY_PATH
  2604. + case $host_vendor in
  2605. + sni)
  2606. + shlibpath_overrides_runpath=no
  2607. + need_lib_prefix=no
  2608. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  2609. + runpath_var=LD_RUN_PATH
  2610. + ;;
  2611. + siemens)
  2612. + need_lib_prefix=no
  2613. + ;;
  2614. + motorola)
  2615. + need_lib_prefix=no
  2616. + need_version=no
  2617. + shlibpath_overrides_runpath=no
  2618. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2619. + ;;
  2620. + esac
  2621. + ;;
  2622. +
  2623. +uts4*)
  2624. + version_type=linux
  2625. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2626. + soname_spec='${libname}${release}.so$major'
  2627. + shlibpath_var=LD_LIBRARY_PATH
  2628. + ;;
  2629. +
  2630. +dgux*)
  2631. + version_type=linux
  2632. + need_lib_prefix=no
  2633. + need_version=no
  2634. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  2635. + soname_spec='${libname}${release}.so$major'
  2636. + shlibpath_var=LD_LIBRARY_PATH
  2637. + ;;
  2638. +
  2639. +sysv4*MP*)
  2640. + if test -d /usr/nec ;then
  2641. + version_type=linux
  2642. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  2643. + soname_spec='$libname.so.$major'
  2644. + shlibpath_var=LD_LIBRARY_PATH
  2645. + fi
  2646. + ;;
  2647. +
  2648. +*)
  2649. + dynamic_linker=no
  2650. + ;;
  2651. +esac
  2652. +AC_MSG_RESULT([$dynamic_linker])
  2653. +test "$dynamic_linker" = no && can_build_shared=no
  2654. +
  2655. +# Report the final consequences.
  2656. +AC_MSG_CHECKING([if libtool supports shared libraries])
  2657. +AC_MSG_RESULT([$can_build_shared])
  2658. +
  2659. +AC_MSG_CHECKING([whether to build shared libraries])
  2660. +test "$can_build_shared" = "no" && enable_shared=no
  2661. +
  2662. +# On AIX, shared libraries and static libraries use the same namespace, and
  2663. +# are all built from PIC.
  2664. +case "$host_os" in
  2665. +aix3*)
  2666. + test "$enable_shared" = yes && enable_static=no
  2667. + if test -n "$RANLIB"; then
  2668. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2669. + postinstall_cmds='$RANLIB $lib'
  2670. + fi
  2671. + ;;
  2672. +
  2673. +aix4*)
  2674. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2675. + test "$enable_shared" = yes && enable_static=no
  2676. + fi
  2677. + ;;
  2678. +esac
  2679. +AC_MSG_RESULT([$enable_shared])
  2680. +
  2681. +AC_MSG_CHECKING([whether to build static libraries])
  2682. +# Make sure either enable_shared or enable_static is yes.
  2683. +test "$enable_shared" = yes || enable_static=yes
  2684. +AC_MSG_RESULT([$enable_static])
  2685. +
  2686. +if test "$hardcode_action" = relink; then
  2687. + # Fast installation is not supported
  2688. + enable_fast_install=no
  2689. +elif test "$shlibpath_overrides_runpath" = yes ||
  2690. + test "$enable_shared" = no; then
  2691. + # Fast installation is not necessary
  2692. + enable_fast_install=needless
  2693. +fi
  2694. +
  2695. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2696. +if test "$GCC" = yes; then
  2697. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2698. +fi
  2699. +
  2700. +AC_LIBTOOL_DLOPEN_SELF
  2701. +
  2702. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  2703. + case $archive_cmds in
  2704. + *'~'*)
  2705. + # FIXME: we may have to deal with multi-command sequences.
  2706. + ;;
  2707. + '$CC '*)
  2708. + # Test whether the compiler implicitly links with -lc since on some
  2709. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  2710. + # to ld, don't add -lc before -lgcc.
  2711. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  2712. + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
  2713. + [$rm conftest*
  2714. + echo 'static int dummy;' > conftest.$ac_ext
  2715. +
  2716. + if AC_TRY_EVAL(ac_compile); then
  2717. + soname=conftest
  2718. + lib=conftest
  2719. + libobjs=conftest.$ac_objext
  2720. + deplibs=
  2721. + wl=$lt_cv_prog_cc_wl
  2722. + compiler_flags=-v
  2723. + linker_flags=-v
  2724. + verstring=
  2725. + output_objdir=.
  2726. + libname=conftest
  2727. + save_allow_undefined_flag=$allow_undefined_flag
  2728. + allow_undefined_flag=
  2729. + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  2730. + then
  2731. + lt_cv_archive_cmds_need_lc=no
  2732. + else
  2733. + lt_cv_archive_cmds_need_lc=yes
  2734. + fi
  2735. + allow_undefined_flag=$save_allow_undefined_flag
  2736. + else
  2737. + cat conftest.err 1>&5
  2738. + fi])
  2739. + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
  2740. + ;;
  2741. + esac
  2742. +fi
  2743. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  2744. +
  2745. +# The second clause should only fire when bootstrapping the
  2746. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  2747. +# with your package, and you will get complaints that there are
  2748. +# no rules to generate ltmain.sh.
  2749. +if test -f "$ltmain"; then
  2750. + :
  2751. +else
  2752. + # If there is no Makefile yet, we rely on a make rule to execute
  2753. + # `config.status --recheck' to rerun these tests and create the
  2754. + # libtool script then.
  2755. + test -f Makefile && make "$ltmain"
  2756. +fi
  2757. +
  2758. +if test -f "$ltmain"; then
  2759. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  2760. + $rm -f "${ofile}T"
  2761. +
  2762. + echo creating $ofile
  2763. +
  2764. + # Now quote all the things that may contain metacharacters while being
  2765. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  2766. + # variables and quote the copies for generation of the libtool script.
  2767. + for var in echo old_CC old_CFLAGS SED \
  2768. + AR AR_FLAGS CC LD LN_S NM SHELL \
  2769. + reload_flag reload_cmds wl \
  2770. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  2771. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  2772. + library_names_spec soname_spec \
  2773. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  2774. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  2775. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  2776. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  2777. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  2778. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  2779. + global_symbol_to_c_name_address \
  2780. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  2781. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  2782. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  2783. +
  2784. + case $var in
  2785. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  2786. + old_postinstall_cmds | old_postuninstall_cmds | \
  2787. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  2788. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  2789. + postinstall_cmds | postuninstall_cmds | \
  2790. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  2791. + # Double-quote double-evaled strings.
  2792. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  2793. + ;;
  2794. + *)
  2795. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  2796. + ;;
  2797. + esac
  2798. + done
  2799. +
  2800. + cat <<__EOF__ > "${ofile}T"
  2801. +#! $SHELL
  2802. +
  2803. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  2804. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  2805. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  2806. +#
  2807. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  2808. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  2809. +#
  2810. +# This program is free software; you can redistribute it and/or modify
  2811. +# it under the terms of the GNU General Public License as published by
  2812. +# the Free Software Foundation; either version 2 of the License, or
  2813. +# (at your option) any later version.
  2814. +#
  2815. +# This program is distributed in the hope that it will be useful, but
  2816. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  2817. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  2818. +# General Public License for more details.
  2819. +#
  2820. +# You should have received a copy of the GNU General Public License
  2821. +# along with this program; if not, write to the Free Software
  2822. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  2823. +#
  2824. +# As a special exception to the GNU General Public License, if you
  2825. +# distribute this file as part of a program that contains a
  2826. +# configuration script generated by Autoconf, you may include it under
  2827. +# the same distribution terms that you use for the rest of that program.
  2828. +
  2829. +# A sed that does not truncate output.
  2830. +SED=$lt_SED
  2831. +
  2832. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  2833. +Xsed="${SED} -e s/^X//"
  2834. +
  2835. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  2836. +# if CDPATH is set.
  2837. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  2838. +
  2839. +# ### BEGIN LIBTOOL CONFIG
  2840. +
  2841. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2842. +
  2843. +# Shell to use when invoking shell scripts.
  2844. +SHELL=$lt_SHELL
  2845. +
  2846. +# Whether or not to build shared libraries.
  2847. +build_libtool_libs=$enable_shared
  2848. +
  2849. +# Whether or not to build static libraries.
  2850. +build_old_libs=$enable_static
  2851. +
  2852. +# Whether or not to add -lc for building shared libraries.
  2853. +build_libtool_need_lc=$need_lc
  2854. +
  2855. +# Whether or not to optimize for fast installation.
  2856. +fast_install=$enable_fast_install
  2857. +
  2858. +# The host system.
  2859. +host_alias=$host_alias
  2860. +host=$host
  2861. +
  2862. +# An echo program that does not interpret backslashes.
  2863. +echo=$lt_echo
  2864. +
  2865. +# The archiver.
  2866. +AR=$lt_AR
  2867. +AR_FLAGS=$lt_AR_FLAGS
  2868. +
  2869. +# The default C compiler.
  2870. +CC=$lt_CC
  2871. +
  2872. +# Is the compiler the GNU C compiler?
  2873. +with_gcc=$GCC
  2874. +
  2875. +# The linker used to build libraries.
  2876. +LD=$lt_LD
  2877. +
  2878. +# Whether we need hard or soft links.
  2879. +LN_S=$lt_LN_S
  2880. +
  2881. +# A BSD-compatible nm program.
  2882. +NM=$lt_NM
  2883. +
  2884. +# A symbol stripping program
  2885. +STRIP=$STRIP
  2886. +
  2887. +# Used to examine libraries when file_magic_cmd begins "file"
  2888. +MAGIC_CMD=$MAGIC_CMD
  2889. +
  2890. +# Used on cygwin: DLL creation program.
  2891. +DLLTOOL="$DLLTOOL"
  2892. +
  2893. +# Used on cygwin: object dumper.
  2894. +OBJDUMP="$OBJDUMP"
  2895. +
  2896. +# Used on cygwin: assembler.
  2897. +AS="$AS"
  2898. +
  2899. +# The name of the directory that contains temporary libtool files.
  2900. +objdir=$objdir
  2901. +
  2902. +# How to create reloadable object files.
  2903. +reload_flag=$lt_reload_flag
  2904. +reload_cmds=$lt_reload_cmds
  2905. +
  2906. +# How to pass a linker flag through the compiler.
  2907. +wl=$lt_wl
  2908. +
  2909. +# Object file suffix (normally "o").
  2910. +objext="$ac_objext"
  2911. +
  2912. +# Old archive suffix (normally "a").
  2913. +libext="$libext"
  2914. +
  2915. +# Executable file suffix (normally "").
  2916. +exeext="$exeext"
  2917. +
  2918. +# Additional compiler flags for building library objects.
  2919. +pic_flag=$lt_pic_flag
  2920. +pic_mode=$pic_mode
  2921. +
  2922. +# Does compiler simultaneously support -c and -o options?
  2923. +compiler_c_o=$lt_compiler_c_o
  2924. +
  2925. +# Can we write directly to a .lo ?
  2926. +compiler_o_lo=$lt_compiler_o_lo
  2927. +
  2928. +# Must we lock files when doing compilation ?
  2929. +need_locks=$lt_need_locks
  2930. +
  2931. +# Do we need the lib prefix for modules?
  2932. +need_lib_prefix=$need_lib_prefix
  2933. +
  2934. +# Do we need a version for libraries?
  2935. +need_version=$need_version
  2936. +
  2937. +# Whether dlopen is supported.
  2938. +dlopen_support=$enable_dlopen
  2939. +
  2940. +# Whether dlopen of programs is supported.
  2941. +dlopen_self=$enable_dlopen_self
  2942. +
  2943. +# Whether dlopen of statically linked programs is supported.
  2944. +dlopen_self_static=$enable_dlopen_self_static
  2945. +
  2946. +# Compiler flag to prevent dynamic linking.
  2947. +link_static_flag=$lt_link_static_flag
  2948. +
  2949. +# Compiler flag to turn off builtin functions.
  2950. +no_builtin_flag=$lt_no_builtin_flag
  2951. +
  2952. +# Compiler flag to allow reflexive dlopens.
  2953. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  2954. +
  2955. +# Compiler flag to generate shared objects directly from archives.
  2956. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  2957. +
  2958. +# Compiler flag to generate thread-safe objects.
  2959. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  2960. +
  2961. +# Library versioning type.
  2962. +version_type=$version_type
  2963. +
  2964. +# Format of library name prefix.
  2965. +libname_spec=$lt_libname_spec
  2966. +
  2967. +# List of archive names. First name is the real one, the rest are links.
  2968. +# The last name is the one that the linker finds with -lNAME.
  2969. +library_names_spec=$lt_library_names_spec
  2970. +
  2971. +# The coded name of the library, if different from the real name.
  2972. +soname_spec=$lt_soname_spec
  2973. +
  2974. +# Commands used to build and install an old-style archive.
  2975. +RANLIB=$lt_RANLIB
  2976. +old_archive_cmds=$lt_old_archive_cmds
  2977. +old_postinstall_cmds=$lt_old_postinstall_cmds
  2978. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  2979. +
  2980. +# Create an old-style archive from a shared archive.
  2981. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  2982. +
  2983. +# Create a temporary old-style archive to link instead of a shared archive.
  2984. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  2985. +
  2986. +# Commands used to build and install a shared archive.
  2987. +archive_cmds=$lt_archive_cmds
  2988. +archive_expsym_cmds=$lt_archive_expsym_cmds
  2989. +postinstall_cmds=$lt_postinstall_cmds
  2990. +postuninstall_cmds=$lt_postuninstall_cmds
  2991. +
  2992. +# Commands to strip libraries.
  2993. +old_striplib=$lt_old_striplib
  2994. +striplib=$lt_striplib
  2995. +
  2996. +# Method to check whether dependent libraries are shared objects.
  2997. +deplibs_check_method=$lt_deplibs_check_method
  2998. +
  2999. +# Command to use when deplibs_check_method == file_magic.
  3000. +file_magic_cmd=$lt_file_magic_cmd
  3001. +
  3002. +# Flag that allows shared libraries with undefined symbols to be built.
  3003. +allow_undefined_flag=$lt_allow_undefined_flag
  3004. +
  3005. +# Flag that forces no undefined symbols.
  3006. +no_undefined_flag=$lt_no_undefined_flag
  3007. +
  3008. +# Commands used to finish a libtool library installation in a directory.
  3009. +finish_cmds=$lt_finish_cmds
  3010. +
  3011. +# Same as above, but a single script fragment to be evaled but not shown.
  3012. +finish_eval=$lt_finish_eval
  3013. +
  3014. +# Take the output of nm and produce a listing of raw symbols and C names.
  3015. +global_symbol_pipe=$lt_global_symbol_pipe
  3016. +
  3017. +# Transform the output of nm in a proper C declaration
  3018. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  3019. +
  3020. +# Transform the output of nm in a C name address pair
  3021. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  3022. +
  3023. +# This is the shared library runtime path variable.
  3024. +runpath_var=$runpath_var
  3025. +
  3026. +# This is the shared library path variable.
  3027. +shlibpath_var=$shlibpath_var
  3028. +
  3029. +# Is shlibpath searched before the hard-coded library search path?
  3030. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  3031. +
  3032. +# How to hardcode a shared library path into an executable.
  3033. +hardcode_action=$hardcode_action
  3034. +
  3035. +# Whether we should hardcode library paths into libraries.
  3036. +hardcode_into_libs=$hardcode_into_libs
  3037. +
  3038. +# Flag to hardcode \$libdir into a binary during linking.
  3039. +# This must work even if \$libdir does not exist.
  3040. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  3041. +
  3042. +# Whether we need a single -rpath flag with a separated argument.
  3043. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  3044. +
  3045. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  3046. +# resulting binary.
  3047. +hardcode_direct=$hardcode_direct
  3048. +
  3049. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  3050. +# resulting binary.
  3051. +hardcode_minus_L=$hardcode_minus_L
  3052. +
  3053. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  3054. +# the resulting binary.
  3055. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  3056. +
  3057. +# Variables whose values should be saved in libtool wrapper scripts and
  3058. +# restored at relink time.
  3059. +variables_saved_for_relink="$variables_saved_for_relink"
  3060. +
  3061. +# Whether libtool must link a program against all its dependency libraries.
  3062. +link_all_deplibs=$link_all_deplibs
  3063. +
  3064. +# Compile-time system search path for libraries
  3065. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  3066. +
  3067. +# Run-time system search path for libraries
  3068. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  3069. +
  3070. +# Fix the shell variable \$srcfile for the compiler.
  3071. +fix_srcfile_path="$fix_srcfile_path"
  3072. +
  3073. +# Set to yes if exported symbols are required.
  3074. +always_export_symbols=$always_export_symbols
  3075. +
  3076. +# The commands to list exported symbols.
  3077. +export_symbols_cmds=$lt_export_symbols_cmds
  3078. +
  3079. +# The commands to extract the exported symbol list from a shared archive.
  3080. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  3081. +
  3082. +# Symbols that should not be listed in the preloaded symbols.
  3083. +exclude_expsyms=$lt_exclude_expsyms
  3084. +
  3085. +# Symbols that must always be exported.
  3086. +include_expsyms=$lt_include_expsyms
  3087. +
  3088. +# ### END LIBTOOL CONFIG
  3089. +
  3090. +__EOF__
  3091. +
  3092. + case $host_os in
  3093. + aix3*)
  3094. + cat <<\EOF >> "${ofile}T"
  3095. +
  3096. +# AIX sometimes has problems with the GCC collect2 program. For some
  3097. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  3098. +# vanish in a puff of smoke.
  3099. +if test "X${COLLECT_NAMES+set}" != Xset; then
  3100. + COLLECT_NAMES=
  3101. + export COLLECT_NAMES
  3102. +fi
  3103. +EOF
  3104. + ;;
  3105. + esac
  3106. +
  3107. + case $host_os in
  3108. + cygwin* | mingw* | pw32* | os2*)
  3109. + cat <<'EOF' >> "${ofile}T"
  3110. + # This is a source program that is used to create dlls on Windows
  3111. + # Don't remove nor modify the starting and closing comments
  3112. +# /* ltdll.c starts here */
  3113. +# #define WIN32_LEAN_AND_MEAN
  3114. +# #include <windows.h>
  3115. +# #undef WIN32_LEAN_AND_MEAN
  3116. +# #include <stdio.h>
  3117. +#
  3118. +# #ifndef __CYGWIN__
  3119. +# # ifdef __CYGWIN32__
  3120. +# # define __CYGWIN__ __CYGWIN32__
  3121. +# # endif
  3122. +# #endif
  3123. +#
  3124. +# #ifdef __cplusplus
  3125. +# extern "C" {
  3126. +# #endif
  3127. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  3128. +# #ifdef __cplusplus
  3129. +# }
  3130. +# #endif
  3131. +#
  3132. +# #ifdef __CYGWIN__
  3133. +# #include <cygwin/cygwin_dll.h>
  3134. +# DECLARE_CYGWIN_DLL( DllMain );
  3135. +# #endif
  3136. +# HINSTANCE __hDllInstance_base;
  3137. +#
  3138. +# BOOL APIENTRY
  3139. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  3140. +# {
  3141. +# __hDllInstance_base = hInst;
  3142. +# return TRUE;
  3143. +# }
  3144. +# /* ltdll.c ends here */
  3145. + # This is a source program that is used to create import libraries
  3146. + # on Windows for dlls which lack them. Don't remove nor modify the
  3147. + # starting and closing comments
  3148. +# /* impgen.c starts here */
  3149. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  3150. +#
  3151. +# This file is part of GNU libtool.
  3152. +#
  3153. +# This program is free software; you can redistribute it and/or modify
  3154. +# it under the terms of the GNU General Public License as published by
  3155. +# the Free Software Foundation; either version 2 of the License, or
  3156. +# (at your option) any later version.
  3157. +#
  3158. +# This program is distributed in the hope that it will be useful,
  3159. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  3160. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  3161. +# GNU General Public License for more details.
  3162. +#
  3163. +# You should have received a copy of the GNU General Public License
  3164. +# along with this program; if not, write to the Free Software
  3165. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  3166. +# */
  3167. +#
  3168. +# #include <stdio.h> /* for printf() */
  3169. +# #include <unistd.h> /* for open(), lseek(), read() */
  3170. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  3171. +# #include <string.h> /* for strdup() */
  3172. +#
  3173. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  3174. +# #ifndef O_BINARY
  3175. +# #define O_BINARY 0
  3176. +# #endif
  3177. +#
  3178. +# static unsigned int
  3179. +# pe_get16 (fd, offset)
  3180. +# int fd;
  3181. +# int offset;
  3182. +# {
  3183. +# unsigned char b[2];
  3184. +# lseek (fd, offset, SEEK_SET);
  3185. +# read (fd, b, 2);
  3186. +# return b[0] + (b[1]<<8);
  3187. +# }
  3188. +#
  3189. +# static unsigned int
  3190. +# pe_get32 (fd, offset)
  3191. +# int fd;
  3192. +# int offset;
  3193. +# {
  3194. +# unsigned char b[4];
  3195. +# lseek (fd, offset, SEEK_SET);
  3196. +# read (fd, b, 4);
  3197. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  3198. +# }
  3199. +#
  3200. +# static unsigned int
  3201. +# pe_as32 (ptr)
  3202. +# void *ptr;
  3203. +# {
  3204. +# unsigned char *b = ptr;
  3205. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  3206. +# }
  3207. +#
  3208. +# int
  3209. +# main (argc, argv)
  3210. +# int argc;
  3211. +# char *argv[];
  3212. +# {
  3213. +# int dll;
  3214. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  3215. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  3216. +# unsigned long name_rvas, nexp;
  3217. +# unsigned char *expdata, *erva;
  3218. +# char *filename, *dll_name;
  3219. +#
  3220. +# filename = argv[1];
  3221. +#
  3222. +# dll = open(filename, O_RDONLY|O_BINARY);
  3223. +# if (dll < 1)
  3224. +# return 1;
  3225. +#
  3226. +# dll_name = filename;
  3227. +#
  3228. +# for (i=0; filename[i]; i++)
  3229. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  3230. +# dll_name = filename + i +1;
  3231. +#
  3232. +# pe_header_offset = pe_get32 (dll, 0x3c);
  3233. +# opthdr_ofs = pe_header_offset + 4 + 20;
  3234. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  3235. +#
  3236. +# if (num_entries < 1) /* no exports */
  3237. +# return 1;
  3238. +#
  3239. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  3240. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  3241. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  3242. +# secptr = (pe_header_offset + 4 + 20 +
  3243. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  3244. +#
  3245. +# expptr = 0;
  3246. +# for (i = 0; i < nsections; i++)
  3247. +# {
  3248. +# char sname[8];
  3249. +# unsigned long secptr1 = secptr + 40 * i;
  3250. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  3251. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  3252. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  3253. +# lseek(dll, secptr1, SEEK_SET);
  3254. +# read(dll, sname, 8);
  3255. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  3256. +# {
  3257. +# expptr = fptr + (export_rva - vaddr);
  3258. +# if (export_rva + export_size > vaddr + vsize)
  3259. +# export_size = vsize - (export_rva - vaddr);
  3260. +# break;
  3261. +# }
  3262. +# }
  3263. +#
  3264. +# expdata = (unsigned char*)malloc(export_size);
  3265. +# lseek (dll, expptr, SEEK_SET);
  3266. +# read (dll, expdata, export_size);
  3267. +# erva = expdata - export_rva;
  3268. +#
  3269. +# nexp = pe_as32 (expdata+24);
  3270. +# name_rvas = pe_as32 (expdata+32);
  3271. +#
  3272. +# printf ("EXPORTS\n");
  3273. +# for (i = 0; i<nexp; i++)
  3274. +# {
  3275. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  3276. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  3277. +# }
  3278. +#
  3279. +# return 0;
  3280. +# }
  3281. +# /* impgen.c ends here */
  3282. -# Some flags need to be propagated to the compiler or linker for good
  3283. -# libtool support.
  3284. -case "$lt_target" in
  3285. -*-*-irix6*)
  3286. - # Find out which ABI we are using.
  3287. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  3288. - if AC_TRY_EVAL(ac_compile); then
  3289. - case "`/usr/bin/file conftest.o`" in
  3290. - *32-bit*)
  3291. - LD="${LD-ld} -32"
  3292. - ;;
  3293. - *N32*)
  3294. - LD="${LD-ld} -n32"
  3295. - ;;
  3296. - *64-bit*)
  3297. - LD="${LD-ld} -64"
  3298. - ;;
  3299. - esac
  3300. - fi
  3301. - rm -rf conftest*
  3302. - ;;
  3303. +EOF
  3304. + ;;
  3305. + esac
  3306. -*-*-sco3.2v5*)
  3307. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3308. - SAVE_CFLAGS="$CFLAGS"
  3309. - CFLAGS="$CFLAGS -belf"
  3310. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  3311. - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  3312. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3313. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3314. - CFLAGS="$SAVE_CFLAGS"
  3315. - fi
  3316. - ;;
  3317. + # We use sed instead of cat because bash on DJGPP gets confused if
  3318. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  3319. + # text mode, it properly converts lines to CR/LF. This bash problem
  3320. + # is reportedly fixed, but why not run on old versions too?
  3321. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  3322. +
  3323. + mv -f "${ofile}T" "$ofile" || \
  3324. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  3325. + chmod +x "$ofile"
  3326. +fi
  3327. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  3328. -[*-*-cygwin* | *-*-mingw*)
  3329. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  3330. - AC_CHECK_TOOL(AS, as, false)
  3331. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  3332. - ;;
  3333. -])
  3334. -esac
  3335. -])
  3336. +])# _LT_AC_LTCONFIG_HACK
  3337. # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  3338. -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  3339. +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  3340. # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  3341. -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  3342. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  3343. # AC_ENABLE_SHARED - implement the --enable-shared flag
  3344. # Usage: AC_ENABLE_SHARED[(DEFAULT)]
  3345. # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  3346. # `yes'.
  3347. -AC_DEFUN(AC_ENABLE_SHARED, [dnl
  3348. -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3349. +AC_DEFUN([AC_ENABLE_SHARED],
  3350. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3351. AC_ARG_ENABLE(shared,
  3352. changequote(<<, >>)dnl
  3353. << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  3354. changequote([, ])dnl
  3355. [p=${PACKAGE-default}
  3356. -case "$enableval" in
  3357. +case $enableval in
  3358. yes) enable_shared=yes ;;
  3359. no) enable_shared=no ;;
  3360. *)
  3361. @@ -157,21 +3136,22 @@
  3362. ])
  3363. # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  3364. -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3365. +AC_DEFUN([AC_DISABLE_SHARED],
  3366. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3367. AC_ENABLE_SHARED(no)])
  3368. # AC_ENABLE_STATIC - implement the --enable-static flag
  3369. # Usage: AC_ENABLE_STATIC[(DEFAULT)]
  3370. # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  3371. # `yes'.
  3372. -AC_DEFUN(AC_ENABLE_STATIC, [dnl
  3373. -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3374. +AC_DEFUN([AC_ENABLE_STATIC],
  3375. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3376. AC_ARG_ENABLE(static,
  3377. changequote(<<, >>)dnl
  3378. << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  3379. changequote([, ])dnl
  3380. [p=${PACKAGE-default}
  3381. -case "$enableval" in
  3382. +case $enableval in
  3383. yes) enable_static=yes ;;
  3384. no) enable_static=no ;;
  3385. *)
  3386. @@ -190,7 +3170,8 @@
  3387. ])
  3388. # AC_DISABLE_STATIC - set the default static flag to --disable-static
  3389. -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3390. +AC_DEFUN([AC_DISABLE_STATIC],
  3391. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3392. AC_ENABLE_STATIC(no)])
  3393. @@ -198,14 +3179,14 @@
  3394. # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  3395. # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  3396. # `yes'.
  3397. -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
  3398. -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3399. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3400. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3401. AC_ARG_ENABLE(fast-install,
  3402. changequote(<<, >>)dnl
  3403. << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  3404. changequote([, ])dnl
  3405. [p=${PACKAGE-default}
  3406. -case "$enableval" in
  3407. +case $enableval in
  3408. yes) enable_fast_install=yes ;;
  3409. no) enable_fast_install=no ;;
  3410. *)
  3411. @@ -223,29 +3204,120 @@
  3412. enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  3413. ])
  3414. -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  3415. -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3416. +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
  3417. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3418. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3419. AC_ENABLE_FAST_INSTALL(no)])
  3420. +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
  3421. +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
  3422. +# Where MODE is either `yes' or `no'. If omitted, it defaults to
  3423. +# `both'.
  3424. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  3425. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3426. +pic_mode=ifelse($#,1,$1,default)])
  3427. +
  3428. +
  3429. +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
  3430. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3431. +[AC_MSG_CHECKING([for $1])
  3432. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3433. +[case $MAGIC_CMD in
  3434. + /*)
  3435. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3436. + ;;
  3437. + ?:/*)
  3438. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  3439. + ;;
  3440. + *)
  3441. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  3442. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3443. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  3444. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  3445. +dnl not every word. This closes a longstanding sh security hole.
  3446. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  3447. + for ac_dir in $ac_dummy; do
  3448. + test -z "$ac_dir" && ac_dir=.
  3449. + if test -f $ac_dir/$1; then
  3450. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3451. + if test -n "$file_magic_test_file"; then
  3452. + case $deplibs_check_method in
  3453. + "file_magic "*)
  3454. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3455. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3456. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3457. + egrep "$file_magic_regex" > /dev/null; then
  3458. + :
  3459. + else
  3460. + cat <<EOF 1>&2
  3461. +
  3462. +*** Warning: the command libtool uses to detect shared libraries,
  3463. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  3464. +*** The result is that libtool may fail to recognize shared libraries
  3465. +*** as such. This will affect the creation of libtool libraries that
  3466. +*** depend on shared libraries, but programs linked with such libtool
  3467. +*** libraries will work regardless of this problem. Nevertheless, you
  3468. +*** may want to report the problem to your system manager and/or to
  3469. +*** bug-libtool@gnu.org
  3470. +
  3471. +EOF
  3472. + fi ;;
  3473. + esac
  3474. + fi
  3475. + break
  3476. + fi
  3477. + done
  3478. + IFS="$ac_save_ifs"
  3479. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  3480. + ;;
  3481. +esac])
  3482. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3483. +if test -n "$MAGIC_CMD"; then
  3484. + AC_MSG_RESULT($MAGIC_CMD)
  3485. +else
  3486. + AC_MSG_RESULT(no)
  3487. +fi
  3488. +])
  3489. +
  3490. +
  3491. +# AC_PATH_MAGIC - find a file program which can recognise a shared library
  3492. +AC_DEFUN([AC_PATH_MAGIC],
  3493. +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
  3494. +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
  3495. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  3496. + if test -n "$ac_tool_prefix"; then
  3497. + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
  3498. + else
  3499. + MAGIC_CMD=:
  3500. + fi
  3501. +fi
  3502. +])
  3503. +
  3504. +
  3505. # AC_PROG_LD - find the path to the GNU or non-GNU linker
  3506. -AC_DEFUN(AC_PROG_LD,
  3507. +AC_DEFUN([AC_PROG_LD],
  3508. [AC_ARG_WITH(gnu-ld,
  3509. [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  3510. test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  3511. AC_REQUIRE([AC_PROG_CC])dnl
  3512. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3513. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3514. +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  3515. ac_prog=ld
  3516. -if test "$ac_cv_prog_gcc" = yes; then
  3517. +if test "$GCC" = yes; then
  3518. # Check if gcc -print-prog-name=ld gives a path.
  3519. AC_MSG_CHECKING([for ld used by GCC])
  3520. - ac_prog=`($CC -print-prog-name=ld) 2>&5`
  3521. - case "$ac_prog" in
  3522. + case $host in
  3523. + *-*-mingw*)
  3524. + # gcc leaves a trailing carriage return which upsets mingw
  3525. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3526. + *)
  3527. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3528. + esac
  3529. + case $ac_prog in
  3530. # Accept absolute paths.
  3531. -changequote(,)dnl
  3532. - [\\/]* | [A-Za-z]:[\\/]*)
  3533. - re_direlt='/[^/][^/]*/\.\./'
  3534. -changequote([,])dnl
  3535. + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  3536. + re_direlt='/[[^/]][[^/]]*/\.\./'
  3537. # Canonicalize the path of ld
  3538. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3539. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3540. @@ -267,17 +3339,17 @@
  3541. else
  3542. AC_MSG_CHECKING([for non-GNU ld])
  3543. fi
  3544. -AC_CACHE_VAL(ac_cv_path_LD,
  3545. +AC_CACHE_VAL(lt_cv_path_LD,
  3546. [if test -z "$LD"; then
  3547. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3548. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3549. for ac_dir in $PATH; do
  3550. test -z "$ac_dir" && ac_dir=.
  3551. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3552. - ac_cv_path_LD="$ac_dir/$ac_prog"
  3553. + lt_cv_path_LD="$ac_dir/$ac_prog"
  3554. # Check to see if the program is GNU ld. I'd rather use --version,
  3555. # but apparently some GNU ld's only accept -v.
  3556. # Break only if it was the GNU/non-GNU ld that we prefer.
  3557. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  3558. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  3559. test "$with_gnu_ld" != no && break
  3560. else
  3561. test "$with_gnu_ld" != yes && break
  3562. @@ -286,9 +3358,9 @@
  3563. done
  3564. IFS="$ac_save_ifs"
  3565. else
  3566. - ac_cv_path_LD="$LD" # Let the user override the test with a path.
  3567. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3568. fi])
  3569. -LD="$ac_cv_path_LD"
  3570. +LD="$lt_cv_path_LD"
  3571. if test -n "$LD"; then
  3572. AC_MSG_RESULT($LD)
  3573. else
  3574. @@ -298,56 +3370,255 @@
  3575. AC_PROG_LD_GNU
  3576. ])
  3577. -AC_DEFUN(AC_PROG_LD_GNU,
  3578. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  3579. +# AC_PROG_LD_GNU -
  3580. +AC_DEFUN([AC_PROG_LD_GNU],
  3581. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3582. [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3583. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  3584. - ac_cv_prog_gnu_ld=yes
  3585. + lt_cv_prog_gnu_ld=yes
  3586. else
  3587. - ac_cv_prog_gnu_ld=no
  3588. + lt_cv_prog_gnu_ld=no
  3589. fi])
  3590. +with_gnu_ld=$lt_cv_prog_gnu_ld
  3591. +])
  3592. +
  3593. +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
  3594. +# -- PORTME Some linkers may need a different reload flag.
  3595. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3596. +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
  3597. +[lt_cv_ld_reload_flag='-r'])
  3598. +reload_flag=$lt_cv_ld_reload_flag
  3599. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  3600. +])
  3601. +
  3602. +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  3603. +# -- PORTME fill in with the dynamic library characteristics
  3604. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3605. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  3606. +lt_cv_deplibs_check_method,
  3607. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3608. +lt_cv_file_magic_test_file=
  3609. +lt_cv_deplibs_check_method='unknown'
  3610. +# Need to set the preceding variable on all platforms that support
  3611. +# interlibrary dependencies.
  3612. +# 'none' -- dependencies not supported.
  3613. +# `unknown' -- same as none, but documents that we really don't know.
  3614. +# 'pass_all' -- all dependencies passed with no checks.
  3615. +# 'test_compile' -- check by making test program.
  3616. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3617. +# which responds to the $file_magic_cmd with a given egrep regex.
  3618. +# If you have `file' or equivalent on your system and you're not sure
  3619. +# whether `pass_all' will *always* work, you probably want this one.
  3620. +
  3621. +case $host_os in
  3622. +aix4* | aix5*)
  3623. + lt_cv_deplibs_check_method=pass_all
  3624. + ;;
  3625. +
  3626. +beos*)
  3627. + lt_cv_deplibs_check_method=pass_all
  3628. + ;;
  3629. +
  3630. +bsdi4*)
  3631. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3632. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3633. + lt_cv_file_magic_test_file=/shlib/libc.so
  3634. + ;;
  3635. +
  3636. +cygwin* | mingw* | pw32*)
  3637. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3638. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3639. + ;;
  3640. +
  3641. +darwin* | rhapsody*)
  3642. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  3643. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3644. + case "$host_os" in
  3645. + rhapsody* | darwin1.[[012]])
  3646. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  3647. + ;;
  3648. + *) # Darwin 1.3 on
  3649. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  3650. + ;;
  3651. + esac
  3652. + ;;
  3653. +
  3654. +freebsd*)
  3655. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3656. + case $host_cpu in
  3657. + i*86 )
  3658. + # Not sure whether the presence of OpenBSD here was a mistake.
  3659. + # Let's accept both of them until this is cleared up.
  3660. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3661. + lt_cv_file_magic_cmd=/usr/bin/file
  3662. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3663. + ;;
  3664. + esac
  3665. + else
  3666. + lt_cv_deplibs_check_method=pass_all
  3667. + fi
  3668. + ;;
  3669. +
  3670. +gnu*)
  3671. + lt_cv_deplibs_check_method=pass_all
  3672. + ;;
  3673. +
  3674. +hpux10.20*|hpux11*)
  3675. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3676. + lt_cv_file_magic_cmd=/usr/bin/file
  3677. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3678. + ;;
  3679. +
  3680. +irix5* | irix6* | nonstopux*)
  3681. + case $host_os in
  3682. + irix5* | nonstopux*)
  3683. + # this will be overridden with pass_all, but let us keep it just in case
  3684. + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  3685. + ;;
  3686. + *)
  3687. + case $LD in
  3688. + *-32|*"-32 ") libmagic=32-bit;;
  3689. + *-n32|*"-n32 ") libmagic=N32;;
  3690. + *-64|*"-64 ") libmagic=64-bit;;
  3691. + *) libmagic=never-match;;
  3692. + esac
  3693. + # this will be overridden with pass_all, but let us keep it just in case
  3694. + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  3695. + ;;
  3696. + esac
  3697. + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  3698. + lt_cv_deplibs_check_method=pass_all
  3699. + ;;
  3700. +
  3701. +# This must be Linux ELF.
  3702. +linux-gnu*)
  3703. + case $host_cpu in
  3704. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
  3705. + lt_cv_deplibs_check_method=pass_all ;;
  3706. + *)
  3707. + # glibc up to 2.1.1 does not perform some relocations on ARM
  3708. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  3709. + esac
  3710. + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  3711. + ;;
  3712. +
  3713. +netbsd*)
  3714. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3715. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  3716. + else
  3717. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  3718. + fi
  3719. + ;;
  3720. +
  3721. +newos6*)
  3722. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3723. + lt_cv_file_magic_cmd=/usr/bin/file
  3724. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3725. + ;;
  3726. +
  3727. +openbsd*)
  3728. + lt_cv_file_magic_cmd=/usr/bin/file
  3729. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3730. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3731. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3732. + else
  3733. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3734. + fi
  3735. + ;;
  3736. +
  3737. +osf3* | osf4* | osf5*)
  3738. + # this will be overridden with pass_all, but let us keep it just in case
  3739. + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  3740. + lt_cv_file_magic_test_file=/shlib/libc.so
  3741. + lt_cv_deplibs_check_method=pass_all
  3742. + ;;
  3743. +
  3744. +sco3.2v5*)
  3745. + lt_cv_deplibs_check_method=pass_all
  3746. + ;;
  3747. +
  3748. +solaris*)
  3749. + lt_cv_deplibs_check_method=pass_all
  3750. + lt_cv_file_magic_test_file=/lib/libc.so
  3751. + ;;
  3752. +
  3753. +sysv5uw[[78]]* | sysv4*uw2*)
  3754. + lt_cv_deplibs_check_method=pass_all
  3755. + ;;
  3756. +
  3757. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3758. + case $host_vendor in
  3759. + motorola)
  3760. + 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]]'
  3761. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3762. + ;;
  3763. + ncr)
  3764. + lt_cv_deplibs_check_method=pass_all
  3765. + ;;
  3766. + sequent)
  3767. + lt_cv_file_magic_cmd='/bin/file'
  3768. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3769. + ;;
  3770. + sni)
  3771. + lt_cv_file_magic_cmd='/bin/file'
  3772. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3773. + lt_cv_file_magic_test_file=/lib/libc.so
  3774. + ;;
  3775. + siemens)
  3776. + lt_cv_deplibs_check_method=pass_all
  3777. + ;;
  3778. + esac
  3779. + ;;
  3780. +esac
  3781. ])
  3782. +file_magic_cmd=$lt_cv_file_magic_cmd
  3783. +deplibs_check_method=$lt_cv_deplibs_check_method
  3784. +])
  3785. +
  3786. # AC_PROG_NM - find the path to a BSD-compatible name lister
  3787. -AC_DEFUN(AC_PROG_NM,
  3788. -[AC_MSG_CHECKING([for BSD-compatible nm])
  3789. -AC_CACHE_VAL(ac_cv_path_NM,
  3790. +AC_DEFUN([AC_PROG_NM],
  3791. +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  3792. +AC_MSG_CHECKING([for BSD-compatible nm])
  3793. +AC_CACHE_VAL(lt_cv_path_NM,
  3794. [if test -n "$NM"; then
  3795. # Let the user override the test.
  3796. - ac_cv_path_NM="$NM"
  3797. + lt_cv_path_NM="$NM"
  3798. else
  3799. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  3800. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3801. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3802. test -z "$ac_dir" && ac_dir=.
  3803. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  3804. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  3805. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  3806. # Check to see if the nm accepts a BSD-compat flag.
  3807. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3808. # nm: unknown option "B" ignored
  3809. - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3810. - ac_cv_path_NM="$ac_dir/nm -B"
  3811. + # Tru64's nm complains that /dev/null is an invalid object file
  3812. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  3813. + lt_cv_path_NM="$tmp_nm -B"
  3814. break
  3815. - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3816. - ac_cv_path_NM="$ac_dir/nm -p"
  3817. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  3818. + lt_cv_path_NM="$tmp_nm -p"
  3819. break
  3820. else
  3821. - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  3822. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3823. continue # so that we can try to find one that supports BSD flags
  3824. fi
  3825. fi
  3826. done
  3827. IFS="$ac_save_ifs"
  3828. - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  3829. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3830. fi])
  3831. -NM="$ac_cv_path_NM"
  3832. +NM="$lt_cv_path_NM"
  3833. AC_MSG_RESULT([$NM])
  3834. ])
  3835. # AC_CHECK_LIBM - check for math library
  3836. -AC_DEFUN(AC_CHECK_LIBM,
  3837. +AC_DEFUN([AC_CHECK_LIBM],
  3838. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3839. LIBM=
  3840. -case "$lt_target" in
  3841. -*-*-beos* | *-*-cygwin*)
  3842. +case $host in
  3843. +*-*-beos* | *-*-cygwin* | *-*-pw32*)
  3844. # These system don't have libm
  3845. ;;
  3846. *-ncr-sysv4.3*)
  3847. @@ -361,33 +3632,41 @@
  3848. ])
  3849. # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  3850. -# the libltdl convenience library, adds --enable-ltdl-convenience to
  3851. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  3852. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  3853. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  3854. -# '${top_builddir}/' (note the single quotes!) if your package is not
  3855. -# flat, and, if you're not using automake, define top_builddir as
  3856. -# appropriate in the Makefiles.
  3857. -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3858. - case "$enable_ltdl_convenience" in
  3859. +# the libltdl convenience library and LTDLINCL to the include flags for
  3860. +# the libltdl header and adds --enable-ltdl-convenience to the
  3861. +# configure arguments. Note that LIBLTDL and LTDLINCL are not
  3862. +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  3863. +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  3864. +# with '${top_builddir}/' and LTDLINCL will be prefixed with
  3865. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  3866. +# flat and you're not using automake, define top_builddir and
  3867. +# top_srcdir appropriately in the Makefiles.
  3868. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3869. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3870. + case $enable_ltdl_convenience in
  3871. no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3872. "") enable_ltdl_convenience=yes
  3873. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3874. esac
  3875. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  3876. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  3877. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3878. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3879. + # For backwards non-gettext consistent compatibility...
  3880. + INCLTDL="$LTDLINCL"
  3881. ])
  3882. # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  3883. -# the libltdl installable library, and adds --enable-ltdl-install to
  3884. -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
  3885. -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
  3886. -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
  3887. -# '${top_builddir}/' (note the single quotes!) if your package is not
  3888. -# flat, and, if you're not using automake, define top_builddir as
  3889. -# appropriate in the Makefiles.
  3890. +# the libltdl installable library and LTDLINCL to the include flags for
  3891. +# the libltdl header and adds --enable-ltdl-install to the configure
  3892. +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  3893. +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  3894. +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  3895. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  3896. +# with '${top_srcdir}/' (note the single quotes!). If your package is
  3897. +# not flat and you're not using automake, define top_builddir and
  3898. +# top_srcdir appropriately in the Makefiles.
  3899. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3900. -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3901. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3902. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3903. AC_CHECK_LIB(ltdl, main,
  3904. [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3905. [if test x"$enable_ltdl_install" = xno; then
  3906. @@ -398,148 +3677,124 @@
  3907. ])
  3908. if test x"$enable_ltdl_install" = x"yes"; then
  3909. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3910. - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
  3911. - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  3912. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3913. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3914. else
  3915. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3916. LIBLTDL="-lltdl"
  3917. - INCLTDL=
  3918. + LTDLINCL=
  3919. fi
  3920. + # For backwards non-gettext consistent compatibility...
  3921. + INCLTDL="$LTDLINCL"
  3922. ])
  3923. -dnl old names
  3924. -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
  3925. -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
  3926. -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
  3927. -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
  3928. -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
  3929. -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
  3930. -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
  3931. -
  3932. -dnl This is just to silence aclocal about the macro not being used
  3933. -ifelse([AC_DISABLE_FAST_INSTALL])dnl
  3934. -
  3935. -# Do all the work for Automake. This macro actually does too much --
  3936. -# some checks are only needed if your package does certain things.
  3937. -# But this isn't really a big deal.
  3938. -
  3939. -# serial 1
  3940. -
  3941. -dnl Usage:
  3942. -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  3943. -
  3944. -AC_DEFUN(AM_INIT_AUTOMAKE,
  3945. -[AC_REQUIRE([AC_PROG_INSTALL])
  3946. -PACKAGE=[$1]
  3947. -AC_SUBST(PACKAGE)
  3948. -VERSION=[$2]
  3949. -AC_SUBST(VERSION)
  3950. -dnl test to see if srcdir already configured
  3951. -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  3952. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  3953. -fi
  3954. -ifelse([$3],,
  3955. -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  3956. -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  3957. -AC_REQUIRE([AM_SANITY_CHECK])
  3958. -AC_REQUIRE([AC_ARG_PROGRAM])
  3959. -dnl FIXME This is truly gross.
  3960. -missing_dir=`cd $ac_aux_dir && pwd`
  3961. -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  3962. -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  3963. -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  3964. -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  3965. -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  3966. -AC_REQUIRE([AC_PROG_MAKE_SET])])
  3967. -
  3968. -#
  3969. -# Check to make sure that the build environment is sane.
  3970. -#
  3971. -
  3972. -AC_DEFUN(AM_SANITY_CHECK,
  3973. -[AC_MSG_CHECKING([whether build environment is sane])
  3974. -# Just in case
  3975. -sleep 1
  3976. -echo timestamp > conftestfile
  3977. -# Do `set' in a subshell so we don't clobber the current shell's
  3978. -# arguments. Must try -L first in case configure is actually a
  3979. -# symlink; some systems play weird games with the mod time of symlinks
  3980. -# (eg FreeBSD returns the mod time of the symlink's containing
  3981. -# directory).
  3982. -if (
  3983. - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  3984. - if test "[$]*" = "X"; then
  3985. - # -L didn't work.
  3986. - set X `ls -t $srcdir/configure conftestfile`
  3987. - fi
  3988. - if test "[$]*" != "X $srcdir/configure conftestfile" \
  3989. - && test "[$]*" != "X conftestfile $srcdir/configure"; then
  3990. -
  3991. - # If neither matched, then we have a broken ls. This can happen
  3992. - # if, for instance, CONFIG_SHELL is bash and it inherits a
  3993. - # broken ls alias from the environment. This has actually
  3994. - # happened. Such a system could not be considered "sane".
  3995. - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  3996. -alias in your environment])
  3997. - fi
  3998. +# old names
  3999. +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  4000. +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  4001. +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  4002. +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  4003. +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  4004. +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  4005. +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  4006. +
  4007. +# This is just to silence aclocal about the macro not being used
  4008. +ifelse([AC_DISABLE_FAST_INSTALL])
  4009. +
  4010. +# NOTE: This macro has been submitted for inclusion into #
  4011. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  4012. +# a released version of Autoconf we should remove this #
  4013. +# macro and use it instead. #
  4014. +# LT_AC_PROG_SED
  4015. +# --------------
  4016. +# Check for a fully-functional sed program, that truncates
  4017. +# as few characters as possible. Prefer GNU sed if found.
  4018. +AC_DEFUN([LT_AC_PROG_SED],
  4019. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  4020. +AC_CACHE_VAL(lt_cv_path_SED,
  4021. +[# Loop through the user's path and test for sed and gsed.
  4022. +# Then use that list of sed's as ones to test for truncation.
  4023. +as_executable_p="test -f"
  4024. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. +for as_dir in $PATH
  4026. +do
  4027. + IFS=$as_save_IFS
  4028. + test -z "$as_dir" && as_dir=.
  4029. + for ac_prog in sed gsed; do
  4030. + for ac_exec_ext in '' $ac_executable_extensions; do
  4031. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4032. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  4033. + fi
  4034. + done
  4035. + done
  4036. +done
  4037. - test "[$]2" = conftestfile
  4038. - )
  4039. -then
  4040. - # Ok.
  4041. - :
  4042. -else
  4043. - AC_MSG_ERROR([newly created file is older than distributed files!
  4044. -Check your system clock])
  4045. -fi
  4046. -rm -f conftest*
  4047. -AC_MSG_RESULT(yes)])
  4048. + # Create a temporary directory, and hook for its removal unless debugging.
  4049. +$debug ||
  4050. +{
  4051. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4052. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  4053. +}
  4054. -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  4055. -dnl The program must properly implement --version.
  4056. -AC_DEFUN(AM_MISSING_PROG,
  4057. -[AC_MSG_CHECKING(for working $2)
  4058. -# Run test in a subshell; some versions of sh will print an error if
  4059. -# an executable is not found, even if stderr is redirected.
  4060. -# Redirect stdin to placate older versions of autoconf. Sigh.
  4061. -if ($2 --version) < /dev/null > /dev/null 2>&1; then
  4062. - $1=$2
  4063. - AC_MSG_RESULT(found)
  4064. +# Create a (secure) tmp directory for tmp files.
  4065. +: ${TMPDIR=/tmp}
  4066. +{
  4067. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  4068. + test -n "$tmp" && test -d "$tmp"
  4069. +} ||
  4070. +{
  4071. + tmp=$TMPDIR/sed$$-$RANDOM
  4072. + (umask 077 && mkdir $tmp)
  4073. +} ||
  4074. +{
  4075. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  4076. + { (exit 1); exit 1; }
  4077. +}
  4078. + _max=0
  4079. + _count=0
  4080. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4081. + # along with /bin/sed that truncates output.
  4082. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  4083. + test ! -f ${_sed} && break
  4084. + cat /dev/null > "$tmp/sed.in"
  4085. + _count=0
  4086. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  4087. + # Check for GNU sed and select it if it is found.
  4088. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  4089. + lt_cv_path_SED=${_sed}
  4090. + break
  4091. + fi
  4092. + while true; do
  4093. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  4094. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  4095. + cp "$tmp/sed.in" "$tmp/sed.nl"
  4096. + echo >>"$tmp/sed.nl"
  4097. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  4098. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  4099. + # 40000 chars as input seems more than enough
  4100. + test $_count -gt 10 && break
  4101. + _count=`expr $_count + 1`
  4102. + if test $_count -gt $_max; then
  4103. + _max=$_count
  4104. + lt_cv_path_SED=$_sed
  4105. + fi
  4106. + done
  4107. + done
  4108. + rm -rf "$tmp"
  4109. +])
  4110. +if test "X$SED" != "X"; then
  4111. + lt_cv_path_SED=$SED
  4112. else
  4113. - $1="$3/missing $2"
  4114. - AC_MSG_RESULT(missing)
  4115. + SED=$lt_cv_path_SED
  4116. fi
  4117. -AC_SUBST($1)])
  4118. -
  4119. -# Like AC_CONFIG_HEADER, but automatically create stamp file.
  4120. -
  4121. -AC_DEFUN(AM_CONFIG_HEADER,
  4122. -[AC_PREREQ([2.12])
  4123. -AC_CONFIG_HEADER([$1])
  4124. -dnl When config.status generates a header, we must update the stamp-h file.
  4125. -dnl This file resides in the same directory as the config header
  4126. -dnl that is generated. We must strip everything past the first ":",
  4127. -dnl and everything past the last "/".
  4128. -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  4129. -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  4130. -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  4131. -<<am_indx=1
  4132. -for am_file in <<$1>>; do
  4133. - case " <<$>>CONFIG_HEADERS " in
  4134. - *" <<$>>am_file "*<<)>>
  4135. - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  4136. - ;;
  4137. - esac
  4138. - am_indx=`expr "<<$>>am_indx" + 1`
  4139. -done<<>>dnl>>)
  4140. -changequote([,]))])
  4141. +AC_MSG_RESULT([$SED])
  4142. +])
  4143. # Add --enable-maintainer-mode option to configure.
  4144. # From Jim Meyering
  4145. # serial 1
  4146. -AC_DEFUN(AM_MAINTAINER_MODE,
  4147. +AC_DEFUN([AM_MAINTAINER_MODE],
  4148. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  4149. dnl maintainer-mode is disabled by default
  4150. AC_ARG_ENABLE(maintainer-mode,
  4151. @@ -556,7 +3811,7 @@
  4152. # Define a conditional.
  4153. -AC_DEFUN(AM_CONDITIONAL,
  4154. +AC_DEFUN([AM_CONDITIONAL],
  4155. [AC_SUBST($1_TRUE)
  4156. AC_SUBST($1_FALSE)
  4157. if $2; then
  4158. @@ -585,7 +3840,7 @@
  4159. # program @code{ansi2knr}, which comes with Ghostscript.
  4160. # @end defmac
  4161. -AC_DEFUN(AM_PROG_CC_STDC,
  4162. +AC_DEFUN([AM_PROG_CC_STDC],
  4163. [AC_REQUIRE([AC_PROG_CC])
  4164. AC_BEFORE([$0], [AC_C_INLINE])
  4165. AC_BEFORE([$0], [AC_C_CONST])
  4166. --- glib1.2-1.2.10.orig/config.guess
  4167. +++ glib1.2-1.2.10/config.guess
  4168. @@ -1,8 +1,10 @@
  4169. #! /bin/sh
  4170. # Attempt to guess a canonical system name.
  4171. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
  4172. -# Free Software Foundation, Inc.
  4173. -#
  4174. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  4175. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  4176. +
  4177. +timestamp='2003-05-09'
  4178. +
  4179. # This file is free software; you can redistribute it and/or modify it
  4180. # under the terms of the GNU General Public License as published by
  4181. # the Free Software Foundation; either version 2 of the License, or
  4182. @@ -22,99 +24,262 @@
  4183. # configuration script generated by Autoconf, you may include it under
  4184. # the same distribution terms that you use for the rest of that program.
  4185. -# Written by Per Bothner <bothner@cygnus.com>.
  4186. -# The master version of this file is at the FSF in /home/gd/gnu/lib.
  4187. -# Please send patches to <autoconf-patches@gnu.org>.
  4188. +# Originally written by Per Bothner <per@bothner.com>.
  4189. +# Please send patches to <config-patches@gnu.org>. Submit a context
  4190. +# diff and a properly formatted ChangeLog entry.
  4191. #
  4192. # This script attempts to guess a canonical system name similar to
  4193. # config.sub. If it succeeds, it prints the system name on stdout, and
  4194. # exits with 0. Otherwise, it exits with 1.
  4195. #
  4196. # The plan is that this can be called by configure scripts if you
  4197. -# don't specify an explicit system type (host/target name).
  4198. -#
  4199. -# Only a few systems have been added to this list; please add others
  4200. -# (but try to keep the structure clean).
  4201. -#
  4202. +# don't specify an explicit build system type.
  4203. -# Use $HOST_CC if defined. $CC may point to a cross-compiler
  4204. -if test x"$CC_FOR_BUILD" = x; then
  4205. - if test x"$HOST_CC" != x; then
  4206. - CC_FOR_BUILD="$HOST_CC"
  4207. - else
  4208. - if test x"$CC" != x; then
  4209. - CC_FOR_BUILD="$CC"
  4210. - else
  4211. - CC_FOR_BUILD=cc
  4212. - fi
  4213. - fi
  4214. +me=`echo "$0" | sed -e 's,.*/,,'`
  4215. +
  4216. +usage="\
  4217. +Usage: $0 [OPTION]
  4218. +
  4219. +Output the configuration name of the system \`$me' is run on.
  4220. +
  4221. +Operation modes:
  4222. + -h, --help print this help, then exit
  4223. + -t, --time-stamp print date of last modification, then exit
  4224. + -v, --version print version number, then exit
  4225. +
  4226. +Report bugs and patches to <config-patches@gnu.org>."
  4227. +
  4228. +version="\
  4229. +GNU config.guess ($timestamp)
  4230. +
  4231. +Originally written by Per Bothner.
  4232. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  4233. +Free Software Foundation, Inc.
  4234. +
  4235. +This is free software; see the source for copying conditions. There is NO
  4236. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  4237. +
  4238. +help="
  4239. +Try \`$me --help' for more information."
  4240. +
  4241. +# Parse command line
  4242. +while test $# -gt 0 ; do
  4243. + case $1 in
  4244. + --time-stamp | --time* | -t )
  4245. + echo "$timestamp" ; exit 0 ;;
  4246. + --version | -v )
  4247. + echo "$version" ; exit 0 ;;
  4248. + --help | --h* | -h )
  4249. + echo "$usage"; exit 0 ;;
  4250. + -- ) # Stop option processing
  4251. + shift; break ;;
  4252. + - ) # Use stdin as input.
  4253. + break ;;
  4254. + -* )
  4255. + echo "$me: invalid option $1$help" >&2
  4256. + exit 1 ;;
  4257. + * )
  4258. + break ;;
  4259. + esac
  4260. +done
  4261. +
  4262. +if test $# != 0; then
  4263. + echo "$me: too many arguments$help" >&2
  4264. + exit 1
  4265. fi
  4266. +trap 'exit 1' 1 2 15
  4267. +
  4268. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  4269. +# compiler to aid in system detection is discouraged as it requires
  4270. +# temporary files to be created and, as you can see below, it is a
  4271. +# headache to deal with in a portable fashion.
  4272. +
  4273. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  4274. +# use `HOST_CC' if defined, but it is deprecated.
  4275. +
  4276. +# Portable tmp directory creation inspired by the Autoconf team.
  4277. +
  4278. +set_cc_for_build='
  4279. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  4280. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  4281. +: ${TMPDIR=/tmp} ;
  4282. + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  4283. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  4284. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  4285. +dummy=$tmp/dummy ;
  4286. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  4287. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  4288. + ,,) echo "int x;" > $dummy.c ;
  4289. + for c in cc gcc c89 c99 ; do
  4290. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  4291. + CC_FOR_BUILD="$c"; break ;
  4292. + fi ;
  4293. + done ;
  4294. + if test x"$CC_FOR_BUILD" = x ; then
  4295. + CC_FOR_BUILD=no_compiler_found ;
  4296. + fi
  4297. + ;;
  4298. + ,,*) CC_FOR_BUILD=$CC ;;
  4299. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  4300. +esac ;'
  4301. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  4302. -# (ghazi@noc.rutgers.edu 8/24/94.)
  4303. +# (ghazi@noc.rutgers.edu 1994-08-24)
  4304. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  4305. PATH=$PATH:/.attbin ; export PATH
  4306. fi
  4307. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  4308. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  4309. -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  4310. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  4311. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  4312. -dummy=dummy-$$
  4313. -trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
  4314. -
  4315. # Note: order is significant - the case branches are not exclusive.
  4316. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  4317. + *:NetBSD:*:*)
  4318. + # NetBSD (nbsd) targets should (where applicable) match one or
  4319. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  4320. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  4321. + # switched to ELF, *-*-netbsd* would select the old
  4322. + # object file format. This provides both forward
  4323. + # compatibility and a consistent mechanism for selecting the
  4324. + # object file format.
  4325. + #
  4326. + # Note: NetBSD doesn't particularly care about the vendor
  4327. + # portion of the name. We always set it to "unknown".
  4328. + sysctl="sysctl -n hw.machine_arch"
  4329. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  4330. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  4331. + case "${UNAME_MACHINE_ARCH}" in
  4332. + armeb) machine=armeb-unknown ;;
  4333. + arm*) machine=arm-unknown ;;
  4334. + sh3el) machine=shl-unknown ;;
  4335. + sh3eb) machine=sh-unknown ;;
  4336. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  4337. + esac
  4338. + # The Operating System including object format, if it has switched
  4339. + # to ELF recently, or will in the future.
  4340. + case "${UNAME_MACHINE_ARCH}" in
  4341. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  4342. + eval $set_cc_for_build
  4343. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  4344. + | grep __ELF__ >/dev/null
  4345. + then
  4346. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  4347. + # Return netbsd for either. FIX?
  4348. + os=netbsd
  4349. + else
  4350. + os=netbsdelf
  4351. + fi
  4352. + ;;
  4353. + *)
  4354. + os=netbsd
  4355. + ;;
  4356. + esac
  4357. + # The OS release
  4358. + # Debian GNU/NetBSD machines have a different userland, and
  4359. + # thus, need a distinct triplet. However, they do not need
  4360. + # kernel version information, so it can be replaced with a
  4361. + # suitable tag, in the style of linux-gnu.
  4362. + case "${UNAME_VERSION}" in
  4363. + Debian*)
  4364. + release='-gnu'
  4365. + ;;
  4366. + *)
  4367. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  4368. + ;;
  4369. + esac
  4370. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  4371. + # contains redundant information, the shorter form:
  4372. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  4373. + echo "${machine}-${os}${release}"
  4374. + exit 0 ;;
  4375. + amiga:OpenBSD:*:*)
  4376. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  4377. + exit 0 ;;
  4378. + arc:OpenBSD:*:*)
  4379. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4380. + exit 0 ;;
  4381. + hp300:OpenBSD:*:*)
  4382. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  4383. + exit 0 ;;
  4384. + mac68k:OpenBSD:*:*)
  4385. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  4386. + exit 0 ;;
  4387. + macppc:OpenBSD:*:*)
  4388. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  4389. + exit 0 ;;
  4390. + mvme68k:OpenBSD:*:*)
  4391. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  4392. + exit 0 ;;
  4393. + mvme88k:OpenBSD:*:*)
  4394. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  4395. + exit 0 ;;
  4396. + mvmeppc:OpenBSD:*:*)
  4397. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  4398. + exit 0 ;;
  4399. + pmax:OpenBSD:*:*)
  4400. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4401. + exit 0 ;;
  4402. + sgi:OpenBSD:*:*)
  4403. + echo mipseb-unknown-openbsd${UNAME_RELEASE}
  4404. + exit 0 ;;
  4405. + sun3:OpenBSD:*:*)
  4406. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  4407. + exit 0 ;;
  4408. + wgrisc:OpenBSD:*:*)
  4409. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4410. + exit 0 ;;
  4411. + *:OpenBSD:*:*)
  4412. + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  4413. + exit 0 ;;
  4414. alpha:OSF1:*:*)
  4415. if test $UNAME_RELEASE = "V4.0"; then
  4416. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  4417. fi
  4418. + # According to Compaq, /usr/sbin/psrinfo has been available on
  4419. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  4420. + # covers most systems running today. This code pipes the CPU
  4421. + # types through head -n 1, so we only detect the type of CPU 0.
  4422. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  4423. + case "$ALPHA_CPU_TYPE" in
  4424. + "EV4 (21064)")
  4425. + UNAME_MACHINE="alpha" ;;
  4426. + "EV4.5 (21064)")
  4427. + UNAME_MACHINE="alpha" ;;
  4428. + "LCA4 (21066/21068)")
  4429. + UNAME_MACHINE="alpha" ;;
  4430. + "EV5 (21164)")
  4431. + UNAME_MACHINE="alphaev5" ;;
  4432. + "EV5.6 (21164A)")
  4433. + UNAME_MACHINE="alphaev56" ;;
  4434. + "EV5.6 (21164PC)")
  4435. + UNAME_MACHINE="alphapca56" ;;
  4436. + "EV5.7 (21164PC)")
  4437. + UNAME_MACHINE="alphapca57" ;;
  4438. + "EV6 (21264)")
  4439. + UNAME_MACHINE="alphaev6" ;;
  4440. + "EV6.7 (21264A)")
  4441. + UNAME_MACHINE="alphaev67" ;;
  4442. + "EV6.8CB (21264C)")
  4443. + UNAME_MACHINE="alphaev68" ;;
  4444. + "EV6.8AL (21264B)")
  4445. + UNAME_MACHINE="alphaev68" ;;
  4446. + "EV6.8CX (21264D)")
  4447. + UNAME_MACHINE="alphaev68" ;;
  4448. + "EV6.9A (21264/EV69A)")
  4449. + UNAME_MACHINE="alphaev69" ;;
  4450. + "EV7 (21364)")
  4451. + UNAME_MACHINE="alphaev7" ;;
  4452. + "EV7.9 (21364A)")
  4453. + UNAME_MACHINE="alphaev79" ;;
  4454. + esac
  4455. # A Vn.n version is a released version.
  4456. # A Tn.n version is a released field test version.
  4457. # A Xn.n version is an unreleased experimental baselevel.
  4458. # 1.2 uses "1.2" for uname -r.
  4459. - cat <<EOF >$dummy.s
  4460. - .globl main
  4461. - .ent main
  4462. -main:
  4463. - .frame \$30,0,\$26,0
  4464. - .prologue 0
  4465. - .long 0x47e03d80 # implver $0
  4466. - lda \$2,259
  4467. - .long 0x47e20c21 # amask $2,$1
  4468. - srl \$1,8,\$2
  4469. - sll \$2,2,\$2
  4470. - sll \$0,3,\$0
  4471. - addl \$1,\$0,\$0
  4472. - addl \$2,\$0,\$0
  4473. - ret \$31,(\$26),1
  4474. - .end main
  4475. -EOF
  4476. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  4477. - if test "$?" = 0 ; then
  4478. - ./$dummy
  4479. - case "$?" in
  4480. - 7)
  4481. - UNAME_MACHINE="alpha"
  4482. - ;;
  4483. - 15)
  4484. - UNAME_MACHINE="alphaev5"
  4485. - ;;
  4486. - 14)
  4487. - UNAME_MACHINE="alphaev56"
  4488. - ;;
  4489. - 10)
  4490. - UNAME_MACHINE="alphapca56"
  4491. - ;;
  4492. - 16)
  4493. - UNAME_MACHINE="alphaev6"
  4494. - ;;
  4495. - esac
  4496. - fi
  4497. - rm -f $dummy.s $dummy
  4498. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  4499. exit 0 ;;
  4500. Alpha\ *:Windows_NT*:*)
  4501. @@ -127,34 +292,13 @@
  4502. echo alpha-dec-winnt3.5
  4503. exit 0 ;;
  4504. Amiga*:UNIX_System_V:4.0:*)
  4505. - echo m68k-cbm-sysv4
  4506. + echo m68k-unknown-sysv4
  4507. exit 0;;
  4508. - amiga:NetBSD:*:*)
  4509. - echo m68k-cbm-netbsd${UNAME_RELEASE}
  4510. - exit 0 ;;
  4511. - amiga:OpenBSD:*:*)
  4512. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4513. - exit 0 ;;
  4514. *:[Aa]miga[Oo][Ss]:*:*)
  4515. echo ${UNAME_MACHINE}-unknown-amigaos
  4516. exit 0 ;;
  4517. - arc64:OpenBSD:*:*)
  4518. - echo mips64el-unknown-openbsd${UNAME_RELEASE}
  4519. - exit 0 ;;
  4520. - arc:OpenBSD:*:*)
  4521. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4522. - exit 0 ;;
  4523. - hkmips:OpenBSD:*:*)
  4524. - echo mips-unknown-openbsd${UNAME_RELEASE}
  4525. - exit 0 ;;
  4526. - pmax:OpenBSD:*:*)
  4527. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4528. - exit 0 ;;
  4529. - sgi:OpenBSD:*:*)
  4530. - echo mips-unknown-openbsd${UNAME_RELEASE}
  4531. - exit 0 ;;
  4532. - wgrisc:OpenBSD:*:*)
  4533. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  4534. + *:[Mm]orph[Oo][Ss]:*:*)
  4535. + echo ${UNAME_MACHINE}-unknown-morphos
  4536. exit 0 ;;
  4537. *:OS/390:*:*)
  4538. echo i370-ibm-openedition
  4539. @@ -162,10 +306,7 @@
  4540. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  4541. echo arm-acorn-riscix${UNAME_RELEASE}
  4542. exit 0;;
  4543. - arm32:NetBSD:*:*)
  4544. - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  4545. - exit 0 ;;
  4546. - SR2?01:HI-UX/MPP:*:*)
  4547. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  4548. echo hppa1.1-hitachi-hiuxmpp
  4549. exit 0;;
  4550. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  4551. @@ -179,6 +320,10 @@
  4552. NILE*:*:*:dcosx)
  4553. echo pyramid-pyramid-svr4
  4554. exit 0 ;;
  4555. + DRS?6000:UNIX_SV:4.2*:7*)
  4556. + case `/usr/bin/uname -p` in
  4557. + sparc) echo sparc-icl-nx7 && exit 0 ;;
  4558. + esac ;;
  4559. sun4H:SunOS:5.*:*)
  4560. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  4561. exit 0 ;;
  4562. @@ -207,7 +352,7 @@
  4563. echo m68k-sun-sunos${UNAME_RELEASE}
  4564. exit 0 ;;
  4565. sun*:*:4.2BSD:*)
  4566. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  4567. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  4568. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  4569. case "`/bin/arch`" in
  4570. sun3)
  4571. @@ -221,15 +366,9 @@
  4572. aushp:SunOS:*:*)
  4573. echo sparc-auspex-sunos${UNAME_RELEASE}
  4574. exit 0 ;;
  4575. - atari*:NetBSD:*:*)
  4576. - echo m68k-atari-netbsd${UNAME_RELEASE}
  4577. - exit 0 ;;
  4578. - atari*:OpenBSD:*:*)
  4579. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4580. - exit 0 ;;
  4581. # The situation for MiNT is a little confusing. The machine name
  4582. # can be virtually everything (everything which is not
  4583. - # "atarist" or "atariste" at least should have a processor
  4584. + # "atarist" or "atariste" at least should have a processor
  4585. # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  4586. # to the lowercase version "mint" (or "freemint"). Finally
  4587. # the system name "TOS" denotes a system which is actually not
  4588. @@ -253,30 +392,9 @@
  4589. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  4590. echo m68k-unknown-mint${UNAME_RELEASE}
  4591. exit 0 ;;
  4592. - sun3*:NetBSD:*:*)
  4593. - echo m68k-sun-netbsd${UNAME_RELEASE}
  4594. - exit 0 ;;
  4595. - sun3*:OpenBSD:*:*)
  4596. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4597. - exit 0 ;;
  4598. - mac68k:NetBSD:*:*)
  4599. - echo m68k-apple-netbsd${UNAME_RELEASE}
  4600. - exit 0 ;;
  4601. - mac68k:OpenBSD:*:*)
  4602. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4603. - exit 0 ;;
  4604. - mvme68k:OpenBSD:*:*)
  4605. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4606. - exit 0 ;;
  4607. - mvme88k:OpenBSD:*:*)
  4608. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  4609. - exit 0 ;;
  4610. powerpc:machten:*:*)
  4611. echo powerpc-apple-machten${UNAME_RELEASE}
  4612. exit 0 ;;
  4613. - macppc:NetBSD:*:*)
  4614. - echo powerpc-apple-netbsd${UNAME_RELEASE}
  4615. - exit 0 ;;
  4616. RISC*:Mach:*:*)
  4617. echo mips-dec-mach_bsd4.3
  4618. exit 0 ;;
  4619. @@ -290,8 +408,10 @@
  4620. echo clipper-intergraph-clix${UNAME_RELEASE}
  4621. exit 0 ;;
  4622. mips:*:*:UMIPS | mips:*:*:RISCos)
  4623. + eval $set_cc_for_build
  4624. sed 's/^ //' << EOF >$dummy.c
  4625. #ifdef __cplusplus
  4626. +#include <stdio.h> /* for printf() prototype */
  4627. int main (int argc, char *argv[]) {
  4628. #else
  4629. int main (argc, argv) int argc; char *argv[]; {
  4630. @@ -310,12 +430,20 @@
  4631. exit (-1);
  4632. }
  4633. EOF
  4634. - $CC_FOR_BUILD $dummy.c -o $dummy \
  4635. - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  4636. - && rm $dummy.c $dummy && exit 0
  4637. - rm -f $dummy.c $dummy
  4638. + $CC_FOR_BUILD -o $dummy $dummy.c \
  4639. + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  4640. + && exit 0
  4641. echo mips-mips-riscos${UNAME_RELEASE}
  4642. exit 0 ;;
  4643. + Motorola:PowerMAX_OS:*:*)
  4644. + echo powerpc-motorola-powermax
  4645. + exit 0 ;;
  4646. + Motorola:*:4.3:PL8-*)
  4647. + echo powerpc-harris-powermax
  4648. + exit 0 ;;
  4649. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  4650. + echo powerpc-harris-powermax
  4651. + exit 0 ;;
  4652. Night_Hawk:Power_UNIX:*:*)
  4653. echo powerpc-harris-powerunix
  4654. exit 0 ;;
  4655. @@ -331,7 +459,7 @@
  4656. AViiON:dgux:*:*)
  4657. # DG/UX returns AViiON for all architectures
  4658. UNAME_PROCESSOR=`/usr/bin/uname -p`
  4659. - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
  4660. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  4661. then
  4662. if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  4663. [ ${TARGET_BINARY_INTERFACE}x = x ]
  4664. @@ -363,11 +491,20 @@
  4665. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  4666. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  4667. exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  4668. - i?86:AIX:*:*)
  4669. + i*86:AIX:*:*)
  4670. echo i386-ibm-aix
  4671. exit 0 ;;
  4672. + ia64:AIX:*:*)
  4673. + if [ -x /usr/bin/oslevel ] ; then
  4674. + IBM_REV=`/usr/bin/oslevel`
  4675. + else
  4676. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  4677. + fi
  4678. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  4679. + exit 0 ;;
  4680. *:AIX:2:3)
  4681. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  4682. + eval $set_cc_for_build
  4683. sed 's/^ //' << EOF >$dummy.c
  4684. #include <sys/systemcfg.h>
  4685. @@ -379,8 +516,7 @@
  4686. exit(0);
  4687. }
  4688. EOF
  4689. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
  4690. - rm -f $dummy.c $dummy
  4691. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  4692. echo rs6000-ibm-aix3.2.5
  4693. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  4694. echo rs6000-ibm-aix3.2.4
  4695. @@ -388,9 +524,9 @@
  4696. echo rs6000-ibm-aix3.2
  4697. fi
  4698. exit 0 ;;
  4699. - *:AIX:*:4)
  4700. - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  4701. - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
  4702. + *:AIX:*:[45])
  4703. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  4704. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  4705. IBM_ARCH=rs6000
  4706. else
  4707. IBM_ARCH=powerpc
  4708. @@ -398,7 +534,7 @@
  4709. if [ -x /usr/bin/oslevel ] ; then
  4710. IBM_REV=`/usr/bin/oslevel`
  4711. else
  4712. - IBM_REV=4.${UNAME_RELEASE}
  4713. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  4714. fi
  4715. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  4716. exit 0 ;;
  4717. @@ -408,7 +544,7 @@
  4718. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  4719. echo romp-ibm-bsd4.4
  4720. exit 0 ;;
  4721. - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
  4722. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  4723. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  4724. exit 0 ;; # report: romp-ibm BSD 4.3
  4725. *:BOSX:*:*)
  4726. @@ -424,11 +560,30 @@
  4727. echo m68k-hp-bsd4.4
  4728. exit 0 ;;
  4729. 9000/[34678]??:HP-UX:*:*)
  4730. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  4731. case "${UNAME_MACHINE}" in
  4732. 9000/31? ) HP_ARCH=m68000 ;;
  4733. 9000/[34]?? ) HP_ARCH=m68k ;;
  4734. 9000/[678][0-9][0-9])
  4735. - sed 's/^ //' << EOF >$dummy.c
  4736. + if [ -x /usr/bin/getconf ]; then
  4737. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  4738. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  4739. + case "${sc_cpu_version}" in
  4740. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  4741. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  4742. + 532) # CPU_PA_RISC2_0
  4743. + case "${sc_kernel_bits}" in
  4744. + 32) HP_ARCH="hppa2.0n" ;;
  4745. + 64) HP_ARCH="hppa2.0w" ;;
  4746. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  4747. + esac ;;
  4748. + esac
  4749. + fi
  4750. + if [ "${HP_ARCH}" = "" ]; then
  4751. + eval $set_cc_for_build
  4752. + sed 's/^ //' << EOF >$dummy.c
  4753. +
  4754. + #define _HPUX_SOURCE
  4755. #include <stdlib.h>
  4756. #include <unistd.h>
  4757. @@ -459,13 +614,29 @@
  4758. exit (0);
  4759. }
  4760. EOF
  4761. - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
  4762. - rm -f $dummy.c $dummy
  4763. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  4764. + test -z "$HP_ARCH" && HP_ARCH=hppa
  4765. + fi ;;
  4766. esac
  4767. - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  4768. + if [ ${HP_ARCH} = "hppa2.0w" ]
  4769. + then
  4770. + # avoid double evaluation of $set_cc_for_build
  4771. + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  4772. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  4773. + then
  4774. + HP_ARCH="hppa2.0w"
  4775. + else
  4776. + HP_ARCH="hppa64"
  4777. + fi
  4778. + fi
  4779. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  4780. exit 0 ;;
  4781. + ia64:HP-UX:*:*)
  4782. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  4783. + echo ia64-hp-hpux${HPUX_REV}
  4784. + exit 0 ;;
  4785. 3050*:HI-UX:*:*)
  4786. + eval $set_cc_for_build
  4787. sed 's/^ //' << EOF >$dummy.c
  4788. #include <unistd.h>
  4789. int
  4790. @@ -491,8 +662,7 @@
  4791. exit (0);
  4792. }
  4793. EOF
  4794. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
  4795. - rm -f $dummy.c $dummy
  4796. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  4797. echo unknown-hitachi-hiuxwe2
  4798. exit 0 ;;
  4799. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  4800. @@ -501,7 +671,7 @@
  4801. 9000/8??:4.3bsd:*:*)
  4802. echo hppa1.0-hp-bsd
  4803. exit 0 ;;
  4804. - *9??*:MPE/iX:*:*)
  4805. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  4806. echo hppa1.0-hp-mpeix
  4807. exit 0 ;;
  4808. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  4809. @@ -510,7 +680,7 @@
  4810. hp8??:OSF1:*:*)
  4811. echo hppa1.0-hp-osf
  4812. exit 0 ;;
  4813. - i?86:OSF1:*:*)
  4814. + i*86:OSF1:*:*)
  4815. if [ -x /usr/sbin/sysversion ] ; then
  4816. echo ${UNAME_MACHINE}-unknown-osf1mk
  4817. else
  4818. @@ -520,9 +690,6 @@
  4819. parisc*:Lites*:*:*)
  4820. echo hppa1.1-hp-lites
  4821. exit 0 ;;
  4822. - hppa*:OpenBSD:*:*)
  4823. - echo hppa-unknown-openbsd
  4824. - exit 0 ;;
  4825. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  4826. echo c1-convex-bsd
  4827. exit 0 ;;
  4828. @@ -541,41 +708,34 @@
  4829. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  4830. echo c4-convex-bsd
  4831. exit 0 ;;
  4832. - CRAY*X-MP:*:*:*)
  4833. - echo xmp-cray-unicos
  4834. - exit 0 ;;
  4835. CRAY*Y-MP:*:*:*)
  4836. - echo ymp-cray-unicos${UNAME_RELEASE}
  4837. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  4838. exit 0 ;;
  4839. CRAY*[A-Z]90:*:*:*)
  4840. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  4841. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  4842. - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  4843. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  4844. + -e 's/\.[^.]*$/.X/'
  4845. exit 0 ;;
  4846. CRAY*TS:*:*:*)
  4847. - echo t90-cray-unicos${UNAME_RELEASE}
  4848. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  4849. exit 0 ;;
  4850. CRAY*T3E:*:*:*)
  4851. - echo alpha-cray-unicosmk${UNAME_RELEASE}
  4852. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  4853. exit 0 ;;
  4854. - CRAY-2:*:*:*)
  4855. - echo cray2-cray-unicos
  4856. - exit 0 ;;
  4857. - F300:UNIX_System_V:*:*)
  4858. + CRAY*SV1:*:*:*)
  4859. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  4860. + exit 0 ;;
  4861. + *:UNICOS/mp:*:*)
  4862. + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  4863. + exit 0 ;;
  4864. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  4865. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  4866. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  4867. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  4868. - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  4869. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  4870. exit 0 ;;
  4871. - F301:UNIX_System_V:*:*)
  4872. - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
  4873. - exit 0 ;;
  4874. - hp3[0-9][05]:NetBSD:*:*)
  4875. - echo m68k-hp-netbsd${UNAME_RELEASE}
  4876. - exit 0 ;;
  4877. - hp300:OpenBSD:*:*)
  4878. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  4879. - exit 0 ;;
  4880. - i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
  4881. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  4882. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  4883. exit 0 ;;
  4884. sparc*:BSD/OS:*:*)
  4885. @@ -584,20 +744,19 @@
  4886. *:BSD/OS:*:*)
  4887. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  4888. exit 0 ;;
  4889. - *:FreeBSD:*:*)
  4890. - if test -x /usr/bin/objformat; then
  4891. - if test "elf" = "`/usr/bin/objformat`"; then
  4892. - echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
  4893. - exit 0
  4894. - fi
  4895. - fi
  4896. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  4897. - exit 0 ;;
  4898. - *:NetBSD:*:*)
  4899. - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
  4900. - exit 0 ;;
  4901. - *:OpenBSD:*:*)
  4902. - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  4903. + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
  4904. + # Determine whether the default compiler uses glibc.
  4905. + eval $set_cc_for_build
  4906. + sed 's/^ //' << EOF >$dummy.c
  4907. + #include <features.h>
  4908. + #if __GLIBC__ >= 2
  4909. + LIBC=gnu
  4910. + #else
  4911. + LIBC=
  4912. + #endif
  4913. +EOF
  4914. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  4915. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  4916. exit 0 ;;
  4917. i*:CYGWIN*:*)
  4918. echo ${UNAME_MACHINE}-pc-cygwin
  4919. @@ -605,11 +764,20 @@
  4920. i*:MINGW*:*)
  4921. echo ${UNAME_MACHINE}-pc-mingw32
  4922. exit 0 ;;
  4923. + i*:PW*:*)
  4924. + echo ${UNAME_MACHINE}-pc-pw32
  4925. + exit 0 ;;
  4926. + x86:Interix*:3*)
  4927. + echo i586-pc-interix3
  4928. + exit 0 ;;
  4929. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  4930. + echo i${UNAME_MACHINE}-pc-mks
  4931. + exit 0 ;;
  4932. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  4933. # How do we know it's Interix rather than the generic POSIX subsystem?
  4934. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  4935. # UNAME_MACHINE based on the output of uname instead of i386?
  4936. - echo i386-pc-interix
  4937. + echo i586-pc-interix
  4938. exit 0 ;;
  4939. i*:UWIN*:*)
  4940. echo ${UNAME_MACHINE}-pc-uwin
  4941. @@ -623,201 +791,159 @@
  4942. *:GNU:*:*)
  4943. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  4944. exit 0 ;;
  4945. - *:Linux:*:*)
  4946. -
  4947. + i*86:Minix:*:*)
  4948. + echo ${UNAME_MACHINE}-pc-minix
  4949. + exit 0 ;;
  4950. + arm*:Linux:*:*)
  4951. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  4952. + exit 0 ;;
  4953. + ia64:Linux:*:*)
  4954. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  4955. + exit 0 ;;
  4956. + m68*:Linux:*:*)
  4957. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  4958. + exit 0 ;;
  4959. + mips:Linux:*:*)
  4960. + eval $set_cc_for_build
  4961. + sed 's/^ //' << EOF >$dummy.c
  4962. + #undef CPU
  4963. + #undef mips
  4964. + #undef mipsel
  4965. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  4966. + CPU=mipsel
  4967. + #else
  4968. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  4969. + CPU=mips
  4970. + #else
  4971. + CPU=
  4972. + #endif
  4973. + #endif
  4974. +EOF
  4975. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  4976. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  4977. + ;;
  4978. + mips64:Linux:*:*)
  4979. + eval $set_cc_for_build
  4980. + sed 's/^ //' << EOF >$dummy.c
  4981. + #undef CPU
  4982. + #undef mips64
  4983. + #undef mips64el
  4984. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  4985. + CPU=mips64el
  4986. + #else
  4987. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  4988. + CPU=mips64
  4989. + #else
  4990. + CPU=
  4991. + #endif
  4992. + #endif
  4993. +EOF
  4994. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  4995. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  4996. + ;;
  4997. + ppc:Linux:*:*)
  4998. + echo powerpc-unknown-linux-gnu
  4999. + exit 0 ;;
  5000. + ppc64:Linux:*:*)
  5001. + echo powerpc64-unknown-linux-gnu
  5002. + exit 0 ;;
  5003. + alpha:Linux:*:*)
  5004. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  5005. + EV5) UNAME_MACHINE=alphaev5 ;;
  5006. + EV56) UNAME_MACHINE=alphaev56 ;;
  5007. + PCA56) UNAME_MACHINE=alphapca56 ;;
  5008. + PCA57) UNAME_MACHINE=alphapca56 ;;
  5009. + EV6) UNAME_MACHINE=alphaev6 ;;
  5010. + EV67) UNAME_MACHINE=alphaev67 ;;
  5011. + EV68*) UNAME_MACHINE=alphaev68 ;;
  5012. + esac
  5013. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  5014. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  5015. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  5016. + exit 0 ;;
  5017. + parisc:Linux:*:* | hppa:Linux:*:*)
  5018. + # Look for CPU level
  5019. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  5020. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  5021. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  5022. + *) echo hppa-unknown-linux-gnu ;;
  5023. + esac
  5024. + exit 0 ;;
  5025. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  5026. + echo hppa64-unknown-linux-gnu
  5027. + exit 0 ;;
  5028. + s390:Linux:*:* | s390x:Linux:*:*)
  5029. + echo ${UNAME_MACHINE}-ibm-linux
  5030. + exit 0 ;;
  5031. + sh*:Linux:*:*)
  5032. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  5033. + exit 0 ;;
  5034. + sparc:Linux:*:* | sparc64:Linux:*:*)
  5035. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  5036. + exit 0 ;;
  5037. + x86_64:Linux:*:*)
  5038. + echo x86_64-unknown-linux-gnu
  5039. + exit 0 ;;
  5040. + i*86:Linux:*:*)
  5041. # The BFD linker knows what the default object file format is, so
  5042. # first see if it will tell us. cd to the root directory to prevent
  5043. # problems with other programs or directories called `ld' in the path.
  5044. - ld_help_string=`cd /; ld --help 2>&1`
  5045. - ld_supported_emulations=`echo $ld_help_string \
  5046. - | sed -ne '/supported emulations:/!d
  5047. + # Set LC_ALL=C to ensure ld outputs messages in English.
  5048. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  5049. + | sed -ne '/supported targets:/!d
  5050. s/[ ][ ]*/ /g
  5051. - s/.*supported emulations: *//
  5052. + s/.*supported targets: *//
  5053. s/ .*//
  5054. p'`
  5055. - case "$ld_supported_emulations" in
  5056. - *ia64)
  5057. - echo "${UNAME_MACHINE}-unknown-linux"
  5058. - exit 0
  5059. + case "$ld_supported_targets" in
  5060. + elf32-i386)
  5061. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  5062. ;;
  5063. - i?86linux)
  5064. + a.out-i386-linux)
  5065. echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  5066. - exit 0
  5067. - ;;
  5068. - i?86coff)
  5069. + exit 0 ;;
  5070. + coff-i386)
  5071. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  5072. - exit 0
  5073. - ;;
  5074. - sparclinux)
  5075. - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  5076. - exit 0
  5077. - ;;
  5078. - armlinux)
  5079. - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  5080. - exit 0
  5081. - ;;
  5082. - elf32arm*)
  5083. - echo "${UNAME_MACHINE}-unknown-linux-gnu"
  5084. - exit 0
  5085. - ;;
  5086. - armelf_linux*)
  5087. - echo "${UNAME_MACHINE}-unknown-linux-gnu"
  5088. - exit 0
  5089. - ;;
  5090. - m68klinux)
  5091. - echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  5092. - exit 0
  5093. - ;;
  5094. - elf32ppc)
  5095. - # Determine Lib Version
  5096. - cat >$dummy.c <<EOF
  5097. -#include <features.h>
  5098. -#if defined(__GLIBC__)
  5099. -extern char __libc_version[];
  5100. -extern char __libc_release[];
  5101. -#endif
  5102. -main(argc, argv)
  5103. - int argc;
  5104. - char *argv[];
  5105. -{
  5106. -#if defined(__GLIBC__)
  5107. - printf("%s %s\n", __libc_version, __libc_release);
  5108. -#else
  5109. - printf("unkown\n");
  5110. -#endif
  5111. - return 0;
  5112. -}
  5113. -EOF
  5114. - LIBC=""
  5115. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
  5116. - if test "$?" = 0 ; then
  5117. - ./$dummy | grep 1\.99 > /dev/null
  5118. - if test "$?" = 0 ; then
  5119. - LIBC="libc1"
  5120. - fi
  5121. - fi
  5122. - rm -f $dummy.c $dummy
  5123. - echo powerpc-unknown-linux-gnu${LIBC}
  5124. - exit 0
  5125. - ;;
  5126. + exit 0 ;;
  5127. + "")
  5128. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  5129. + # one that does not give us useful --help.
  5130. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  5131. + exit 0 ;;
  5132. esac
  5133. -
  5134. - if test "${UNAME_MACHINE}" = "alpha" ; then
  5135. - sed 's/^ //' <<EOF >$dummy.s
  5136. - .globl main
  5137. - .ent main
  5138. - main:
  5139. - .frame \$30,0,\$26,0
  5140. - .prologue 0
  5141. - .long 0x47e03d80 # implver $0
  5142. - lda \$2,259
  5143. - .long 0x47e20c21 # amask $2,$1
  5144. - srl \$1,8,\$2
  5145. - sll \$2,2,\$2
  5146. - sll \$0,3,\$0
  5147. - addl \$1,\$0,\$0
  5148. - addl \$2,\$0,\$0
  5149. - ret \$31,(\$26),1
  5150. - .end main
  5151. -EOF
  5152. - LIBC=""
  5153. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  5154. - if test "$?" = 0 ; then
  5155. - ./$dummy
  5156. - case "$?" in
  5157. - 7)
  5158. - UNAME_MACHINE="alpha"
  5159. - ;;
  5160. - 15)
  5161. - UNAME_MACHINE="alphaev5"
  5162. - ;;
  5163. - 14)
  5164. - UNAME_MACHINE="alphaev56"
  5165. - ;;
  5166. - 10)
  5167. - UNAME_MACHINE="alphapca56"
  5168. - ;;
  5169. - 16)
  5170. - UNAME_MACHINE="alphaev6"
  5171. - ;;
  5172. - esac
  5173. -
  5174. - objdump --private-headers $dummy | \
  5175. - grep ld.so.1 > /dev/null
  5176. - if test "$?" = 0 ; then
  5177. - LIBC="libc1"
  5178. - fi
  5179. - fi
  5180. - rm -f $dummy.s $dummy
  5181. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
  5182. - elif test "${UNAME_MACHINE}" = "mips" ; then
  5183. - cat >$dummy.c <<EOF
  5184. -#ifdef __cplusplus
  5185. - int main (int argc, char *argv[]) {
  5186. -#else
  5187. - int main (argc, argv) int argc; char *argv[]; {
  5188. -#endif
  5189. -#ifdef __MIPSEB__
  5190. - printf ("%s-unknown-linux-gnu\n", argv[1]);
  5191. -#endif
  5192. -#ifdef __MIPSEL__
  5193. - printf ("%sel-unknown-linux-gnu\n", argv[1]);
  5194. -#endif
  5195. - return 0;
  5196. -}
  5197. -EOF
  5198. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
  5199. - rm -f $dummy.c $dummy
  5200. - else
  5201. - # Either a pre-BFD a.out linker (linux-gnuoldld)
  5202. - # or one that does not give us useful --help.
  5203. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
  5204. - # If ld does not provide *any* "supported emulations:"
  5205. - # that means it is gnuoldld.
  5206. - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
  5207. - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  5208. -
  5209. - case "${UNAME_MACHINE}" in
  5210. - i?86)
  5211. - VENDOR=pc;
  5212. - ;;
  5213. - *)
  5214. - VENDOR=unknown;
  5215. - ;;
  5216. - esac
  5217. - # Determine whether the default compiler is a.out or elf
  5218. - cat >$dummy.c <<EOF
  5219. -#include <features.h>
  5220. -#ifdef __cplusplus
  5221. - int main (int argc, char *argv[]) {
  5222. -#else
  5223. - int main (argc, argv) int argc; char *argv[]; {
  5224. -#endif
  5225. -#ifdef __ELF__
  5226. -# ifdef __GLIBC__
  5227. -# if __GLIBC__ >= 2
  5228. - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
  5229. -# else
  5230. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  5231. -# endif
  5232. -# else
  5233. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  5234. -# endif
  5235. -#else
  5236. - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
  5237. -#endif
  5238. - return 0;
  5239. -}
  5240. + # Determine whether the default compiler is a.out or elf
  5241. + eval $set_cc_for_build
  5242. + sed 's/^ //' << EOF >$dummy.c
  5243. + #include <features.h>
  5244. + #ifdef __ELF__
  5245. + # ifdef __GLIBC__
  5246. + # if __GLIBC__ >= 2
  5247. + LIBC=gnu
  5248. + # else
  5249. + LIBC=gnulibc1
  5250. + # endif
  5251. + # else
  5252. + LIBC=gnulibc1
  5253. + # endif
  5254. + #else
  5255. + #ifdef __INTEL_COMPILER
  5256. + LIBC=gnu
  5257. + #else
  5258. + LIBC=gnuaout
  5259. + #endif
  5260. + #endif
  5261. EOF
  5262. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
  5263. - rm -f $dummy.c $dummy
  5264. - fi ;;
  5265. -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
  5266. -# are messed up and put the nodename in both sysname and nodename.
  5267. - i?86:DYNIX/ptx:4*:*)
  5268. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  5269. + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  5270. + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  5271. + ;;
  5272. + i*86:DYNIX/ptx:4*:*)
  5273. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  5274. + # earlier versions are messed up and put the nodename in both
  5275. + # sysname and nodename.
  5276. echo i386-sequent-sysv4
  5277. exit 0 ;;
  5278. - i?86:UNIX_SV:4.2MP:2.*)
  5279. + i*86:UNIX_SV:4.2MP:2.*)
  5280. # Unixware is an offshoot of SVR4, but it has its own version
  5281. # number series starting with 2...
  5282. # I am not positive that other SVR4 systems won't match this,
  5283. @@ -825,7 +951,24 @@
  5284. # Use sysv4.2uw... so that sysv4* matches it.
  5285. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  5286. exit 0 ;;
  5287. - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
  5288. + i*86:OS/2:*:*)
  5289. + # If we were able to find `uname', then EMX Unix compatibility
  5290. + # is probably installed.
  5291. + echo ${UNAME_MACHINE}-pc-os2-emx
  5292. + exit 0 ;;
  5293. + i*86:XTS-300:*:STOP)
  5294. + echo ${UNAME_MACHINE}-unknown-stop
  5295. + exit 0 ;;
  5296. + i*86:atheos:*:*)
  5297. + echo ${UNAME_MACHINE}-unknown-atheos
  5298. + exit 0 ;;
  5299. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  5300. + echo i386-unknown-lynxos${UNAME_RELEASE}
  5301. + exit 0 ;;
  5302. + i*86:*DOS:*:*)
  5303. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  5304. + exit 0 ;;
  5305. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  5306. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  5307. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  5308. echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  5309. @@ -833,27 +976,26 @@
  5310. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  5311. fi
  5312. exit 0 ;;
  5313. - i?86:*:5:7*)
  5314. - # Fixed at (any) Pentium or better
  5315. - UNAME_MACHINE=i586
  5316. - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
  5317. - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
  5318. - else
  5319. - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  5320. - fi
  5321. + i*86:*:5:[78]*)
  5322. + case `/bin/uname -X | grep "^Machine"` in
  5323. + *486*) UNAME_MACHINE=i486 ;;
  5324. + *Pentium) UNAME_MACHINE=i586 ;;
  5325. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  5326. + esac
  5327. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  5328. exit 0 ;;
  5329. - i?86:*:3.2:*)
  5330. + i*86:*:3.2:*)
  5331. if test -f /usr/options/cb.name; then
  5332. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  5333. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  5334. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  5335. - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  5336. - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  5337. - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  5338. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  5339. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  5340. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  5341. && UNAME_MACHINE=i586
  5342. - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
  5343. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  5344. && UNAME_MACHINE=i686
  5345. - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
  5346. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  5347. && UNAME_MACHINE=i686
  5348. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  5349. else
  5350. @@ -861,6 +1003,7 @@
  5351. fi
  5352. exit 0 ;;
  5353. pc:*:*:*)
  5354. + # Left here for compatibility:
  5355. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  5356. # the processor, so we play safe by assuming i386.
  5357. echo i386-pc-msdosdjgpp
  5358. @@ -882,9 +1025,15 @@
  5359. # "miniframe"
  5360. echo m68010-convergent-sysv
  5361. exit 0 ;;
  5362. + mc68k:UNIX:SYSTEM5:3.51m)
  5363. + echo m68k-convergent-sysv
  5364. + exit 0 ;;
  5365. + M680?0:D-NIX:5.3:*)
  5366. + echo m68k-diab-dnix
  5367. + exit 0 ;;
  5368. M68*:*:R3V[567]*:*)
  5369. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  5370. - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  5371. + 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)
  5372. OS_REL=''
  5373. test -r /etc/.relid \
  5374. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  5375. @@ -895,21 +1044,21 @@
  5376. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  5377. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  5378. && echo i486-ncr-sysv4 && exit 0 ;;
  5379. - m68*:LynxOS:2.*:*)
  5380. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  5381. echo m68k-unknown-lynxos${UNAME_RELEASE}
  5382. exit 0 ;;
  5383. mc68030:UNIX_System_V:4.*:*)
  5384. echo m68k-atari-sysv4
  5385. exit 0 ;;
  5386. - i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
  5387. - echo i386-unknown-lynxos${UNAME_RELEASE}
  5388. - exit 0 ;;
  5389. TSUNAMI:LynxOS:2.*:*)
  5390. echo sparc-unknown-lynxos${UNAME_RELEASE}
  5391. exit 0 ;;
  5392. - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
  5393. + rs6000:LynxOS:2.*:*)
  5394. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  5395. exit 0 ;;
  5396. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  5397. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  5398. + exit 0 ;;
  5399. SM[BE]S:UNIX_SV:*:*)
  5400. echo mips-dde-sysv${UNAME_RELEASE}
  5401. exit 0 ;;
  5402. @@ -927,8 +1076,8 @@
  5403. echo ns32k-sni-sysv
  5404. fi
  5405. exit 0 ;;
  5406. - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  5407. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  5408. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  5409. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  5410. echo i586-unisys-sysv4
  5411. exit 0 ;;
  5412. *:UNIX_System_V:4*:FTX*)
  5413. @@ -940,10 +1089,14 @@
  5414. # From seanf@swdc.stratus.com.
  5415. echo i860-stratus-sysv4
  5416. exit 0 ;;
  5417. + *:VOS:*:*)
  5418. + # From Paul.Green@stratus.com.
  5419. + echo hppa1.1-stratus-vos
  5420. + exit 0 ;;
  5421. mc68*:A/UX:*:*)
  5422. echo m68k-apple-aux${UNAME_RELEASE}
  5423. exit 0 ;;
  5424. - news*:NEWS-OS:*:6*)
  5425. + news*:NEWS-OS:6*:*)
  5426. echo mips-sony-newsos6
  5427. exit 0 ;;
  5428. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  5429. @@ -968,20 +1121,80 @@
  5430. SX-5:SUPER-UX:*:*)
  5431. echo sx5-nec-superux${UNAME_RELEASE}
  5432. exit 0 ;;
  5433. + SX-6:SUPER-UX:*:*)
  5434. + echo sx6-nec-superux${UNAME_RELEASE}
  5435. + exit 0 ;;
  5436. Power*:Rhapsody:*:*)
  5437. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  5438. exit 0 ;;
  5439. *:Rhapsody:*:*)
  5440. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  5441. exit 0 ;;
  5442. + *:Darwin:*:*)
  5443. + case `uname -p` in
  5444. + *86) UNAME_PROCESSOR=i686 ;;
  5445. + powerpc) UNAME_PROCESSOR=powerpc ;;
  5446. + esac
  5447. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  5448. + exit 0 ;;
  5449. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  5450. + UNAME_PROCESSOR=`uname -p`
  5451. + if test "$UNAME_PROCESSOR" = "x86"; then
  5452. + UNAME_PROCESSOR=i386
  5453. + UNAME_MACHINE=pc
  5454. + fi
  5455. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  5456. + exit 0 ;;
  5457. *:QNX:*:4*)
  5458. - echo i386-qnx-qnx${UNAME_VERSION}
  5459. + echo i386-pc-qnx
  5460. + exit 0 ;;
  5461. + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
  5462. + echo nsr-tandem-nsk${UNAME_RELEASE}
  5463. + exit 0 ;;
  5464. + *:NonStop-UX:*:*)
  5465. + echo mips-compaq-nonstopux
  5466. + exit 0 ;;
  5467. + BS2000:POSIX*:*:*)
  5468. + echo bs2000-siemens-sysv
  5469. + exit 0 ;;
  5470. + DS/*:UNIX_System_V:*:*)
  5471. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  5472. + exit 0 ;;
  5473. + *:Plan9:*:*)
  5474. + # "uname -m" is not consistent, so use $cputype instead. 386
  5475. + # is converted to i386 for consistency with other x86
  5476. + # operating systems.
  5477. + if test "$cputype" = "386"; then
  5478. + UNAME_MACHINE=i386
  5479. + else
  5480. + UNAME_MACHINE="$cputype"
  5481. + fi
  5482. + echo ${UNAME_MACHINE}-unknown-plan9
  5483. + exit 0 ;;
  5484. + *:TOPS-10:*:*)
  5485. + echo pdp10-unknown-tops10
  5486. + exit 0 ;;
  5487. + *:TENEX:*:*)
  5488. + echo pdp10-unknown-tenex
  5489. + exit 0 ;;
  5490. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  5491. + echo pdp10-dec-tops20
  5492. + exit 0 ;;
  5493. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  5494. + echo pdp10-xkl-tops20
  5495. + exit 0 ;;
  5496. + *:TOPS-20:*:*)
  5497. + echo pdp10-unknown-tops20
  5498. + exit 0 ;;
  5499. + *:ITS:*:*)
  5500. + echo pdp10-unknown-its
  5501. exit 0 ;;
  5502. esac
  5503. #echo '(No uname command or uname output not recognized.)' 1>&2
  5504. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  5505. +eval $set_cc_for_build
  5506. cat >$dummy.c <<EOF
  5507. #ifdef _SEQUENT_
  5508. # include <sys/types.h>
  5509. @@ -1068,11 +1281,24 @@
  5510. #endif
  5511. #if defined (vax)
  5512. -#if !defined (ultrix)
  5513. - printf ("vax-dec-bsd\n"); exit (0);
  5514. -#else
  5515. - printf ("vax-dec-ultrix\n"); exit (0);
  5516. -#endif
  5517. +# if !defined (ultrix)
  5518. +# include <sys/param.h>
  5519. +# if defined (BSD)
  5520. +# if BSD == 43
  5521. + printf ("vax-dec-bsd4.3\n"); exit (0);
  5522. +# else
  5523. +# if BSD == 199006
  5524. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  5525. +# else
  5526. + printf ("vax-dec-bsd\n"); exit (0);
  5527. +# endif
  5528. +# endif
  5529. +# else
  5530. + printf ("vax-dec-bsd\n"); exit (0);
  5531. +# endif
  5532. +# else
  5533. + printf ("vax-dec-ultrix\n"); exit (0);
  5534. +# endif
  5535. #endif
  5536. #if defined (alliant) && defined (i860)
  5537. @@ -1083,8 +1309,7 @@
  5538. }
  5539. EOF
  5540. -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
  5541. -rm -f $dummy.c $dummy
  5542. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  5543. # Apollos put the system type in the environment.
  5544. @@ -1116,6 +1341,48 @@
  5545. esac
  5546. fi
  5547. -#echo '(Unable to guess system type)' 1>&2
  5548. +cat >&2 <<EOF
  5549. +$0: unable to guess system type
  5550. +
  5551. +This script, last modified $timestamp, has failed to recognize
  5552. +the operating system you are using. It is advised that you
  5553. +download the most up to date version of the config scripts from
  5554. +
  5555. + ftp://ftp.gnu.org/pub/gnu/config/
  5556. +
  5557. +If the version you run ($0) is already up to date, please
  5558. +send the following data and any information you think might be
  5559. +pertinent to <config-patches@gnu.org> in order to provide the needed
  5560. +information to handle your system.
  5561. +
  5562. +config.guess timestamp = $timestamp
  5563. +
  5564. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  5565. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  5566. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  5567. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  5568. +
  5569. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  5570. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  5571. +
  5572. +hostinfo = `(hostinfo) 2>/dev/null`
  5573. +/bin/universe = `(/bin/universe) 2>/dev/null`
  5574. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  5575. +/bin/arch = `(/bin/arch) 2>/dev/null`
  5576. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  5577. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  5578. +
  5579. +UNAME_MACHINE = ${UNAME_MACHINE}
  5580. +UNAME_RELEASE = ${UNAME_RELEASE}
  5581. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  5582. +UNAME_VERSION = ${UNAME_VERSION}
  5583. +EOF
  5584. exit 1
  5585. +
  5586. +# Local variables:
  5587. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  5588. +# time-stamp-start: "timestamp='"
  5589. +# time-stamp-format: "%:y-%02m-%02d"
  5590. +# time-stamp-end: "'"
  5591. +# End:
  5592. --- glib1.2-1.2.10.orig/config.sub
  5593. +++ glib1.2-1.2.10/config.sub
  5594. @@ -1,6 +1,10 @@
  5595. #! /bin/sh
  5596. -# Configuration validation subroutine script, version 1.1.
  5597. -# Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
  5598. +# Configuration validation subroutine script.
  5599. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  5600. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  5601. +
  5602. +timestamp='2003-05-09'
  5603. +
  5604. # This file is (in principle) common to ALL GNU software.
  5605. # The presence of a machine in this file suggests that SOME GNU software
  5606. # can handle that machine. It does not imply ALL GNU software can.
  5607. @@ -25,6 +29,9 @@
  5608. # configuration script generated by Autoconf, you may include it under
  5609. # the same distribution terms that you use for the rest of that program.
  5610. +# Please send patches to <config-patches@gnu.org>. Submit a context
  5611. +# diff and a properly formatted ChangeLog entry.
  5612. +#
  5613. # Configuration subroutine to validate and canonicalize a configuration type.
  5614. # Supply the specified configuration type as an argument.
  5615. # If it is invalid, we print an error message on stderr and exit with code 1.
  5616. @@ -45,30 +52,73 @@
  5617. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  5618. # It is wrong to echo any other type of specification.
  5619. -if [ x$1 = x ]
  5620. -then
  5621. - echo Configuration name missing. 1>&2
  5622. - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  5623. - echo "or $0 ALIAS" 1>&2
  5624. - echo where ALIAS is a recognized configuration type. 1>&2
  5625. - exit 1
  5626. -fi
  5627. +me=`echo "$0" | sed -e 's,.*/,,'`
  5628. -# First pass through any local machine types.
  5629. -case $1 in
  5630. - *local*)
  5631. - echo $1
  5632. - exit 0
  5633. - ;;
  5634. - *)
  5635. - ;;
  5636. +usage="\
  5637. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  5638. + $0 [OPTION] ALIAS
  5639. +
  5640. +Canonicalize a configuration name.
  5641. +
  5642. +Operation modes:
  5643. + -h, --help print this help, then exit
  5644. + -t, --time-stamp print date of last modification, then exit
  5645. + -v, --version print version number, then exit
  5646. +
  5647. +Report bugs and patches to <config-patches@gnu.org>."
  5648. +
  5649. +version="\
  5650. +GNU config.sub ($timestamp)
  5651. +
  5652. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  5653. +Free Software Foundation, Inc.
  5654. +
  5655. +This is free software; see the source for copying conditions. There is NO
  5656. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  5657. +
  5658. +help="
  5659. +Try \`$me --help' for more information."
  5660. +
  5661. +# Parse command line
  5662. +while test $# -gt 0 ; do
  5663. + case $1 in
  5664. + --time-stamp | --time* | -t )
  5665. + echo "$timestamp" ; exit 0 ;;
  5666. + --version | -v )
  5667. + echo "$version" ; exit 0 ;;
  5668. + --help | --h* | -h )
  5669. + echo "$usage"; exit 0 ;;
  5670. + -- ) # Stop option processing
  5671. + shift; break ;;
  5672. + - ) # Use stdin as input.
  5673. + break ;;
  5674. + -* )
  5675. + echo "$me: invalid option $1$help"
  5676. + exit 1 ;;
  5677. +
  5678. + *local*)
  5679. + # First pass through any local machine types.
  5680. + echo $1
  5681. + exit 0;;
  5682. +
  5683. + * )
  5684. + break ;;
  5685. + esac
  5686. +done
  5687. +
  5688. +case $# in
  5689. + 0) echo "$me: missing argument$help" >&2
  5690. + exit 1;;
  5691. + 1) ;;
  5692. + *) echo "$me: too many arguments$help" >&2
  5693. + exit 1;;
  5694. esac
  5695. # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  5696. # Here we must recognize all the valid KERNEL-OS combinations.
  5697. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  5698. case $maybe_os in
  5699. - linux-gnu*)
  5700. + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  5701. os=-$maybe_os
  5702. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  5703. ;;
  5704. @@ -94,7 +144,7 @@
  5705. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  5706. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  5707. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  5708. - -apple)
  5709. + -apple | -axis)
  5710. os=
  5711. basic_machine=$1
  5712. ;;
  5713. @@ -108,6 +158,14 @@
  5714. os=-vxworks
  5715. basic_machine=$1
  5716. ;;
  5717. + -chorusos*)
  5718. + os=-chorusos
  5719. + basic_machine=$1
  5720. + ;;
  5721. + -chorusrdb)
  5722. + os=-chorusrdb
  5723. + basic_machine=$1
  5724. + ;;
  5725. -hiux*)
  5726. os=-hiuxwe2
  5727. ;;
  5728. @@ -166,27 +224,62 @@
  5729. case $basic_machine in
  5730. # Recognize the basic CPU types without company name.
  5731. # Some are omitted here because they have special meanings below.
  5732. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
  5733. - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
  5734. - | 580 | i960 | h8300 \
  5735. - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
  5736. - | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
  5737. - | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
  5738. - | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
  5739. - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
  5740. - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
  5741. - | mips64vr5000 | miprs64vr5000el | mcore \
  5742. - | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
  5743. - | thumb | d10v | fr30)
  5744. + 1750a | 580 \
  5745. + | a29k \
  5746. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  5747. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  5748. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  5749. + | clipper \
  5750. + | d10v | d30v | dlx | dsp16xx \
  5751. + | fr30 | frv \
  5752. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  5753. + | i370 | i860 | i960 | ia64 \
  5754. + | ip2k \
  5755. + | m32r | m68000 | m68k | m88k | mcore \
  5756. + | mips | mipsbe | mipseb | mipsel | mipsle \
  5757. + | mips16 \
  5758. + | mips64 | mips64el \
  5759. + | mips64vr | mips64vrel \
  5760. + | mips64orion | mips64orionel \
  5761. + | mips64vr4100 | mips64vr4100el \
  5762. + | mips64vr4300 | mips64vr4300el \
  5763. + | mips64vr5000 | mips64vr5000el \
  5764. + | mipsisa32 | mipsisa32el \
  5765. + | mipsisa32r2 | mipsisa32r2el \
  5766. + | mipsisa64 | mipsisa64el \
  5767. + | mipsisa64sb1 | mipsisa64sb1el \
  5768. + | mipsisa64sr71k | mipsisa64sr71kel \
  5769. + | mipstx39 | mipstx39el \
  5770. + | mn10200 | mn10300 \
  5771. + | msp430 \
  5772. + | ns16k | ns32k \
  5773. + | openrisc | or32 \
  5774. + | pdp10 | pdp11 | pj | pjl \
  5775. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  5776. + | pyramid \
  5777. + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  5778. + | sh64 | sh64le \
  5779. + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  5780. + | strongarm \
  5781. + | tahoe | thumb | tic80 | tron \
  5782. + | v850 | v850e \
  5783. + | we32k \
  5784. + | x86 | xscale | xstormy16 | xtensa \
  5785. + | z8k)
  5786. + basic_machine=$basic_machine-unknown
  5787. + ;;
  5788. + m6811 | m68hc11 | m6812 | m68hc12)
  5789. + # Motorola 68HC11/12.
  5790. basic_machine=$basic_machine-unknown
  5791. + os=-none
  5792. ;;
  5793. - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
  5794. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  5795. ;;
  5796. # We use `pc' rather than `unknown'
  5797. # because (1) that's what they normally are, and
  5798. # (2) the word "unknown" tends to confuse beginning users.
  5799. - i[34567]86)
  5800. + i*86 | x86_64)
  5801. basic_machine=$basic_machine-pc
  5802. ;;
  5803. # Object if more than one company name word.
  5804. @@ -195,24 +288,60 @@
  5805. exit 1
  5806. ;;
  5807. # Recognize the basic CPU types with company name.
  5808. - # FIXME: clean up the formatting here.
  5809. - vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
  5810. - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
  5811. - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  5812. - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
  5813. - | xmp-* | ymp-* \
  5814. - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
  5815. - | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
  5816. - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
  5817. - | clipper-* | orion-* \
  5818. - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
  5819. - | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
  5820. - | mips64el-* | mips64orion-* | mips64orionel-* \
  5821. - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
  5822. - | mipstx39-* | mipstx39el-* | mcore-* \
  5823. - | f301-* | armv*-* | t3e-* \
  5824. - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
  5825. - | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
  5826. + 580-* \
  5827. + | a29k-* \
  5828. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  5829. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  5830. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  5831. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  5832. + | avr-* \
  5833. + | bs2000-* \
  5834. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  5835. + | clipper-* | cydra-* \
  5836. + | d10v-* | d30v-* | dlx-* \
  5837. + | elxsi-* \
  5838. + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  5839. + | h8300-* | h8500-* \
  5840. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  5841. + | i*86-* | i860-* | i960-* | ia64-* \
  5842. + | ip2k-* \
  5843. + | m32r-* \
  5844. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  5845. + | m88110-* | m88k-* | mcore-* \
  5846. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  5847. + | mips16-* \
  5848. + | mips64-* | mips64el-* \
  5849. + | mips64vr-* | mips64vrel-* \
  5850. + | mips64orion-* | mips64orionel-* \
  5851. + | mips64vr4100-* | mips64vr4100el-* \
  5852. + | mips64vr4300-* | mips64vr4300el-* \
  5853. + | mips64vr5000-* | mips64vr5000el-* \
  5854. + | mipsisa32-* | mipsisa32el-* \
  5855. + | mipsisa32r2-* | mipsisa32r2el-* \
  5856. + | mipsisa64-* | mipsisa64el-* \
  5857. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  5858. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  5859. + | mipstx39-* | mipstx39el-* \
  5860. + | msp430-* \
  5861. + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
  5862. + | orion-* \
  5863. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  5864. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  5865. + | pyramid-* \
  5866. + | romp-* | rs6000-* \
  5867. + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  5868. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  5869. + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  5870. + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  5871. + | tahoe-* | thumb-* \
  5872. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  5873. + | tron-* \
  5874. + | v850-* | v850e-* | vax-* \
  5875. + | we32k-* \
  5876. + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  5877. + | xtensa-* \
  5878. + | ymp-* \
  5879. + | z8k-*)
  5880. ;;
  5881. # Recognize the various machine names and aliases which stand
  5882. # for a CPU type and a company and sometimes even an OS.
  5883. @@ -244,19 +373,22 @@
  5884. basic_machine=a29k-none
  5885. os=-bsd
  5886. ;;
  5887. + amd64)
  5888. + basic_machine=x86_64-pc
  5889. + ;;
  5890. amdahl)
  5891. basic_machine=580-amdahl
  5892. os=-sysv
  5893. ;;
  5894. amiga | amiga-*)
  5895. - basic_machine=m68k-cbm
  5896. + basic_machine=m68k-unknown
  5897. ;;
  5898. amigaos | amigados)
  5899. - basic_machine=m68k-cbm
  5900. + basic_machine=m68k-unknown
  5901. os=-amigaos
  5902. ;;
  5903. amigaunix | amix)
  5904. - basic_machine=m68k-cbm
  5905. + basic_machine=m68k-unknown
  5906. os=-sysv4
  5907. ;;
  5908. apollo68)
  5909. @@ -275,6 +407,10 @@
  5910. basic_machine=ns32k-sequent
  5911. os=-dynix
  5912. ;;
  5913. + c90)
  5914. + basic_machine=c90-cray
  5915. + os=-unicos
  5916. + ;;
  5917. convex-c1)
  5918. basic_machine=c1-convex
  5919. os=-bsd
  5920. @@ -295,27 +431,30 @@
  5921. basic_machine=c38-convex
  5922. os=-bsd
  5923. ;;
  5924. - cray | ymp)
  5925. - basic_machine=ymp-cray
  5926. - os=-unicos
  5927. - ;;
  5928. - cray2)
  5929. - basic_machine=cray2-cray
  5930. - os=-unicos
  5931. - ;;
  5932. - [ctj]90-cray)
  5933. - basic_machine=c90-cray
  5934. + cray | j90)
  5935. + basic_machine=j90-cray
  5936. os=-unicos
  5937. ;;
  5938. crds | unos)
  5939. basic_machine=m68k-crds
  5940. ;;
  5941. + cris | cris-* | etrax*)
  5942. + basic_machine=cris-axis
  5943. + ;;
  5944. da30 | da30-*)
  5945. basic_machine=m68k-da30
  5946. ;;
  5947. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  5948. basic_machine=mips-dec
  5949. ;;
  5950. + decsystem10* | dec10*)
  5951. + basic_machine=pdp10-dec
  5952. + os=-tops10
  5953. + ;;
  5954. + decsystem20* | dec20*)
  5955. + basic_machine=pdp10-dec
  5956. + os=-tops20
  5957. + ;;
  5958. delta | 3300 | motorola-3300 | motorola-delta \
  5959. | 3300-motorola | delta-motorola)
  5960. basic_machine=m68k-motorola
  5961. @@ -357,6 +496,10 @@
  5962. basic_machine=tron-gmicro
  5963. os=-sysv
  5964. ;;
  5965. + go32)
  5966. + basic_machine=i386-pc
  5967. + os=-go32
  5968. + ;;
  5969. h3050r* | hiux*)
  5970. basic_machine=hppa1.1-hitachi
  5971. os=-hiuxwe2
  5972. @@ -432,19 +575,19 @@
  5973. basic_machine=i370-ibm
  5974. ;;
  5975. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  5976. - i[34567]86v32)
  5977. + i*86v32)
  5978. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  5979. os=-sysv32
  5980. ;;
  5981. - i[34567]86v4*)
  5982. + i*86v4*)
  5983. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  5984. os=-sysv4
  5985. ;;
  5986. - i[34567]86v)
  5987. + i*86v)
  5988. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  5989. os=-sysv
  5990. ;;
  5991. - i[34567]86sol2)
  5992. + i*86sol2)
  5993. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  5994. os=-solaris2
  5995. ;;
  5996. @@ -456,17 +599,6 @@
  5997. basic_machine=i386-unknown
  5998. os=-vsta
  5999. ;;
  6000. - i386-go32 | go32)
  6001. - basic_machine=i386-unknown
  6002. - os=-go32
  6003. - ;;
  6004. - i386-mingw32 | mingw32)
  6005. - basic_machine=i386-unknown
  6006. - os=-mingw32
  6007. - ;;
  6008. - i386-qnx | qnx)
  6009. - basic_machine=i386-qnx
  6010. - ;;
  6011. iris | iris4d)
  6012. basic_machine=mips-sgi
  6013. case $os in
  6014. @@ -492,6 +624,10 @@
  6015. basic_machine=ns32k-utek
  6016. os=-sysv
  6017. ;;
  6018. + mingw32)
  6019. + basic_machine=i386-pc
  6020. + os=-mingw32
  6021. + ;;
  6022. miniframe)
  6023. basic_machine=m68000-convergent
  6024. ;;
  6025. @@ -499,26 +635,26 @@
  6026. basic_machine=m68k-atari
  6027. os=-mint
  6028. ;;
  6029. - mipsel*-linux*)
  6030. - basic_machine=mipsel-unknown
  6031. - os=-linux-gnu
  6032. - ;;
  6033. - mips*-linux*)
  6034. - basic_machine=mips-unknown
  6035. - os=-linux-gnu
  6036. - ;;
  6037. mips3*-*)
  6038. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  6039. ;;
  6040. mips3*)
  6041. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  6042. ;;
  6043. + mmix*)
  6044. + basic_machine=mmix-knuth
  6045. + os=-mmixware
  6046. + ;;
  6047. monitor)
  6048. basic_machine=m68k-rom68k
  6049. os=-coff
  6050. ;;
  6051. + morphos)
  6052. + basic_machine=powerpc-unknown
  6053. + os=-morphos
  6054. + ;;
  6055. msdos)
  6056. - basic_machine=i386-unknown
  6057. + basic_machine=i386-pc
  6058. os=-msdos
  6059. ;;
  6060. mvs)
  6061. @@ -582,13 +718,28 @@
  6062. basic_machine=i960-intel
  6063. os=-mon960
  6064. ;;
  6065. + nonstopux)
  6066. + basic_machine=mips-compaq
  6067. + os=-nonstopux
  6068. + ;;
  6069. np1)
  6070. basic_machine=np1-gould
  6071. ;;
  6072. + nv1)
  6073. + basic_machine=nv1-cray
  6074. + os=-unicosmp
  6075. + ;;
  6076. + nsr-tandem)
  6077. + basic_machine=nsr-tandem
  6078. + ;;
  6079. op50n-* | op60c-*)
  6080. basic_machine=hppa1.1-oki
  6081. os=-proelf
  6082. ;;
  6083. + or32 | or32-*)
  6084. + basic_machine=or32-unknown
  6085. + os=-coff
  6086. + ;;
  6087. OSE68000 | ose68000)
  6088. basic_machine=m68000-ericsson
  6089. os=-ose
  6090. @@ -611,45 +762,59 @@
  6091. pbb)
  6092. basic_machine=m68k-tti
  6093. ;;
  6094. - pc532 | pc532-*)
  6095. + pc532 | pc532-*)
  6096. basic_machine=ns32k-pc532
  6097. ;;
  6098. - pentium | p5 | k5 | k6 | nexen)
  6099. + pentium | p5 | k5 | k6 | nexgen | viac3)
  6100. basic_machine=i586-pc
  6101. ;;
  6102. - pentiumpro | p6 | 6x86)
  6103. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  6104. basic_machine=i686-pc
  6105. ;;
  6106. pentiumii | pentium2)
  6107. - basic_machine=i786-pc
  6108. + basic_machine=i686-pc
  6109. ;;
  6110. - pentium-* | p5-* | k5-* | k6-* | nexen-*)
  6111. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  6112. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  6113. ;;
  6114. - pentiumpro-* | p6-* | 6x86-*)
  6115. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  6116. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  6117. ;;
  6118. pentiumii-* | pentium2-*)
  6119. - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  6120. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  6121. ;;
  6122. pn)
  6123. basic_machine=pn-gould
  6124. ;;
  6125. - power) basic_machine=rs6000-ibm
  6126. + power) basic_machine=power-ibm
  6127. ;;
  6128. ppc) basic_machine=powerpc-unknown
  6129. - ;;
  6130. + ;;
  6131. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  6132. ;;
  6133. ppcle | powerpclittle | ppc-le | powerpc-little)
  6134. basic_machine=powerpcle-unknown
  6135. - ;;
  6136. + ;;
  6137. ppcle-* | powerpclittle-*)
  6138. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  6139. ;;
  6140. + ppc64) basic_machine=powerpc64-unknown
  6141. + ;;
  6142. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  6143. + ;;
  6144. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  6145. + basic_machine=powerpc64le-unknown
  6146. + ;;
  6147. + ppc64le-* | powerpc64little-*)
  6148. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  6149. + ;;
  6150. ps2)
  6151. basic_machine=i386-ibm
  6152. ;;
  6153. + pw32)
  6154. + basic_machine=i586-unknown
  6155. + os=-pw32
  6156. + ;;
  6157. rom68k)
  6158. basic_machine=m68k-rom68k
  6159. os=-coff
  6160. @@ -660,10 +825,22 @@
  6161. rtpc | rtpc-*)
  6162. basic_machine=romp-ibm
  6163. ;;
  6164. + s390 | s390-*)
  6165. + basic_machine=s390-ibm
  6166. + ;;
  6167. + s390x | s390x-*)
  6168. + basic_machine=s390x-ibm
  6169. + ;;
  6170. sa29200)
  6171. basic_machine=a29k-amd
  6172. os=-udi
  6173. ;;
  6174. + sb1)
  6175. + basic_machine=mipsisa64sb1-unknown
  6176. + ;;
  6177. + sb1el)
  6178. + basic_machine=mipsisa64sb1el-unknown
  6179. + ;;
  6180. sequent)
  6181. basic_machine=i386-sequent
  6182. ;;
  6183. @@ -671,7 +848,7 @@
  6184. basic_machine=sh-hitachi
  6185. os=-hms
  6186. ;;
  6187. - sparclite-wrs)
  6188. + sparclite-wrs | simso-wrs)
  6189. basic_machine=sparclite-wrs
  6190. os=-vxworks
  6191. ;;
  6192. @@ -729,20 +906,48 @@
  6193. sun386 | sun386i | roadrunner)
  6194. basic_machine=i386-sun
  6195. ;;
  6196. + sv1)
  6197. + basic_machine=sv1-cray
  6198. + os=-unicos
  6199. + ;;
  6200. symmetry)
  6201. basic_machine=i386-sequent
  6202. os=-dynix
  6203. ;;
  6204. t3e)
  6205. - basic_machine=t3e-cray
  6206. + basic_machine=alphaev5-cray
  6207. os=-unicos
  6208. ;;
  6209. + t90)
  6210. + basic_machine=t90-cray
  6211. + os=-unicos
  6212. + ;;
  6213. + tic4x | c4x*)
  6214. + basic_machine=tic4x-unknown
  6215. + os=-coff
  6216. + ;;
  6217. + tic54x | c54x*)
  6218. + basic_machine=tic54x-unknown
  6219. + os=-coff
  6220. + ;;
  6221. + tic55x | c55x*)
  6222. + basic_machine=tic55x-unknown
  6223. + os=-coff
  6224. + ;;
  6225. + tic6x | c6x*)
  6226. + basic_machine=tic6x-unknown
  6227. + os=-coff
  6228. + ;;
  6229. tx39)
  6230. basic_machine=mipstx39-unknown
  6231. ;;
  6232. tx39el)
  6233. basic_machine=mipstx39el-unknown
  6234. ;;
  6235. + toad1)
  6236. + basic_machine=pdp10-xkl
  6237. + os=-tops20
  6238. + ;;
  6239. tower | tower-32)
  6240. basic_machine=m68k-ncr
  6241. ;;
  6242. @@ -767,8 +972,8 @@
  6243. os=-vms
  6244. ;;
  6245. vpp*|vx|vx-*)
  6246. - basic_machine=f301-fujitsu
  6247. - ;;
  6248. + basic_machine=f301-fujitsu
  6249. + ;;
  6250. vxworks960)
  6251. basic_machine=i960-wrs
  6252. os=-vxworks
  6253. @@ -789,13 +994,13 @@
  6254. basic_machine=hppa1.1-winbond
  6255. os=-proelf
  6256. ;;
  6257. - xmp)
  6258. - basic_machine=xmp-cray
  6259. - os=-unicos
  6260. - ;;
  6261. - xps | xps100)
  6262. + xps | xps100)
  6263. basic_machine=xps100-honeywell
  6264. ;;
  6265. + ymp)
  6266. + basic_machine=ymp-cray
  6267. + os=-unicos
  6268. + ;;
  6269. z8k-*-coff)
  6270. basic_machine=z8k-unknown
  6271. os=-sim
  6272. @@ -816,13 +1021,6 @@
  6273. op60c)
  6274. basic_machine=hppa1.1-oki
  6275. ;;
  6276. - mips)
  6277. - if [ x$os = x-linux-gnu ]; then
  6278. - basic_machine=mips-unknown
  6279. - else
  6280. - basic_machine=mips-mips
  6281. - fi
  6282. - ;;
  6283. romp)
  6284. basic_machine=romp-ibm
  6285. ;;
  6286. @@ -832,16 +1030,26 @@
  6287. vax)
  6288. basic_machine=vax-dec
  6289. ;;
  6290. + pdp10)
  6291. + # there are many clones, so DEC is not a safe bet
  6292. + basic_machine=pdp10-unknown
  6293. + ;;
  6294. pdp11)
  6295. basic_machine=pdp11-dec
  6296. ;;
  6297. we32k)
  6298. basic_machine=we32k-att
  6299. ;;
  6300. - sparc | sparcv9)
  6301. + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  6302. + basic_machine=sh-unknown
  6303. + ;;
  6304. + sh64)
  6305. + basic_machine=sh64-unknown
  6306. + ;;
  6307. + sparc | sparcv9 | sparcv9b)
  6308. basic_machine=sparc-sun
  6309. ;;
  6310. - cydra)
  6311. + cydra)
  6312. basic_machine=cydra-cydrome
  6313. ;;
  6314. orion)
  6315. @@ -856,9 +1064,8 @@
  6316. pmac | pmac-mpw)
  6317. basic_machine=powerpc-apple
  6318. ;;
  6319. - c4x*)
  6320. - basic_machine=c4x-none
  6321. - os=-coff
  6322. + *-unknown)
  6323. + # Make sure to match an already-canonicalized machine name.
  6324. ;;
  6325. *)
  6326. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  6327. @@ -916,14 +1123,34 @@
  6328. | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  6329. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  6330. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  6331. + | -chorusos* | -chorusrdb* \
  6332. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  6333. | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  6334. - | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
  6335. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  6336. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  6337. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  6338. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  6339. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  6340. + | -powermax* | -dnix*)
  6341. # Remember, each alternative MUST END IN *, to match a version number.
  6342. ;;
  6343. + -qnx*)
  6344. + case $basic_machine in
  6345. + x86-* | i*86-*)
  6346. + ;;
  6347. + *)
  6348. + os=-nto$os
  6349. + ;;
  6350. + esac
  6351. + ;;
  6352. + -nto-qnx*)
  6353. + ;;
  6354. + -nto*)
  6355. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  6356. + ;;
  6357. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  6358. | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  6359. - | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
  6360. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  6361. ;;
  6362. -mac*)
  6363. os=`echo $os | sed -e 's|mac|macos|'`
  6364. @@ -940,6 +1167,9 @@
  6365. -opened*)
  6366. os=-openedition
  6367. ;;
  6368. + -wince*)
  6369. + os=-wince
  6370. + ;;
  6371. -osfrose*)
  6372. os=-osfrose
  6373. ;;
  6374. @@ -955,14 +1185,23 @@
  6375. -acis*)
  6376. os=-aos
  6377. ;;
  6378. + -atheos*)
  6379. + os=-atheos
  6380. + ;;
  6381. -386bsd)
  6382. os=-bsd
  6383. ;;
  6384. -ctix* | -uts*)
  6385. os=-sysv
  6386. ;;
  6387. + -nova*)
  6388. + os=-rtmk-nova
  6389. + ;;
  6390. -ns2 )
  6391. - os=-nextstep2
  6392. + os=-nextstep2
  6393. + ;;
  6394. + -nsk*)
  6395. + os=-nsk
  6396. ;;
  6397. # Preserve the version number of sinix5.
  6398. -sinix5.*)
  6399. @@ -977,9 +1216,6 @@
  6400. -oss*)
  6401. os=-sysv3
  6402. ;;
  6403. - -qnx)
  6404. - os=-qnx4
  6405. - ;;
  6406. -svr4)
  6407. os=-sysv4
  6408. ;;
  6409. @@ -1001,8 +1237,14 @@
  6410. -xenix)
  6411. os=-xenix
  6412. ;;
  6413. - -*mint | -*MiNT)
  6414. - os=-mint
  6415. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  6416. + os=-mint
  6417. + ;;
  6418. + -aros*)
  6419. + os=-aros
  6420. + ;;
  6421. + -kaos*)
  6422. + os=-kaos
  6423. ;;
  6424. -none)
  6425. ;;
  6426. @@ -1035,7 +1277,11 @@
  6427. arm*-semi)
  6428. os=-aout
  6429. ;;
  6430. - pdp11-*)
  6431. + # This must come before the *-dec entry.
  6432. + pdp10-*)
  6433. + os=-tops20
  6434. + ;;
  6435. + pdp11-*)
  6436. os=-none
  6437. ;;
  6438. *-dec | vax-*)
  6439. @@ -1062,6 +1308,9 @@
  6440. mips*-*)
  6441. os=-elf
  6442. ;;
  6443. + or32-*)
  6444. + os=-coff
  6445. + ;;
  6446. *-tti) # must be before sparc entry or we get the wrong os.
  6447. os=-sysv3
  6448. ;;
  6449. @@ -1125,25 +1374,25 @@
  6450. *-next)
  6451. os=-nextstep3
  6452. ;;
  6453. - *-gould)
  6454. + *-gould)
  6455. os=-sysv
  6456. ;;
  6457. - *-highlevel)
  6458. + *-highlevel)
  6459. os=-bsd
  6460. ;;
  6461. *-encore)
  6462. os=-bsd
  6463. ;;
  6464. - *-sgi)
  6465. + *-sgi)
  6466. os=-irix
  6467. ;;
  6468. - *-siemens)
  6469. + *-siemens)
  6470. os=-sysv4
  6471. ;;
  6472. *-masscomp)
  6473. os=-rtu
  6474. ;;
  6475. - f301-fujitsu)
  6476. + f30[01]-fujitsu | f700-fujitsu)
  6477. os=-uxpv
  6478. ;;
  6479. *-rom68k)
  6480. @@ -1209,7 +1458,7 @@
  6481. -ptx*)
  6482. vendor=sequent
  6483. ;;
  6484. - -vxsim* | -vxworks*)
  6485. + -vxsim* | -vxworks* | -windiss*)
  6486. vendor=wrs
  6487. ;;
  6488. -aux*)
  6489. @@ -1221,12 +1470,23 @@
  6490. -mpw* | -macos*)
  6491. vendor=apple
  6492. ;;
  6493. - -*mint | -*MiNT)
  6494. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  6495. vendor=atari
  6496. ;;
  6497. + -vos*)
  6498. + vendor=stratus
  6499. + ;;
  6500. esac
  6501. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  6502. ;;
  6503. esac
  6504. echo $basic_machine$os
  6505. +exit 0
  6506. +
  6507. +# Local variables:
  6508. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  6509. +# time-stamp-start: "timestamp='"
  6510. +# time-stamp-format: "%:y-%02m-%02d"
  6511. +# time-stamp-end: "'"
  6512. +# End:
  6513. --- glib1.2-1.2.10.orig/configure
  6514. +++ glib1.2-1.2.10/configure
  6515. @@ -38,9 +38,170 @@
  6516. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  6517. ac_help="$ac_help
  6518. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  6519. +
  6520. +# Find the correct PATH separator. Usually this is `:', but
  6521. +# DJGPP uses `;' like DOS.
  6522. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  6523. + UNAME=${UNAME-`uname 2>/dev/null`}
  6524. + case X$UNAME in
  6525. + *-DOS) lt_cv_sys_path_separator=';' ;;
  6526. + *) lt_cv_sys_path_separator=':' ;;
  6527. + esac
  6528. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  6529. +fi
  6530. +
  6531. +
  6532. +# Check that we are running under the correct shell.
  6533. +SHELL=${CONFIG_SHELL-/bin/sh}
  6534. +
  6535. +case X$ECHO in
  6536. +X*--fallback-echo)
  6537. + # Remove one level of quotation (which was required for Make).
  6538. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  6539. + ;;
  6540. +esac
  6541. +
  6542. +echo=${ECHO-echo}
  6543. +if test "X$1" = X--no-reexec; then
  6544. + # Discard the --no-reexec flag, and continue.
  6545. + shift
  6546. +elif test "X$1" = X--fallback-echo; then
  6547. + # Avoid inline document here, it may be left over
  6548. + :
  6549. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  6550. + # Yippee, $echo works!
  6551. + :
  6552. +else
  6553. + # Restart under the correct shell.
  6554. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  6555. +fi
  6556. +
  6557. +if test "X$1" = X--fallback-echo; then
  6558. + # used as fallback echo
  6559. + shift
  6560. + cat <<EOF
  6561. +
  6562. +EOF
  6563. + exit 0
  6564. +fi
  6565. +
  6566. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  6567. +# if CDPATH is set.
  6568. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6569. +
  6570. +if test -z "$ECHO"; then
  6571. +if test "X${echo_test_string+set}" != Xset; then
  6572. +# find a string as large as possible, as long as the shell can cope with it
  6573. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  6574. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  6575. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  6576. + echo_test_string="`eval $cmd`" &&
  6577. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  6578. + then
  6579. + break
  6580. + fi
  6581. + done
  6582. +fi
  6583. +
  6584. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  6585. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  6586. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6587. + :
  6588. +else
  6589. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  6590. + # backslashes. This makes it impossible to quote backslashes using
  6591. + # echo "$something" | sed 's/\\/\\\\/g'
  6592. + #
  6593. + # So, first we look for a working echo in the user's PATH.
  6594. +
  6595. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6596. + for dir in $PATH /usr/ucb; do
  6597. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  6598. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  6599. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  6600. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6601. + echo="$dir/echo"
  6602. + break
  6603. + fi
  6604. + done
  6605. + IFS="$save_ifs"
  6606. +
  6607. + if test "X$echo" = Xecho; then
  6608. + # We didn't find a better echo, so look for alternatives.
  6609. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  6610. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  6611. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6612. + # This shell has a builtin print -r that does the trick.
  6613. + echo='print -r'
  6614. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  6615. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  6616. + # If we have ksh, try running configure again with it.
  6617. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  6618. + export ORIGINAL_CONFIG_SHELL
  6619. + CONFIG_SHELL=/bin/ksh
  6620. + export CONFIG_SHELL
  6621. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  6622. + else
  6623. + # Try using printf.
  6624. + echo='printf %s\n'
  6625. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  6626. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  6627. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6628. + # Cool, printf works
  6629. + :
  6630. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  6631. + test "X$echo_testing_string" = 'X\t' &&
  6632. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  6633. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6634. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  6635. + export CONFIG_SHELL
  6636. + SHELL="$CONFIG_SHELL"
  6637. + export SHELL
  6638. + echo="$CONFIG_SHELL $0 --fallback-echo"
  6639. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  6640. + test "X$echo_testing_string" = 'X\t' &&
  6641. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  6642. + test "X$echo_testing_string" = "X$echo_test_string"; then
  6643. + echo="$CONFIG_SHELL $0 --fallback-echo"
  6644. + else
  6645. + # maybe with a smaller string...
  6646. + prev=:
  6647. +
  6648. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  6649. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  6650. + then
  6651. + break
  6652. + fi
  6653. + prev="$cmd"
  6654. + done
  6655. +
  6656. + if test "$prev" != 'sed 50q "$0"'; then
  6657. + echo_test_string=`eval $prev`
  6658. + export echo_test_string
  6659. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  6660. + else
  6661. + # Oops. We lost completely, so just stick with echo.
  6662. + echo=echo
  6663. + fi
  6664. + fi
  6665. + fi
  6666. + fi
  6667. +fi
  6668. +fi
  6669. +
  6670. +# Copy echo and quote the copy suitably for passing to libtool from
  6671. +# the Makefile, instead of quoting the original, which is used later.
  6672. +ECHO=$echo
  6673. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  6674. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  6675. +fi
  6676. +
  6677. +
  6678. ac_help="$ac_help
  6679. --disable-libtool-lock avoid locking (might break parallel builds)"
  6680. ac_help="$ac_help
  6681. + --with-pic try to use only PIC/non-PIC objects [default=use both]"
  6682. +ac_help="$ac_help
  6683. --enable-maintainer-mode enable make rules and dependencies not useful
  6684. (and sometimes confusing) to the casual installer"
  6685. if test `expr $GLIB_MINOR_VERSION \% 2` = 1 ; then
  6686. @@ -618,6 +779,7 @@
  6687. ac_config_sub=$ac_aux_dir/config.sub
  6688. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  6689. +am__api_version="1.4"
  6690. # Find a good install program. We prefer a C program (faster),
  6691. # so one script is as good as another. But avoid the broken or
  6692. # incompatible versions:
  6693. @@ -630,7 +792,7 @@
  6694. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6695. # ./install, which can be erroneously created by make from ./install.sh.
  6696. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  6697. -echo "configure:634: checking for a BSD compatible install" >&5
  6698. +echo "configure:796: checking for a BSD compatible install" >&5
  6699. if test -z "$INSTALL"; then
  6700. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  6701. echo $ac_n "(cached) $ac_c" 1>&6
  6702. @@ -683,7 +845,7 @@
  6703. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6704. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  6705. -echo "configure:687: checking whether build environment is sane" >&5
  6706. +echo "configure:849: checking whether build environment is sane" >&5
  6707. # Just in case
  6708. sleep 1
  6709. echo timestamp > conftestfile
  6710. @@ -740,7 +902,7 @@
  6711. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  6712. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  6713. -echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
  6714. +echo "configure:906: checking whether ${MAKE-make} sets \${MAKE}" >&5
  6715. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  6716. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  6717. echo $ac_n "(cached) $ac_c" 1>&6
  6718. @@ -778,21 +940,21 @@
  6719. missing_dir=`cd $ac_aux_dir && pwd`
  6720. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  6721. -echo "configure:783: checking for working aclocal" >&5
  6722. +echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
  6723. +echo "configure:945: checking for working aclocal-${am__api_version}" >&5
  6724. # Run test in a subshell; some versions of sh will print an error if
  6725. # an executable is not found, even if stderr is redirected.
  6726. # Redirect stdin to placate older versions of autoconf. Sigh.
  6727. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  6728. - ACLOCAL=aclocal
  6729. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  6730. + ACLOCAL=aclocal-${am__api_version}
  6731. echo "$ac_t""found" 1>&6
  6732. else
  6733. - ACLOCAL="$missing_dir/missing aclocal"
  6734. + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  6735. echo "$ac_t""missing" 1>&6
  6736. fi
  6737. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  6738. -echo "configure:796: checking for working autoconf" >&5
  6739. +echo "configure:958: checking for working autoconf" >&5
  6740. # Run test in a subshell; some versions of sh will print an error if
  6741. # an executable is not found, even if stderr is redirected.
  6742. # Redirect stdin to placate older versions of autoconf. Sigh.
  6743. @@ -804,21 +966,21 @@
  6744. echo "$ac_t""missing" 1>&6
  6745. fi
  6746. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  6747. -echo "configure:809: checking for working automake" >&5
  6748. +echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
  6749. +echo "configure:971: checking for working automake-${am__api_version}" >&5
  6750. # Run test in a subshell; some versions of sh will print an error if
  6751. # an executable is not found, even if stderr is redirected.
  6752. # Redirect stdin to placate older versions of autoconf. Sigh.
  6753. -if (automake --version) < /dev/null > /dev/null 2>&1; then
  6754. - AUTOMAKE=automake
  6755. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  6756. + AUTOMAKE=automake-${am__api_version}
  6757. echo "$ac_t""found" 1>&6
  6758. else
  6759. - AUTOMAKE="$missing_dir/missing automake"
  6760. + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  6761. echo "$ac_t""missing" 1>&6
  6762. fi
  6763. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  6764. -echo "configure:822: checking for working autoheader" >&5
  6765. +echo "configure:984: checking for working autoheader" >&5
  6766. # Run test in a subshell; some versions of sh will print an error if
  6767. # an executable is not found, even if stderr is redirected.
  6768. # Redirect stdin to placate older versions of autoconf. Sigh.
  6769. @@ -831,7 +993,7 @@
  6770. fi
  6771. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  6772. -echo "configure:835: checking for working makeinfo" >&5
  6773. +echo "configure:997: checking for working makeinfo" >&5
  6774. # Run test in a subshell; some versions of sh will print an error if
  6775. # an executable is not found, even if stderr is redirected.
  6776. # Redirect stdin to placate older versions of autoconf. Sigh.
  6777. @@ -871,11 +1033,164 @@
  6778. EOF
  6779. +# Find the correct PATH separator. Usually this is `:', but
  6780. +# DJGPP uses `;' like DOS.
  6781. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  6782. + UNAME=${UNAME-`uname 2>/dev/null`}
  6783. + case X$UNAME in
  6784. + *-DOS) lt_cv_sys_path_separator=';' ;;
  6785. + *) lt_cv_sys_path_separator=':' ;;
  6786. + esac
  6787. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  6788. +fi
  6789. +
  6790. +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  6791. +echo "configure:1049: checking for Cygwin environment" >&5
  6792. +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  6793. + echo $ac_n "(cached) $ac_c" 1>&6
  6794. +else
  6795. + cat > conftest.$ac_ext <<EOF
  6796. +#line 1054 "configure"
  6797. +#include "confdefs.h"
  6798. +
  6799. +int main() {
  6800. +
  6801. +#ifndef __CYGWIN__
  6802. +#define __CYGWIN__ __CYGWIN32__
  6803. +#endif
  6804. +return __CYGWIN__;
  6805. +; return 0; }
  6806. +EOF
  6807. +if { (eval echo configure:1065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6808. + rm -rf conftest*
  6809. + ac_cv_cygwin=yes
  6810. +else
  6811. + echo "configure: failed program was:" >&5
  6812. + cat conftest.$ac_ext >&5
  6813. + rm -rf conftest*
  6814. + ac_cv_cygwin=no
  6815. +fi
  6816. +rm -f conftest*
  6817. +rm -f conftest*
  6818. +fi
  6819. +
  6820. +echo "$ac_t""$ac_cv_cygwin" 1>&6
  6821. +CYGWIN=
  6822. +test "$ac_cv_cygwin" = yes && CYGWIN=yes
  6823. +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  6824. +echo "configure:1082: checking for mingw32 environment" >&5
  6825. +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  6826. + echo $ac_n "(cached) $ac_c" 1>&6
  6827. +else
  6828. + cat > conftest.$ac_ext <<EOF
  6829. +#line 1087 "configure"
  6830. +#include "confdefs.h"
  6831. +
  6832. +int main() {
  6833. +return __MINGW32__;
  6834. +; return 0; }
  6835. +EOF
  6836. +if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6837. + rm -rf conftest*
  6838. + ac_cv_mingw32=yes
  6839. +else
  6840. + echo "configure: failed program was:" >&5
  6841. + cat conftest.$ac_ext >&5
  6842. + rm -rf conftest*
  6843. + ac_cv_mingw32=no
  6844. +fi
  6845. +rm -f conftest*
  6846. +rm -f conftest*
  6847. +fi
  6848. +
  6849. +echo "$ac_t""$ac_cv_mingw32" 1>&6
  6850. +MINGW32=
  6851. +test "$ac_cv_mingw32" = yes && MINGW32=yes
  6852. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  6853. +echo "configure:1111: checking how to run the C preprocessor" >&5
  6854. +# On Suns, sometimes $CPP names a directory.
  6855. +if test -n "$CPP" && test -d "$CPP"; then
  6856. + CPP=
  6857. +fi
  6858. +if test -z "$CPP"; then
  6859. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  6860. + echo $ac_n "(cached) $ac_c" 1>&6
  6861. +else
  6862. + # This must be in double quotes, not single quotes, because CPP may get
  6863. + # substituted into the Makefile and "${CC-cc}" will confuse make.
  6864. + CPP="${CC-cc} -E"
  6865. + # On the NeXT, cc -E runs the code through the compiler's parser,
  6866. + # not just through cpp.
  6867. + cat > conftest.$ac_ext <<EOF
  6868. +#line 1126 "configure"
  6869. +#include "confdefs.h"
  6870. +#include <assert.h>
  6871. +Syntax Error
  6872. +EOF
  6873. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6874. +{ (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6875. +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6876. +if test -z "$ac_err"; then
  6877. + :
  6878. +else
  6879. + echo "$ac_err" >&5
  6880. + echo "configure: failed program was:" >&5
  6881. + cat conftest.$ac_ext >&5
  6882. + rm -rf conftest*
  6883. + CPP="${CC-cc} -E -traditional-cpp"
  6884. + cat > conftest.$ac_ext <<EOF
  6885. +#line 1143 "configure"
  6886. +#include "confdefs.h"
  6887. +#include <assert.h>
  6888. +Syntax Error
  6889. +EOF
  6890. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6891. +{ (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6892. +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6893. +if test -z "$ac_err"; then
  6894. + :
  6895. +else
  6896. + echo "$ac_err" >&5
  6897. + echo "configure: failed program was:" >&5
  6898. + cat conftest.$ac_ext >&5
  6899. + rm -rf conftest*
  6900. + CPP="${CC-cc} -nologo -E"
  6901. + cat > conftest.$ac_ext <<EOF
  6902. +#line 1160 "configure"
  6903. +#include "confdefs.h"
  6904. +#include <assert.h>
  6905. +Syntax Error
  6906. +EOF
  6907. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6908. +{ (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6909. +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6910. +if test -z "$ac_err"; then
  6911. + :
  6912. +else
  6913. + echo "$ac_err" >&5
  6914. + echo "configure: failed program was:" >&5
  6915. + cat conftest.$ac_ext >&5
  6916. + rm -rf conftest*
  6917. + CPP=/lib/cpp
  6918. +fi
  6919. +rm -f conftest*
  6920. +fi
  6921. +rm -f conftest*
  6922. +fi
  6923. +rm -f conftest*
  6924. + ac_cv_prog_CPP="$CPP"
  6925. +fi
  6926. + CPP="$ac_cv_prog_CPP"
  6927. +else
  6928. + ac_cv_prog_CPP="$CPP"
  6929. +fi
  6930. +echo "$ac_t""$CPP" 1>&6
  6931. +
  6932. # Check whether --enable-shared or --disable-shared was given.
  6933. if test "${enable_shared+set}" = set; then
  6934. enableval="$enable_shared"
  6935. p=${PACKAGE-default}
  6936. -case "$enableval" in
  6937. +case $enableval in
  6938. yes) enable_shared=yes ;;
  6939. no) enable_shared=no ;;
  6940. *)
  6941. @@ -898,7 +1213,7 @@
  6942. if test "${enable_static+set}" = set; then
  6943. enableval="$enable_static"
  6944. p=${PACKAGE-default}
  6945. -case "$enableval" in
  6946. +case $enableval in
  6947. yes) enable_static=yes ;;
  6948. no) enable_static=no ;;
  6949. *)
  6950. @@ -921,7 +1236,7 @@
  6951. if test "${enable_fast_install+set}" = set; then
  6952. enableval="$enable_fast_install"
  6953. p=${PACKAGE-default}
  6954. -case "$enableval" in
  6955. +case $enableval in
  6956. yes) enable_fast_install=yes ;;
  6957. no) enable_fast_install=no ;;
  6958. *)
  6959. @@ -947,7 +1262,7 @@
  6960. fi
  6961. echo $ac_n "checking host system type""... $ac_c" 1>&6
  6962. -echo "configure:951: checking host system type" >&5
  6963. +echo "configure:1266: checking host system type" >&5
  6964. host_alias=$host
  6965. case "$host_alias" in
  6966. @@ -968,7 +1283,7 @@
  6967. echo "$ac_t""$host" 1>&6
  6968. echo $ac_n "checking build system type""... $ac_c" 1>&6
  6969. -echo "configure:972: checking build system type" >&5
  6970. +echo "configure:1287: checking build system type" >&5
  6971. build_alias=$build
  6972. case "$build_alias" in
  6973. @@ -985,40 +1300,10 @@
  6974. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  6975. echo "$ac_t""$build" 1>&6
  6976. -# Extract the first word of "ranlib", so it can be a program name with args.
  6977. -set dummy ranlib; ac_word=$2
  6978. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6979. -echo "configure:992: checking for $ac_word" >&5
  6980. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  6981. - echo $ac_n "(cached) $ac_c" 1>&6
  6982. -else
  6983. - if test -n "$RANLIB"; then
  6984. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6985. -else
  6986. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6987. - ac_dummy="$PATH"
  6988. - for ac_dir in $ac_dummy; do
  6989. - test -z "$ac_dir" && ac_dir=.
  6990. - if test -f $ac_dir/$ac_word; then
  6991. - ac_cv_prog_RANLIB="ranlib"
  6992. - break
  6993. - fi
  6994. - done
  6995. - IFS="$ac_save_ifs"
  6996. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  6997. -fi
  6998. -fi
  6999. -RANLIB="$ac_cv_prog_RANLIB"
  7000. -if test -n "$RANLIB"; then
  7001. - echo "$ac_t""$RANLIB" 1>&6
  7002. -else
  7003. - echo "$ac_t""no" 1>&6
  7004. -fi
  7005. -
  7006. # Extract the first word of "gcc", so it can be a program name with args.
  7007. set dummy gcc; ac_word=$2
  7008. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7009. -echo "configure:1022: checking for $ac_word" >&5
  7010. +echo "configure:1307: checking for $ac_word" >&5
  7011. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  7012. echo $ac_n "(cached) $ac_c" 1>&6
  7013. else
  7014. @@ -1048,7 +1333,7 @@
  7015. # Extract the first word of "cc", so it can be a program name with args.
  7016. set dummy cc; ac_word=$2
  7017. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7018. -echo "configure:1052: checking for $ac_word" >&5
  7019. +echo "configure:1337: checking for $ac_word" >&5
  7020. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  7021. echo $ac_n "(cached) $ac_c" 1>&6
  7022. else
  7023. @@ -1099,7 +1384,7 @@
  7024. # Extract the first word of "cl", so it can be a program name with args.
  7025. set dummy cl; ac_word=$2
  7026. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7027. -echo "configure:1103: checking for $ac_word" >&5
  7028. +echo "configure:1388: checking for $ac_word" >&5
  7029. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  7030. echo $ac_n "(cached) $ac_c" 1>&6
  7031. else
  7032. @@ -1131,7 +1416,7 @@
  7033. fi
  7034. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  7035. -echo "configure:1135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  7036. +echo "configure:1420: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  7037. ac_ext=c
  7038. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7039. @@ -1142,12 +1427,12 @@
  7040. cat > conftest.$ac_ext << EOF
  7041. -#line 1146 "configure"
  7042. +#line 1431 "configure"
  7043. #include "confdefs.h"
  7044. main(){return(0);}
  7045. EOF
  7046. -if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7047. +if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7048. ac_cv_prog_cc_works=yes
  7049. # If we can't run a trivial program, we are probably using a cross compiler.
  7050. if (./conftest; exit) 2>/dev/null; then
  7051. @@ -1173,12 +1458,12 @@
  7052. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  7053. fi
  7054. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  7055. -echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  7056. +echo "configure:1462: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  7057. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  7058. cross_compiling=$ac_cv_prog_cc_cross
  7059. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  7060. -echo "configure:1182: checking whether we are using GNU C" >&5
  7061. +echo "configure:1467: checking whether we are using GNU C" >&5
  7062. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  7063. echo $ac_n "(cached) $ac_c" 1>&6
  7064. else
  7065. @@ -1187,7 +1472,7 @@
  7066. yes;
  7067. #endif
  7068. EOF
  7069. -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
  7070. +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
  7071. ac_cv_prog_gcc=yes
  7072. else
  7073. ac_cv_prog_gcc=no
  7074. @@ -1206,7 +1491,7 @@
  7075. ac_save_CFLAGS="$CFLAGS"
  7076. CFLAGS=
  7077. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  7078. -echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
  7079. +echo "configure:1495: checking whether ${CC-cc} accepts -g" >&5
  7080. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  7081. echo $ac_n "(cached) $ac_c" 1>&6
  7082. else
  7083. @@ -1246,12 +1531,18 @@
  7084. fi
  7085. ac_prog=ld
  7086. -if test "$ac_cv_prog_gcc" = yes; then
  7087. +if test "$GCC" = yes; then
  7088. # Check if gcc -print-prog-name=ld gives a path.
  7089. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  7090. -echo "configure:1253: checking for ld used by GCC" >&5
  7091. - ac_prog=`($CC -print-prog-name=ld) 2>&5`
  7092. - case "$ac_prog" in
  7093. +echo "configure:1538: checking for ld used by GCC" >&5
  7094. + case $host in
  7095. + *-*-mingw*)
  7096. + # gcc leaves a trailing carriage return which upsets mingw
  7097. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7098. + *)
  7099. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7100. + esac
  7101. + case $ac_prog in
  7102. # Accept absolute paths.
  7103. [\\/]* | [A-Za-z]:[\\/]*)
  7104. re_direlt='/[^/][^/]*/\.\./'
  7105. @@ -1273,24 +1564,24 @@
  7106. esac
  7107. elif test "$with_gnu_ld" = yes; then
  7108. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  7109. -echo "configure:1277: checking for GNU ld" >&5
  7110. +echo "configure:1568: checking for GNU ld" >&5
  7111. else
  7112. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  7113. -echo "configure:1280: checking for non-GNU ld" >&5
  7114. +echo "configure:1571: checking for non-GNU ld" >&5
  7115. fi
  7116. -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  7117. +if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  7118. echo $ac_n "(cached) $ac_c" 1>&6
  7119. else
  7120. if test -z "$LD"; then
  7121. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7122. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7123. for ac_dir in $PATH; do
  7124. test -z "$ac_dir" && ac_dir=.
  7125. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7126. - ac_cv_path_LD="$ac_dir/$ac_prog"
  7127. + lt_cv_path_LD="$ac_dir/$ac_prog"
  7128. # Check to see if the program is GNU ld. I'd rather use --version,
  7129. # but apparently some GNU ld's only accept -v.
  7130. # Break only if it was the GNU/non-GNU ld that we prefer.
  7131. - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7132. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7133. test "$with_gnu_ld" != no && break
  7134. else
  7135. test "$with_gnu_ld" != yes && break
  7136. @@ -1299,11 +1590,11 @@
  7137. done
  7138. IFS="$ac_save_ifs"
  7139. else
  7140. - ac_cv_path_LD="$LD" # Let the user override the test with a path.
  7141. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7142. fi
  7143. fi
  7144. -LD="$ac_cv_path_LD"
  7145. +LD="$lt_cv_path_LD"
  7146. if test -n "$LD"; then
  7147. echo "$ac_t""$LD" 1>&6
  7148. else
  7149. @@ -1311,245 +1602,3880 @@
  7150. fi
  7151. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  7152. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  7153. -echo "configure:1315: checking if the linker ($LD) is GNU ld" >&5
  7154. -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  7155. +echo "configure:1606: checking if the linker ($LD) is GNU ld" >&5
  7156. +if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  7157. echo $ac_n "(cached) $ac_c" 1>&6
  7158. else
  7159. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7160. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7161. - ac_cv_prog_gnu_ld=yes
  7162. + lt_cv_prog_gnu_ld=yes
  7163. else
  7164. - ac_cv_prog_gnu_ld=no
  7165. + lt_cv_prog_gnu_ld=no
  7166. fi
  7167. fi
  7168. -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  7169. +echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  7170. +with_gnu_ld=$lt_cv_prog_gnu_ld
  7171. +
  7172. +
  7173. +echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  7174. +echo "configure:1623: checking for $LD option to reload object files" >&5
  7175. +if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  7176. + echo $ac_n "(cached) $ac_c" 1>&6
  7177. +else
  7178. + lt_cv_ld_reload_flag='-r'
  7179. +fi
  7180. +echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  7181. +reload_flag=$lt_cv_ld_reload_flag
  7182. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  7183. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  7184. -echo "configure:1331: checking for BSD-compatible nm" >&5
  7185. -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  7186. +echo "configure:1635: checking for BSD-compatible nm" >&5
  7187. +if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  7188. echo $ac_n "(cached) $ac_c" 1>&6
  7189. else
  7190. if test -n "$NM"; then
  7191. # Let the user override the test.
  7192. - ac_cv_path_NM="$NM"
  7193. + lt_cv_path_NM="$NM"
  7194. else
  7195. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7196. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7197. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  7198. test -z "$ac_dir" && ac_dir=.
  7199. - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  7200. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  7201. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  7202. # Check to see if the nm accepts a BSD-compat flag.
  7203. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7204. # nm: unknown option "B" ignored
  7205. - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  7206. - ac_cv_path_NM="$ac_dir/nm -B"
  7207. + # Tru64's nm complains that /dev/null is an invalid object file
  7208. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  7209. + lt_cv_path_NM="$tmp_nm -B"
  7210. break
  7211. - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  7212. - ac_cv_path_NM="$ac_dir/nm -p"
  7213. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  7214. + lt_cv_path_NM="$tmp_nm -p"
  7215. break
  7216. else
  7217. - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  7218. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7219. continue # so that we can try to find one that supports BSD flags
  7220. fi
  7221. fi
  7222. done
  7223. IFS="$ac_save_ifs"
  7224. - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  7225. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  7226. +fi
  7227. +fi
  7228. +
  7229. +NM="$lt_cv_path_NM"
  7230. +echo "$ac_t""$NM" 1>&6
  7231. +
  7232. +echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
  7233. +echo "configure:1673: checking for a sed that does not truncate output" >&5
  7234. +if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
  7235. + echo $ac_n "(cached) $ac_c" 1>&6
  7236. +else
  7237. + # Loop through the user's path and test for sed and gsed.
  7238. +# Then use that list of sed's as ones to test for truncation.
  7239. +as_executable_p="test -f"
  7240. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7241. +for as_dir in $PATH
  7242. +do
  7243. + IFS=$as_save_IFS
  7244. + test -z "$as_dir" && as_dir=.
  7245. + for ac_prog in sed gsed; do
  7246. + for ac_exec_ext in '' $ac_executable_extensions; do
  7247. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  7248. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  7249. + fi
  7250. + done
  7251. + done
  7252. +done
  7253. +
  7254. + # Create a temporary directory, and hook for its removal unless debugging.
  7255. +$debug ||
  7256. +{
  7257. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  7258. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  7259. +}
  7260. +
  7261. +# Create a (secure) tmp directory for tmp files.
  7262. +: ${TMPDIR=/tmp}
  7263. +{
  7264. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  7265. + test -n "$tmp" && test -d "$tmp"
  7266. +} ||
  7267. +{
  7268. + tmp=$TMPDIR/sed$$-$RANDOM
  7269. + (umask 077 && mkdir $tmp)
  7270. +} ||
  7271. +{
  7272. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  7273. + { (exit 1); exit 1; }
  7274. +}
  7275. + _max=0
  7276. + _count=0
  7277. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7278. + # along with /bin/sed that truncates output.
  7279. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  7280. + test ! -f ${_sed} && break
  7281. + cat /dev/null > "$tmp/sed.in"
  7282. + _count=0
  7283. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  7284. + # Check for GNU sed and select it if it is found.
  7285. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  7286. + lt_cv_path_SED=${_sed}
  7287. + break
  7288. + fi
  7289. + while true; do
  7290. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  7291. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  7292. + cp "$tmp/sed.in" "$tmp/sed.nl"
  7293. + echo >>"$tmp/sed.nl"
  7294. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  7295. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  7296. + # 40000 chars as input seems more than enough
  7297. + test $_count -gt 10 && break
  7298. + _count=`expr $_count + 1`
  7299. + if test $_count -gt $_max; then
  7300. + _max=$_count
  7301. + lt_cv_path_SED=$_sed
  7302. + fi
  7303. + done
  7304. + done
  7305. + rm -rf "$tmp"
  7306. +
  7307. +fi
  7308. +
  7309. +if test "X$SED" != "X"; then
  7310. + lt_cv_path_SED=$SED
  7311. +else
  7312. + SED=$lt_cv_path_SED
  7313. +fi
  7314. +echo "$ac_t""$SED" 1>&6
  7315. +
  7316. +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  7317. +echo "configure:1757: checking whether ln -s works" >&5
  7318. +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  7319. + echo $ac_n "(cached) $ac_c" 1>&6
  7320. +else
  7321. + rm -f conftestdata
  7322. +if ln -s X conftestdata 2>/dev/null
  7323. +then
  7324. + rm -f conftestdata
  7325. + ac_cv_prog_LN_S="ln -s"
  7326. +else
  7327. + ac_cv_prog_LN_S=ln
  7328. fi
  7329. fi
  7330. +LN_S="$ac_cv_prog_LN_S"
  7331. +if test "$ac_cv_prog_LN_S" = "ln -s"; then
  7332. + echo "$ac_t""yes" 1>&6
  7333. +else
  7334. + echo "$ac_t""no" 1>&6
  7335. +fi
  7336. +
  7337. +echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
  7338. +echo "configure:1778: checking how to recognise dependent libraries" >&5
  7339. +if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  7340. + echo $ac_n "(cached) $ac_c" 1>&6
  7341. +else
  7342. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  7343. +lt_cv_file_magic_test_file=
  7344. +lt_cv_deplibs_check_method='unknown'
  7345. +# Need to set the preceding variable on all platforms that support
  7346. +# interlibrary dependencies.
  7347. +# 'none' -- dependencies not supported.
  7348. +# `unknown' -- same as none, but documents that we really don't know.
  7349. +# 'pass_all' -- all dependencies passed with no checks.
  7350. +# 'test_compile' -- check by making test program.
  7351. +# 'file_magic [[regex]]' -- check by looking for files in library path
  7352. +# which responds to the $file_magic_cmd with a given egrep regex.
  7353. +# If you have `file' or equivalent on your system and you're not sure
  7354. +# whether `pass_all' will *always* work, you probably want this one.
  7355. +
  7356. +case $host_os in
  7357. +aix4* | aix5*)
  7358. + lt_cv_deplibs_check_method=pass_all
  7359. + ;;
  7360. +
  7361. +beos*)
  7362. + lt_cv_deplibs_check_method=pass_all
  7363. + ;;
  7364. +
  7365. +bsdi4*)
  7366. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7367. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  7368. + lt_cv_file_magic_test_file=/shlib/libc.so
  7369. + ;;
  7370. +
  7371. +cygwin* | mingw* | pw32*)
  7372. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7373. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  7374. + ;;
  7375. +
  7376. +darwin* | rhapsody*)
  7377. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  7378. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  7379. + case "$host_os" in
  7380. + rhapsody* | darwin1.[012])
  7381. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  7382. + ;;
  7383. + *) # Darwin 1.3 on
  7384. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  7385. + ;;
  7386. + esac
  7387. + ;;
  7388. +
  7389. +freebsd*)
  7390. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7391. + case $host_cpu in
  7392. + i*86 )
  7393. + # Not sure whether the presence of OpenBSD here was a mistake.
  7394. + # Let's accept both of them until this is cleared up.
  7395. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  7396. + lt_cv_file_magic_cmd=/usr/bin/file
  7397. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7398. + ;;
  7399. + esac
  7400. + else
  7401. + lt_cv_deplibs_check_method=pass_all
  7402. + fi
  7403. + ;;
  7404. +
  7405. +gnu*)
  7406. + lt_cv_deplibs_check_method=pass_all
  7407. + ;;
  7408. +
  7409. +hpux10.20*|hpux11*)
  7410. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  7411. + lt_cv_file_magic_cmd=/usr/bin/file
  7412. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7413. + ;;
  7414. +
  7415. +irix5* | irix6* | nonstopux*)
  7416. + case $host_os in
  7417. + irix5* | nonstopux*)
  7418. + # this will be overridden with pass_all, but let us keep it just in case
  7419. + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  7420. + ;;
  7421. + *)
  7422. + case $LD in
  7423. + *-32|*"-32 ") libmagic=32-bit;;
  7424. + *-n32|*"-n32 ") libmagic=N32;;
  7425. + *-64|*"-64 ") libmagic=64-bit;;
  7426. + *) libmagic=never-match;;
  7427. + esac
  7428. + # this will be overridden with pass_all, but let us keep it just in case
  7429. + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  7430. + ;;
  7431. + esac
  7432. + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  7433. + lt_cv_deplibs_check_method=pass_all
  7434. + ;;
  7435. +
  7436. +# This must be Linux ELF.
  7437. +linux-gnu*)
  7438. + case $host_cpu in
  7439. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
  7440. + lt_cv_deplibs_check_method=pass_all ;;
  7441. + *)
  7442. + # glibc up to 2.1.1 does not perform some relocations on ARM
  7443. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  7444. + esac
  7445. + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  7446. + ;;
  7447. +
  7448. +netbsd*)
  7449. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7450. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  7451. + else
  7452. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  7453. + fi
  7454. + ;;
  7455. +
  7456. +newos6*)
  7457. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7458. + lt_cv_file_magic_cmd=/usr/bin/file
  7459. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7460. + ;;
  7461. +
  7462. +openbsd*)
  7463. + lt_cv_file_magic_cmd=/usr/bin/file
  7464. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7465. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7466. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  7467. + else
  7468. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  7469. + fi
  7470. + ;;
  7471. +
  7472. +osf3* | osf4* | osf5*)
  7473. + # this will be overridden with pass_all, but let us keep it just in case
  7474. + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  7475. + lt_cv_file_magic_test_file=/shlib/libc.so
  7476. + lt_cv_deplibs_check_method=pass_all
  7477. + ;;
  7478. +
  7479. +sco3.2v5*)
  7480. + lt_cv_deplibs_check_method=pass_all
  7481. + ;;
  7482. +
  7483. +solaris*)
  7484. + lt_cv_deplibs_check_method=pass_all
  7485. + lt_cv_file_magic_test_file=/lib/libc.so
  7486. + ;;
  7487. +
  7488. +sysv5uw[78]* | sysv4*uw2*)
  7489. + lt_cv_deplibs_check_method=pass_all
  7490. + ;;
  7491. +
  7492. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7493. + case $host_vendor in
  7494. + motorola)
  7495. + 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]'
  7496. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7497. + ;;
  7498. + ncr)
  7499. + lt_cv_deplibs_check_method=pass_all
  7500. + ;;
  7501. + sequent)
  7502. + lt_cv_file_magic_cmd='/bin/file'
  7503. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7504. + ;;
  7505. + sni)
  7506. + lt_cv_file_magic_cmd='/bin/file'
  7507. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7508. + lt_cv_file_magic_test_file=/lib/libc.so
  7509. + ;;
  7510. + siemens)
  7511. + lt_cv_deplibs_check_method=pass_all
  7512. + ;;
  7513. + esac
  7514. + ;;
  7515. +esac
  7516. +
  7517. +fi
  7518. +
  7519. +echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  7520. +file_magic_cmd=$lt_cv_file_magic_cmd
  7521. +deplibs_check_method=$lt_cv_deplibs_check_method
  7522. +
  7523. +echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  7524. +echo "configure:1964: checking for object suffix" >&5
  7525. +if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  7526. + echo $ac_n "(cached) $ac_c" 1>&6
  7527. +else
  7528. + rm -f conftest*
  7529. +echo 'int i = 1;' > conftest.$ac_ext
  7530. +if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7531. + for ac_file in conftest.*; do
  7532. + case $ac_file in
  7533. + *.c) ;;
  7534. + *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  7535. + esac
  7536. + done
  7537. +else
  7538. + { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  7539. +fi
  7540. +rm -f conftest*
  7541. +fi
  7542. +
  7543. +echo "$ac_t""$ac_cv_objext" 1>&6
  7544. +OBJEXT=$ac_cv_objext
  7545. +ac_objext=$ac_cv_objext
  7546. +
  7547. +
  7548. +
  7549. +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  7550. +echo "configure:1990: checking for executable suffix" >&5
  7551. +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  7552. + echo $ac_n "(cached) $ac_c" 1>&6
  7553. +else
  7554. + if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  7555. + ac_cv_exeext=.exe
  7556. +else
  7557. + rm -f conftest*
  7558. + echo 'int main () { return 0; }' > conftest.$ac_ext
  7559. + ac_cv_exeext=
  7560. + if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7561. + for file in conftest.*; do
  7562. + case $file in
  7563. + *.$ac_ext | *.c | *.o | *.obj) ;;
  7564. + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  7565. + esac
  7566. + done
  7567. + else
  7568. + { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  7569. + fi
  7570. + rm -f conftest*
  7571. + test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  7572. +fi
  7573. +fi
  7574. +
  7575. +EXEEXT=""
  7576. +test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  7577. +echo "$ac_t""${ac_cv_exeext}" 1>&6
  7578. +ac_exeext=$EXEEXT
  7579. +
  7580. +if test $host != $build; then
  7581. + ac_tool_prefix=${host_alias}-
  7582. +else
  7583. + ac_tool_prefix=
  7584. +fi
  7585. +
  7586. +
  7587. +
  7588. +
  7589. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  7590. +echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  7591. +echo "configure:2031: checking command to parse $NM output" >&5
  7592. +if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  7593. + echo $ac_n "(cached) $ac_c" 1>&6
  7594. +else
  7595. +
  7596. +# These are sane defaults that work on at least a few old systems.
  7597. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7598. +
  7599. +# Character class describing NM global symbol codes.
  7600. +symcode='[BCDEGRST]'
  7601. +
  7602. +# Regexp to match symbols that can be accessed directly from C.
  7603. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7604. +
  7605. +# Transform the above into a raw symbol and a C symbol.
  7606. +symxfrm='\1 \2\3 \3'
  7607. +
  7608. +# Transform an extracted symbol line into a proper C declaration
  7609. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  7610. +
  7611. +# Transform an extracted symbol line into symbol name and symbol address
  7612. +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'"
  7613. +
  7614. +# Define system-specific variables.
  7615. +case $host_os in
  7616. +aix*)
  7617. + symcode='[BCDT]'
  7618. + ;;
  7619. +cygwin* | mingw* | pw32*)
  7620. + symcode='[ABCDGISTW]'
  7621. + ;;
  7622. +hpux*) # Its linker distinguishes data from code symbols
  7623. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7624. + 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'"
  7625. + ;;
  7626. +irix* | nonstopux*)
  7627. + symcode='[BCDEGRST]'
  7628. + ;;
  7629. +osf*)
  7630. + symcode='[BCDEGQRST]'
  7631. + ;;
  7632. +solaris* | sysv5*)
  7633. + symcode='[BDT]'
  7634. + ;;
  7635. +sysv4)
  7636. + symcode='[DFNSTU]'
  7637. + ;;
  7638. +esac
  7639. +
  7640. +# Handle CRLF in mingw tool chain
  7641. +opt_cr=
  7642. +case $host_os in
  7643. +mingw*)
  7644. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7645. + ;;
  7646. +esac
  7647. +
  7648. +# If we're using GNU nm, then use its standard symbol codes.
  7649. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  7650. + symcode='[ABCDGISTW]'
  7651. +fi
  7652. +
  7653. +# Try without a prefix undercore, then with it.
  7654. +for ac_symprfx in "" "_"; do
  7655. +
  7656. + # Write the raw and C identifiers.
  7657. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  7658. +
  7659. + # Check to see that the pipe works correctly.
  7660. + pipe_works=no
  7661. + rm -f conftest*
  7662. + cat > conftest.$ac_ext <<EOF
  7663. +#ifdef __cplusplus
  7664. +extern "C" {
  7665. +#endif
  7666. +char nm_test_var;
  7667. +void nm_test_func(){}
  7668. +#ifdef __cplusplus
  7669. +}
  7670. +#endif
  7671. +int main(){nm_test_var='a';nm_test_func();return(0);}
  7672. +EOF
  7673. +
  7674. + if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7675. + # Now try to grab the symbols.
  7676. + nlist=conftest.nm
  7677. + 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
  7678. + # Try sorting and uniquifying the output.
  7679. + if sort "$nlist" | uniq > "$nlist"T; then
  7680. + mv -f "$nlist"T "$nlist"
  7681. + else
  7682. + rm -f "$nlist"T
  7683. + fi
  7684. +
  7685. + # Make sure that we snagged all the symbols we need.
  7686. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  7687. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  7688. + cat <<EOF > conftest.$ac_ext
  7689. +#ifdef __cplusplus
  7690. +extern "C" {
  7691. +#endif
  7692. +
  7693. +EOF
  7694. + # Now generate the symbol file.
  7695. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  7696. +
  7697. + cat <<EOF >> conftest.$ac_ext
  7698. +#if defined (__STDC__) && __STDC__
  7699. +# define lt_ptr void *
  7700. +#else
  7701. +# define lt_ptr char *
  7702. +# define const
  7703. +#endif
  7704. +
  7705. +/* The mapping between symbol names and symbols. */
  7706. +const struct {
  7707. + const char *name;
  7708. + lt_ptr address;
  7709. +}
  7710. +lt_preloaded_symbols[] =
  7711. +{
  7712. +EOF
  7713. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  7714. + cat <<\EOF >> conftest.$ac_ext
  7715. + {0, (lt_ptr) 0}
  7716. +};
  7717. +
  7718. +#ifdef __cplusplus
  7719. +}
  7720. +#endif
  7721. +EOF
  7722. + # Now try linking the two files.
  7723. + mv conftest.$ac_objext conftstm.$ac_objext
  7724. + save_LIBS="$LIBS"
  7725. + save_CFLAGS="$CFLAGS"
  7726. + LIBS="conftstm.$ac_objext"
  7727. + CFLAGS="$CFLAGS$no_builtin_flag"
  7728. + if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  7729. + pipe_works=yes
  7730. + fi
  7731. + LIBS="$save_LIBS"
  7732. + CFLAGS="$save_CFLAGS"
  7733. + else
  7734. + echo "cannot find nm_test_func in $nlist" >&5
  7735. + fi
  7736. + else
  7737. + echo "cannot find nm_test_var in $nlist" >&5
  7738. + fi
  7739. + else
  7740. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7741. + fi
  7742. + else
  7743. + echo "$progname: failed program was:" >&5
  7744. + cat conftest.$ac_ext >&5
  7745. + fi
  7746. + rm -f conftest* conftst*
  7747. +
  7748. + # Do not use the global_symbol_pipe unless it works.
  7749. + if test "$pipe_works" = yes; then
  7750. + break
  7751. + else
  7752. + lt_cv_sys_global_symbol_pipe=
  7753. + fi
  7754. +done
  7755. +
  7756. +fi
  7757. +
  7758. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  7759. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7760. + global_symbol_to_cdecl=
  7761. + global_symbol_to_c_name_address=
  7762. +else
  7763. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  7764. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  7765. +fi
  7766. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  7767. +then
  7768. + echo "$ac_t""failed" 1>&6
  7769. +else
  7770. + echo "$ac_t""ok" 1>&6
  7771. +fi
  7772. +
  7773. +for ac_hdr in dlfcn.h
  7774. +do
  7775. +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7776. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7777. +echo "configure:2217: checking for $ac_hdr" >&5
  7778. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7779. + echo $ac_n "(cached) $ac_c" 1>&6
  7780. +else
  7781. + cat > conftest.$ac_ext <<EOF
  7782. +#line 2222 "configure"
  7783. +#include "confdefs.h"
  7784. +#include <$ac_hdr>
  7785. +EOF
  7786. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7787. +{ (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7788. +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7789. +if test -z "$ac_err"; then
  7790. + rm -rf conftest*
  7791. + eval "ac_cv_header_$ac_safe=yes"
  7792. +else
  7793. + echo "$ac_err" >&5
  7794. + echo "configure: failed program was:" >&5
  7795. + cat conftest.$ac_ext >&5
  7796. + rm -rf conftest*
  7797. + eval "ac_cv_header_$ac_safe=no"
  7798. +fi
  7799. +rm -f conftest*
  7800. +fi
  7801. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7802. + echo "$ac_t""yes" 1>&6
  7803. + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7804. + cat >> confdefs.h <<EOF
  7805. +#define $ac_tr_hdr 1
  7806. +EOF
  7807. +
  7808. +else
  7809. + echo "$ac_t""no" 1>&6
  7810. +fi
  7811. +done
  7812. +
  7813. +
  7814. +
  7815. +
  7816. +
  7817. +
  7818. +# Only perform the check for file, if the check method requires it
  7819. +case $deplibs_check_method in
  7820. +file_magic*)
  7821. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7822. + echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  7823. +echo "configure:2263: checking for ${ac_tool_prefix}file" >&5
  7824. +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  7825. + echo $ac_n "(cached) $ac_c" 1>&6
  7826. +else
  7827. + case $MAGIC_CMD in
  7828. + /*)
  7829. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7830. + ;;
  7831. + ?:/*)
  7832. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7833. + ;;
  7834. + *)
  7835. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  7836. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7837. + ac_dummy="/usr/bin:$PATH"
  7838. + for ac_dir in $ac_dummy; do
  7839. + test -z "$ac_dir" && ac_dir=.
  7840. + if test -f $ac_dir/${ac_tool_prefix}file; then
  7841. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7842. + if test -n "$file_magic_test_file"; then
  7843. + case $deplibs_check_method in
  7844. + "file_magic "*)
  7845. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7846. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7847. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7848. + egrep "$file_magic_regex" > /dev/null; then
  7849. + :
  7850. + else
  7851. + cat <<EOF 1>&2
  7852. +
  7853. +*** Warning: the command libtool uses to detect shared libraries,
  7854. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  7855. +*** The result is that libtool may fail to recognize shared libraries
  7856. +*** as such. This will affect the creation of libtool libraries that
  7857. +*** depend on shared libraries, but programs linked with such libtool
  7858. +*** libraries will work regardless of this problem. Nevertheless, you
  7859. +*** may want to report the problem to your system manager and/or to
  7860. +*** bug-libtool@gnu.org
  7861. +
  7862. +EOF
  7863. + fi ;;
  7864. + esac
  7865. + fi
  7866. + break
  7867. + fi
  7868. + done
  7869. + IFS="$ac_save_ifs"
  7870. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  7871. + ;;
  7872. +esac
  7873. +fi
  7874. +
  7875. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7876. +if test -n "$MAGIC_CMD"; then
  7877. + echo "$ac_t""$MAGIC_CMD" 1>&6
  7878. +else
  7879. + echo "$ac_t""no" 1>&6
  7880. +fi
  7881. +
  7882. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  7883. + if test -n "$ac_tool_prefix"; then
  7884. + echo $ac_n "checking for file""... $ac_c" 1>&6
  7885. +echo "configure:2325: checking for file" >&5
  7886. +if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  7887. + echo $ac_n "(cached) $ac_c" 1>&6
  7888. +else
  7889. + case $MAGIC_CMD in
  7890. + /*)
  7891. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7892. + ;;
  7893. + ?:/*)
  7894. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7895. + ;;
  7896. + *)
  7897. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  7898. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7899. + ac_dummy="/usr/bin:$PATH"
  7900. + for ac_dir in $ac_dummy; do
  7901. + test -z "$ac_dir" && ac_dir=.
  7902. + if test -f $ac_dir/file; then
  7903. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7904. + if test -n "$file_magic_test_file"; then
  7905. + case $deplibs_check_method in
  7906. + "file_magic "*)
  7907. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7908. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7909. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7910. + egrep "$file_magic_regex" > /dev/null; then
  7911. + :
  7912. + else
  7913. + cat <<EOF 1>&2
  7914. +
  7915. +*** Warning: the command libtool uses to detect shared libraries,
  7916. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  7917. +*** The result is that libtool may fail to recognize shared libraries
  7918. +*** as such. This will affect the creation of libtool libraries that
  7919. +*** depend on shared libraries, but programs linked with such libtool
  7920. +*** libraries will work regardless of this problem. Nevertheless, you
  7921. +*** may want to report the problem to your system manager and/or to
  7922. +*** bug-libtool@gnu.org
  7923. +
  7924. +EOF
  7925. + fi ;;
  7926. + esac
  7927. + fi
  7928. + break
  7929. + fi
  7930. + done
  7931. + IFS="$ac_save_ifs"
  7932. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  7933. + ;;
  7934. +esac
  7935. +fi
  7936. +
  7937. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7938. +if test -n "$MAGIC_CMD"; then
  7939. + echo "$ac_t""$MAGIC_CMD" 1>&6
  7940. +else
  7941. + echo "$ac_t""no" 1>&6
  7942. +fi
  7943. +
  7944. + else
  7945. + MAGIC_CMD=:
  7946. + fi
  7947. +fi
  7948. +
  7949. + fi
  7950. + ;;
  7951. +esac
  7952. +
  7953. +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7954. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7955. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7956. +echo "configure:2396: checking for $ac_word" >&5
  7957. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  7958. + echo $ac_n "(cached) $ac_c" 1>&6
  7959. +else
  7960. + if test -n "$RANLIB"; then
  7961. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7962. +else
  7963. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7964. + ac_dummy="$PATH"
  7965. + for ac_dir in $ac_dummy; do
  7966. + test -z "$ac_dir" && ac_dir=.
  7967. + if test -f $ac_dir/$ac_word; then
  7968. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7969. + break
  7970. + fi
  7971. + done
  7972. + IFS="$ac_save_ifs"
  7973. +fi
  7974. +fi
  7975. +RANLIB="$ac_cv_prog_RANLIB"
  7976. +if test -n "$RANLIB"; then
  7977. + echo "$ac_t""$RANLIB" 1>&6
  7978. +else
  7979. + echo "$ac_t""no" 1>&6
  7980. +fi
  7981. +
  7982. +
  7983. +if test -z "$ac_cv_prog_RANLIB"; then
  7984. +if test -n "$ac_tool_prefix"; then
  7985. + # Extract the first word of "ranlib", so it can be a program name with args.
  7986. +set dummy ranlib; ac_word=$2
  7987. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  7988. +echo "configure:2428: checking for $ac_word" >&5
  7989. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  7990. + echo $ac_n "(cached) $ac_c" 1>&6
  7991. +else
  7992. + if test -n "$RANLIB"; then
  7993. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7994. +else
  7995. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7996. + ac_dummy="$PATH"
  7997. + for ac_dir in $ac_dummy; do
  7998. + test -z "$ac_dir" && ac_dir=.
  7999. + if test -f $ac_dir/$ac_word; then
  8000. + ac_cv_prog_RANLIB="ranlib"
  8001. + break
  8002. + fi
  8003. + done
  8004. + IFS="$ac_save_ifs"
  8005. + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  8006. +fi
  8007. +fi
  8008. +RANLIB="$ac_cv_prog_RANLIB"
  8009. +if test -n "$RANLIB"; then
  8010. + echo "$ac_t""$RANLIB" 1>&6
  8011. +else
  8012. + echo "$ac_t""no" 1>&6
  8013. +fi
  8014. +
  8015. +else
  8016. + RANLIB=":"
  8017. +fi
  8018. +fi
  8019. +
  8020. +# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8021. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  8022. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8023. +echo "configure:2463: checking for $ac_word" >&5
  8024. +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8025. + echo $ac_n "(cached) $ac_c" 1>&6
  8026. +else
  8027. + if test -n "$STRIP"; then
  8028. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8029. +else
  8030. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8031. + ac_dummy="$PATH"
  8032. + for ac_dir in $ac_dummy; do
  8033. + test -z "$ac_dir" && ac_dir=.
  8034. + if test -f $ac_dir/$ac_word; then
  8035. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8036. + break
  8037. + fi
  8038. + done
  8039. + IFS="$ac_save_ifs"
  8040. +fi
  8041. +fi
  8042. +STRIP="$ac_cv_prog_STRIP"
  8043. +if test -n "$STRIP"; then
  8044. + echo "$ac_t""$STRIP" 1>&6
  8045. +else
  8046. + echo "$ac_t""no" 1>&6
  8047. +fi
  8048. +
  8049. +
  8050. +if test -z "$ac_cv_prog_STRIP"; then
  8051. +if test -n "$ac_tool_prefix"; then
  8052. + # Extract the first word of "strip", so it can be a program name with args.
  8053. +set dummy strip; ac_word=$2
  8054. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8055. +echo "configure:2495: checking for $ac_word" >&5
  8056. +if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8057. + echo $ac_n "(cached) $ac_c" 1>&6
  8058. +else
  8059. + if test -n "$STRIP"; then
  8060. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8061. +else
  8062. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8063. + ac_dummy="$PATH"
  8064. + for ac_dir in $ac_dummy; do
  8065. + test -z "$ac_dir" && ac_dir=.
  8066. + if test -f $ac_dir/$ac_word; then
  8067. + ac_cv_prog_STRIP="strip"
  8068. + break
  8069. + fi
  8070. + done
  8071. + IFS="$ac_save_ifs"
  8072. + test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  8073. +fi
  8074. +fi
  8075. +STRIP="$ac_cv_prog_STRIP"
  8076. +if test -n "$STRIP"; then
  8077. + echo "$ac_t""$STRIP" 1>&6
  8078. +else
  8079. + echo "$ac_t""no" 1>&6
  8080. +fi
  8081. +
  8082. +else
  8083. + STRIP=":"
  8084. +fi
  8085. +fi
  8086. +
  8087. +
  8088. +enable_dlopen=no
  8089. +enable_win32_dll=no
  8090. +
  8091. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  8092. +if test "${enable_libtool_lock+set}" = set; then
  8093. + enableval="$enable_libtool_lock"
  8094. + :
  8095. +fi
  8096. +
  8097. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8098. +
  8099. +# Some flags need to be propagated to the compiler or linker for good
  8100. +# libtool support.
  8101. +case $host in
  8102. +*-*-irix6*)
  8103. + # Find out which ABI we are using.
  8104. + echo '#line 2544 "configure"' > conftest.$ac_ext
  8105. + if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8106. + case `/usr/bin/file conftest.$ac_objext` in
  8107. + *32-bit*)
  8108. + LD="${LD-ld} -32"
  8109. + ;;
  8110. + *N32*)
  8111. + LD="${LD-ld} -n32"
  8112. + ;;
  8113. + *64-bit*)
  8114. + LD="${LD-ld} -64"
  8115. + ;;
  8116. + esac
  8117. + fi
  8118. + rm -rf conftest*
  8119. + ;;
  8120. +
  8121. +*-*-sco3.2v5*)
  8122. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8123. + SAVE_CFLAGS="$CFLAGS"
  8124. + CFLAGS="$CFLAGS -belf"
  8125. + echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  8126. +echo "configure:2566: checking whether the C compiler needs -belf" >&5
  8127. +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  8128. + echo $ac_n "(cached) $ac_c" 1>&6
  8129. +else
  8130. +
  8131. + ac_ext=c
  8132. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8133. +ac_cpp='$CPP $CPPFLAGS'
  8134. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8135. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8136. +cross_compiling=$ac_cv_prog_cc_cross
  8137. +
  8138. + cat > conftest.$ac_ext <<EOF
  8139. +#line 2579 "configure"
  8140. +#include "confdefs.h"
  8141. +
  8142. +int main() {
  8143. +
  8144. +; return 0; }
  8145. +EOF
  8146. +if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8147. + rm -rf conftest*
  8148. + lt_cv_cc_needs_belf=yes
  8149. +else
  8150. + echo "configure: failed program was:" >&5
  8151. + cat conftest.$ac_ext >&5
  8152. + rm -rf conftest*
  8153. + lt_cv_cc_needs_belf=no
  8154. +fi
  8155. +rm -f conftest*
  8156. + ac_ext=c
  8157. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8158. +ac_cpp='$CPP $CPPFLAGS'
  8159. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8160. +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8161. +cross_compiling=$ac_cv_prog_cc_cross
  8162. +
  8163. +fi
  8164. +
  8165. +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  8166. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8167. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8168. + CFLAGS="$SAVE_CFLAGS"
  8169. + fi
  8170. + ;;
  8171. +
  8172. +
  8173. +esac
  8174. +
  8175. +# Sed substitution that helps us do robust quoting. It backslashifies
  8176. +# metacharacters that are still active within double-quoted strings.
  8177. +Xsed='sed -e s/^X//'
  8178. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  8179. +
  8180. +# Same as above, but do not quote variable references.
  8181. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  8182. +
  8183. +# Sed substitution to delay expansion of an escaped shell variable in a
  8184. +# double_quote_subst'ed string.
  8185. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8186. +
  8187. +# Constants:
  8188. +rm="rm -f"
  8189. +
  8190. +# Global variables:
  8191. +default_ofile=libtool
  8192. +can_build_shared=yes
  8193. +
  8194. +# All known linkers require a `.a' archive for static linking (except M$VC,
  8195. +# which needs '.lib').
  8196. +libext=a
  8197. +ltmain="$ac_aux_dir/ltmain.sh"
  8198. +ofile="$default_ofile"
  8199. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  8200. +need_locks="$enable_libtool_lock"
  8201. +
  8202. +old_CC="$CC"
  8203. +old_CFLAGS="$CFLAGS"
  8204. +
  8205. +# Set sane defaults for various variables
  8206. +test -z "$AR" && AR=ar
  8207. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  8208. +test -z "$AS" && AS=as
  8209. +test -z "$CC" && CC=cc
  8210. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  8211. +test -z "$LD" && LD=ld
  8212. +test -z "$LN_S" && LN_S="ln -s"
  8213. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8214. +test -z "$NM" && NM=nm
  8215. +test -z "$OBJDUMP" && OBJDUMP=objdump
  8216. +test -z "$RANLIB" && RANLIB=:
  8217. +test -z "$STRIP" && STRIP=:
  8218. +test -z "$ac_objext" && ac_objext=o
  8219. +
  8220. +if test x"$host" != x"$build"; then
  8221. + ac_tool_prefix=${host_alias}-
  8222. +else
  8223. + ac_tool_prefix=
  8224. +fi
  8225. +
  8226. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  8227. +case $host_os in
  8228. +linux-gnu*) ;;
  8229. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  8230. +esac
  8231. +
  8232. +case $host_os in
  8233. +aix3*)
  8234. + # AIX sometimes has problems with the GCC collect2 program. For some
  8235. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  8236. + # vanish in a puff of smoke.
  8237. + if test "X${COLLECT_NAMES+set}" != Xset; then
  8238. + COLLECT_NAMES=
  8239. + export COLLECT_NAMES
  8240. + fi
  8241. + ;;
  8242. +esac
  8243. +
  8244. +# Determine commands to create old-style static archives.
  8245. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  8246. +old_postinstall_cmds='chmod 644 $oldlib'
  8247. +old_postuninstall_cmds=
  8248. +
  8249. +if test -n "$RANLIB"; then
  8250. + case $host_os in
  8251. + openbsd*)
  8252. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8253. + ;;
  8254. + *)
  8255. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8256. + ;;
  8257. + esac
  8258. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8259. +fi
  8260. +
  8261. +# Allow CC to be a program name with arguments.
  8262. +set dummy $CC
  8263. +compiler="$2"
  8264. +
  8265. +echo $ac_n "checking for objdir""... $ac_c" 1>&6
  8266. +echo "configure:2706: checking for objdir" >&5
  8267. +rm -f .libs 2>/dev/null
  8268. +mkdir .libs 2>/dev/null
  8269. +if test -d .libs; then
  8270. + objdir=.libs
  8271. +else
  8272. + # MS-DOS does not allow filenames that begin with a dot.
  8273. + objdir=_libs
  8274. +fi
  8275. +rmdir .libs 2>/dev/null
  8276. +echo "$ac_t""$objdir" 1>&6
  8277. +
  8278. +
  8279. +# Check whether --with-pic or --without-pic was given.
  8280. +if test "${with_pic+set}" = set; then
  8281. + withval="$with_pic"
  8282. + pic_mode="$withval"
  8283. +else
  8284. + pic_mode=default
  8285. +fi
  8286. +
  8287. +test -z "$pic_mode" && pic_mode=default
  8288. +
  8289. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  8290. +# in isolation, and that seeing it set (from the cache) indicates that
  8291. +# the associated values are set (in the cache) correctly too.
  8292. +echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  8293. +echo "configure:2733: checking for $compiler option to produce PIC" >&5
  8294. +if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  8295. + echo $ac_n "(cached) $ac_c" 1>&6
  8296. +else
  8297. + lt_cv_prog_cc_pic=
  8298. + lt_cv_prog_cc_shlib=
  8299. + lt_cv_prog_cc_wl=
  8300. + lt_cv_prog_cc_static=
  8301. + lt_cv_prog_cc_no_builtin=
  8302. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  8303. +
  8304. + if test "$GCC" = yes; then
  8305. + lt_cv_prog_cc_wl='-Wl,'
  8306. + lt_cv_prog_cc_static='-static'
  8307. +
  8308. + case $host_os in
  8309. + aix*)
  8310. + # Below there is a dirty hack to force normal static linking with -ldl
  8311. + # The problem is because libdl dynamically linked with both libc and
  8312. + # libC (AIX C++ library), which obviously doesn't included in libraries
  8313. + # list by gcc. This cause undefined symbols with -static flags.
  8314. + # This hack allows C programs to be linked with "-static -ldl", but
  8315. + # not sure about C++ programs.
  8316. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  8317. + ;;
  8318. + amigaos*)
  8319. + # FIXME: we need at least 68020 code to build shared libraries, but
  8320. + # adding the `-m68020' flag to GCC prevents building anything better,
  8321. + # like `-m68040'.
  8322. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  8323. + ;;
  8324. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8325. + # PIC is the default for these OSes.
  8326. + ;;
  8327. + darwin* | rhapsody*)
  8328. + # PIC is the default on this platform
  8329. + # Common symbols not allowed in MH_DYLIB files
  8330. + lt_cv_prog_cc_pic='-fno-common'
  8331. + ;;
  8332. + cygwin* | mingw* | pw32* | os2*)
  8333. + # This hack is so that the source file can tell whether it is being
  8334. + # built for inclusion in a dll (and should export symbols for example).
  8335. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  8336. + ;;
  8337. + sysv4*MP*)
  8338. + if test -d /usr/nec; then
  8339. + lt_cv_prog_cc_pic=-Kconform_pic
  8340. + fi
  8341. + ;;
  8342. + *)
  8343. + lt_cv_prog_cc_pic='-fPIC'
  8344. + ;;
  8345. + esac
  8346. + else
  8347. + # PORTME Check for PIC flags for the system compiler.
  8348. + case $host_os in
  8349. + aix3* | aix4* | aix5*)
  8350. + lt_cv_prog_cc_wl='-Wl,'
  8351. + # All AIX code is PIC.
  8352. + if test "$host_cpu" = ia64; then
  8353. + # AIX 5 now supports IA64 processor
  8354. + lt_cv_prog_cc_static='-Bstatic'
  8355. + else
  8356. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  8357. + fi
  8358. + ;;
  8359. +
  8360. + hpux9* | hpux10* | hpux11*)
  8361. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  8362. + lt_cv_prog_cc_wl='-Wl,'
  8363. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  8364. + lt_cv_prog_cc_pic='+Z'
  8365. + ;;
  8366. +
  8367. + irix5* | irix6* | nonstopux*)
  8368. + lt_cv_prog_cc_wl='-Wl,'
  8369. + lt_cv_prog_cc_static='-non_shared'
  8370. + # PIC (with -KPIC) is the default.
  8371. + ;;
  8372. +
  8373. + cygwin* | mingw* | pw32* | os2*)
  8374. + # This hack is so that the source file can tell whether it is being
  8375. + # built for inclusion in a dll (and should export symbols for example).
  8376. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  8377. + ;;
  8378. +
  8379. + newsos6)
  8380. + lt_cv_prog_cc_pic='-KPIC'
  8381. + lt_cv_prog_cc_static='-Bstatic'
  8382. + ;;
  8383. +
  8384. + osf3* | osf4* | osf5*)
  8385. + # All OSF/1 code is PIC.
  8386. + lt_cv_prog_cc_wl='-Wl,'
  8387. + lt_cv_prog_cc_static='-non_shared'
  8388. + ;;
  8389. +
  8390. + sco3.2v5*)
  8391. + lt_cv_prog_cc_pic='-Kpic'
  8392. + lt_cv_prog_cc_static='-dn'
  8393. + lt_cv_prog_cc_shlib='-belf'
  8394. + ;;
  8395. +
  8396. + solaris*)
  8397. + lt_cv_prog_cc_pic='-KPIC'
  8398. + lt_cv_prog_cc_static='-Bstatic'
  8399. + lt_cv_prog_cc_wl='-Wl,'
  8400. + ;;
  8401. +
  8402. + sunos4*)
  8403. + lt_cv_prog_cc_pic='-PIC'
  8404. + lt_cv_prog_cc_static='-Bstatic'
  8405. + lt_cv_prog_cc_wl='-Qoption ld '
  8406. + ;;
  8407. +
  8408. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8409. + lt_cv_prog_cc_pic='-KPIC'
  8410. + lt_cv_prog_cc_static='-Bstatic'
  8411. + lt_cv_prog_cc_wl='-Wl,'
  8412. + ;;
  8413. +
  8414. + uts4*)
  8415. + lt_cv_prog_cc_pic='-pic'
  8416. + lt_cv_prog_cc_static='-Bstatic'
  8417. + ;;
  8418. +
  8419. + sysv4*MP*)
  8420. + if test -d /usr/nec ;then
  8421. + lt_cv_prog_cc_pic='-Kconform_pic'
  8422. + lt_cv_prog_cc_static='-Bstatic'
  8423. + fi
  8424. + ;;
  8425. +
  8426. + *)
  8427. + lt_cv_prog_cc_can_build_shared=no
  8428. + ;;
  8429. + esac
  8430. + fi
  8431. +
  8432. +fi
  8433. +
  8434. +if test -z "$lt_cv_prog_cc_pic"; then
  8435. + echo "$ac_t""none" 1>&6
  8436. +else
  8437. + echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  8438. +
  8439. + # Check to make sure the pic_flag actually works.
  8440. + echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  8441. +echo "configure:2881: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  8442. + if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  8443. + echo $ac_n "(cached) $ac_c" 1>&6
  8444. +else
  8445. + save_CFLAGS="$CFLAGS"
  8446. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  8447. + cat > conftest.$ac_ext <<EOF
  8448. +#line 2888 "configure"
  8449. +#include "confdefs.h"
  8450. +
  8451. +int main() {
  8452. +
  8453. +; return 0; }
  8454. +EOF
  8455. +if { (eval echo configure:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8456. + rm -rf conftest*
  8457. + case $host_os in
  8458. + hpux9* | hpux10* | hpux11*)
  8459. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  8460. + # they create non-PIC objects. So, if there were any warnings, we
  8461. + # assume that PIC is not supported.
  8462. + if test -s conftest.err; then
  8463. + lt_cv_prog_cc_pic_works=no
  8464. + else
  8465. + lt_cv_prog_cc_pic_works=yes
  8466. + fi
  8467. + ;;
  8468. + *)
  8469. + lt_cv_prog_cc_pic_works=yes
  8470. + ;;
  8471. + esac
  8472. +
  8473. +else
  8474. + echo "configure: failed program was:" >&5
  8475. + cat conftest.$ac_ext >&5
  8476. + rm -rf conftest*
  8477. + lt_cv_prog_cc_pic_works=no
  8478. +
  8479. +fi
  8480. +rm -f conftest*
  8481. + CFLAGS="$save_CFLAGS"
  8482. +
  8483. +fi
  8484. +
  8485. +
  8486. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  8487. + lt_cv_prog_cc_pic=
  8488. + lt_cv_prog_cc_can_build_shared=no
  8489. + else
  8490. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  8491. + fi
  8492. +
  8493. + echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  8494. +fi
  8495. +
  8496. +# Check for any special shared library compilation flags.
  8497. +if test -n "$lt_cv_prog_cc_shlib"; then
  8498. + echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  8499. + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  8500. + else
  8501. + echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  8502. + lt_cv_prog_cc_can_build_shared=no
  8503. + fi
  8504. +fi
  8505. +
  8506. +echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  8507. +echo "configure:2947: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  8508. +if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  8509. + echo $ac_n "(cached) $ac_c" 1>&6
  8510. +else
  8511. + lt_cv_prog_cc_static_works=no
  8512. + save_LDFLAGS="$LDFLAGS"
  8513. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  8514. + cat > conftest.$ac_ext <<EOF
  8515. +#line 2955 "configure"
  8516. +#include "confdefs.h"
  8517. +
  8518. +int main() {
  8519. +
  8520. +; return 0; }
  8521. +EOF
  8522. +if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8523. + rm -rf conftest*
  8524. + lt_cv_prog_cc_static_works=yes
  8525. +else
  8526. + echo "configure: failed program was:" >&5
  8527. + cat conftest.$ac_ext >&5
  8528. +fi
  8529. +rm -f conftest*
  8530. + LDFLAGS="$save_LDFLAGS"
  8531. +
  8532. +fi
  8533. +
  8534. +
  8535. +# Belt *and* braces to stop my trousers falling down:
  8536. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  8537. +echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  8538. +
  8539. +pic_flag="$lt_cv_prog_cc_pic"
  8540. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  8541. +wl="$lt_cv_prog_cc_wl"
  8542. +link_static_flag="$lt_cv_prog_cc_static"
  8543. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  8544. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  8545. +
  8546. +
  8547. +# Check to see if options -o and -c are simultaneously supported by compiler
  8548. +echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  8549. +echo "configure:2989: checking if $compiler supports -c -o file.$ac_objext" >&5
  8550. +if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  8551. + echo $ac_n "(cached) $ac_c" 1>&6
  8552. +else
  8553. +
  8554. +$rm -r conftest 2>/dev/null
  8555. +mkdir conftest
  8556. +cd conftest
  8557. +echo "int some_variable = 0;" > conftest.$ac_ext
  8558. +mkdir out
  8559. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  8560. +# that will create temporary files in the current directory regardless of
  8561. +# the output directory. Thus, making CWD read-only will cause this test
  8562. +# to fail, enabling locking or at least warning the user not to do parallel
  8563. +# builds.
  8564. +chmod -w .
  8565. +save_CFLAGS="$CFLAGS"
  8566. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  8567. +compiler_c_o=no
  8568. +if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  8569. + # The compiler can only warn and ignore the option if not recognized
  8570. + # So say no if there are warnings
  8571. + if test -s out/conftest.err; then
  8572. + lt_cv_compiler_c_o=no
  8573. + else
  8574. + lt_cv_compiler_c_o=yes
  8575. + fi
  8576. +else
  8577. + # Append any errors to the config.log.
  8578. + cat out/conftest.err 1>&5
  8579. + lt_cv_compiler_c_o=no
  8580. +fi
  8581. +CFLAGS="$save_CFLAGS"
  8582. +chmod u+w .
  8583. +$rm conftest* out/*
  8584. +rmdir out
  8585. +cd ..
  8586. +rmdir conftest
  8587. +$rm -r conftest 2>/dev/null
  8588. +
  8589. +fi
  8590. +
  8591. +compiler_c_o=$lt_cv_compiler_c_o
  8592. +echo "$ac_t""$compiler_c_o" 1>&6
  8593. +
  8594. +if test x"$compiler_c_o" = x"yes"; then
  8595. + # Check to see if we can write to a .lo
  8596. + echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  8597. +echo "configure:3037: checking if $compiler supports -c -o file.lo" >&5
  8598. + if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  8599. + echo $ac_n "(cached) $ac_c" 1>&6
  8600. +else
  8601. +
  8602. + lt_cv_compiler_o_lo=no
  8603. + save_CFLAGS="$CFLAGS"
  8604. + CFLAGS="$CFLAGS -c -o conftest.lo"
  8605. + save_objext="$ac_objext"
  8606. + ac_objext=lo
  8607. + cat > conftest.$ac_ext <<EOF
  8608. +#line 3048 "configure"
  8609. +#include "confdefs.h"
  8610. +
  8611. +int main() {
  8612. +int some_variable = 0;
  8613. +; return 0; }
  8614. +EOF
  8615. +if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8616. + rm -rf conftest*
  8617. + # The compiler can only warn and ignore the option if not recognized
  8618. + # So say no if there are warnings
  8619. + if test -s conftest.err; then
  8620. + lt_cv_compiler_o_lo=no
  8621. + else
  8622. + lt_cv_compiler_o_lo=yes
  8623. + fi
  8624. +
  8625. +else
  8626. + echo "configure: failed program was:" >&5
  8627. + cat conftest.$ac_ext >&5
  8628. +fi
  8629. +rm -f conftest*
  8630. + ac_objext="$save_objext"
  8631. + CFLAGS="$save_CFLAGS"
  8632. +
  8633. +fi
  8634. +
  8635. + compiler_o_lo=$lt_cv_compiler_o_lo
  8636. + echo "$ac_t""$compiler_o_lo" 1>&6
  8637. +else
  8638. + compiler_o_lo=no
  8639. +fi
  8640. +
  8641. +# Check to see if we can do hard links to lock some files if needed
  8642. +hard_links="nottested"
  8643. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  8644. + # do not overwrite the value of need_locks provided by the user
  8645. + echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  8646. +echo "configure:3086: checking if we can lock with hard links" >&5
  8647. + hard_links=yes
  8648. + $rm conftest*
  8649. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8650. + touch conftest.a
  8651. + ln conftest.a conftest.b 2>&5 || hard_links=no
  8652. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8653. + echo "$ac_t""$hard_links" 1>&6
  8654. + if test "$hard_links" = no; then
  8655. + echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  8656. + need_locks=warn
  8657. + fi
  8658. +else
  8659. + need_locks=no
  8660. +fi
  8661. +
  8662. +if test "$GCC" = yes; then
  8663. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  8664. + echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  8665. +echo "configure:3105: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8666. + echo "int some_variable = 0;" > conftest.$ac_ext
  8667. + save_CFLAGS="$CFLAGS"
  8668. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  8669. + compiler_rtti_exceptions=no
  8670. + cat > conftest.$ac_ext <<EOF
  8671. +#line 3111 "configure"
  8672. +#include "confdefs.h"
  8673. +
  8674. +int main() {
  8675. +int some_variable = 0;
  8676. +; return 0; }
  8677. +EOF
  8678. +if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8679. + rm -rf conftest*
  8680. + # The compiler can only warn and ignore the option if not recognized
  8681. + # So say no if there are warnings
  8682. + if test -s conftest.err; then
  8683. + compiler_rtti_exceptions=no
  8684. + else
  8685. + compiler_rtti_exceptions=yes
  8686. + fi
  8687. +
  8688. +else
  8689. + echo "configure: failed program was:" >&5
  8690. + cat conftest.$ac_ext >&5
  8691. +fi
  8692. +rm -f conftest*
  8693. + CFLAGS="$save_CFLAGS"
  8694. + echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  8695. +
  8696. + if test "$compiler_rtti_exceptions" = "yes"; then
  8697. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  8698. + else
  8699. + no_builtin_flag=' -fno-builtin'
  8700. + fi
  8701. +fi
  8702. +
  8703. +# See if the linker supports building shared libraries.
  8704. +echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  8705. +echo "configure:3145: checking whether the linker ($LD) supports shared libraries" >&5
  8706. +
  8707. +allow_undefined_flag=
  8708. +no_undefined_flag=
  8709. +need_lib_prefix=unknown
  8710. +need_version=unknown
  8711. +# when you set need_version to no, make sure it does not cause -set_version
  8712. +# flags to be left without arguments
  8713. +archive_cmds=
  8714. +archive_expsym_cmds=
  8715. +old_archive_from_new_cmds=
  8716. +old_archive_from_expsyms_cmds=
  8717. +export_dynamic_flag_spec=
  8718. +whole_archive_flag_spec=
  8719. +thread_safe_flag_spec=
  8720. +hardcode_into_libs=no
  8721. +hardcode_libdir_flag_spec=
  8722. +hardcode_libdir_separator=
  8723. +hardcode_direct=no
  8724. +hardcode_minus_L=no
  8725. +hardcode_shlibpath_var=unsupported
  8726. +runpath_var=
  8727. +link_all_deplibs=unknown
  8728. +always_export_symbols=no
  8729. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8730. +# include_expsyms should be a list of space-separated symbols to be *always*
  8731. +# included in the symbol list
  8732. +include_expsyms=
  8733. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  8734. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  8735. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8736. +# as well as any symbol that contains `d'.
  8737. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  8738. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8739. +# platforms (ab)use it in PIC code, but their linkers get confused if
  8740. +# the symbol is explicitly referenced. Since portable code cannot
  8741. +# rely on this symbol name, it's probably fine to never include it in
  8742. +# preloaded symbol tables.
  8743. +extract_expsyms_cmds=
  8744. +
  8745. +case $host_os in
  8746. +cygwin* | mingw* | pw32*)
  8747. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8748. + # When not using gcc, we currently assume that we are using
  8749. + # Microsoft Visual C++.
  8750. + if test "$GCC" != yes; then
  8751. + with_gnu_ld=no
  8752. + fi
  8753. + ;;
  8754. +openbsd*)
  8755. + with_gnu_ld=no
  8756. + ;;
  8757. +esac
  8758. +
  8759. +ld_shlibs=yes
  8760. +if test "$with_gnu_ld" = yes; then
  8761. + # If archive_cmds runs LD, not CC, wlarc should be empty
  8762. + wlarc='${wl}'
  8763. +
  8764. + # See if GNU ld supports shared libraries.
  8765. + case $host_os in
  8766. + aix3* | aix4* | aix5*)
  8767. + # On AIX, the GNU linker is very broken
  8768. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  8769. + ld_shlibs=no
  8770. + cat <<EOF 1>&2
  8771. +
  8772. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8773. +*** to be unable to reliably create shared libraries on AIX.
  8774. +*** Therefore, libtool is disabling shared libraries support. If you
  8775. +*** really care for shared libraries, you may want to modify your PATH
  8776. +*** so that a non-GNU linker is found, and then restart.
  8777. +
  8778. +EOF
  8779. + ;;
  8780. +
  8781. + amigaos*)
  8782. + 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)'
  8783. + hardcode_libdir_flag_spec='-L$libdir'
  8784. + hardcode_minus_L=yes
  8785. +
  8786. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8787. + # that the semantics of dynamic libraries on AmigaOS, at least up
  8788. + # to version 4, is to share data among multiple programs linked
  8789. + # with the same dynamic library. Since this doesn't match the
  8790. + # behavior of shared libraries on other platforms, we can use
  8791. + # them.
  8792. + ld_shlibs=no
  8793. + ;;
  8794. +
  8795. + beos*)
  8796. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  8797. + allow_undefined_flag=unsupported
  8798. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8799. + # support --undefined. This deserves some investigation. FIXME
  8800. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8801. + else
  8802. + ld_shlibs=no
  8803. + fi
  8804. + ;;
  8805. +
  8806. + cygwin* | mingw* | pw32*)
  8807. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8808. + # no search path for DLLs.
  8809. + hardcode_libdir_flag_spec='-L$libdir'
  8810. + allow_undefined_flag=unsupported
  8811. + always_export_symbols=yes
  8812. +
  8813. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  8814. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  8815. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  8816. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  8817. + else $CC -o impgen impgen.c ; fi)~
  8818. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  8819. +
  8820. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  8821. +
  8822. + # cygwin and mingw dlls have different entry points and sets of symbols
  8823. + # to exclude.
  8824. + # FIXME: what about values for MSVC?
  8825. + dll_entry=__cygwin_dll_entry@12
  8826. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  8827. + case $host_os in
  8828. + mingw*)
  8829. + # mingw values
  8830. + dll_entry=_DllMainCRTStartup@12
  8831. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  8832. + ;;
  8833. + esac
  8834. +
  8835. + # mingw and cygwin differ, and it's simplest to just exclude the union
  8836. + # of the two symbol sets.
  8837. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  8838. +
  8839. + # recent cygwin and mingw systems supply a stub DllMain which the user
  8840. + # can override, but on older systems we have to supply one (in ltdll.c)
  8841. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  8842. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  8843. + 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~
  8844. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  8845. + else
  8846. + ltdll_obj=
  8847. + ltdll_cmds=
  8848. + fi
  8849. +
  8850. + # Extract the symbol export list from an `--export-all' def file,
  8851. + # then regenerate the def file from the symbol export list, so that
  8852. + # the compiled dll only exports the symbol export list.
  8853. + # Be careful not to strip the DATA tag left be newer dlltools.
  8854. + export_symbols_cmds="$ltdll_cmds"'
  8855. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  8856. + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  8857. +
  8858. + # If the export-symbols file already is a .def file (1st line
  8859. + # is EXPORTS), use it as is.
  8860. + # If DATA tags from a recent dlltool are present, honour them!
  8861. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  8862. + cp $export_symbols $output_objdir/$soname-def;
  8863. + else
  8864. + echo EXPORTS > $output_objdir/$soname-def;
  8865. + _lt_hint=1;
  8866. + cat $export_symbols | while read symbol; do
  8867. + set dummy \$symbol;
  8868. + case \$# in
  8869. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  8870. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  8871. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  8872. + esac;
  8873. + _lt_hint=`expr 1 + \$_lt_hint`;
  8874. + done;
  8875. + fi~
  8876. + '"$ltdll_cmds"'
  8877. + $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~
  8878. + $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~
  8879. + $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~
  8880. + $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~
  8881. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  8882. + ;;
  8883. +
  8884. + netbsd*)
  8885. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8886. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8887. + wlarc=
  8888. + else
  8889. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8890. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8891. + fi
  8892. + ;;
  8893. +
  8894. + solaris* | sysv5*)
  8895. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  8896. + ld_shlibs=no
  8897. + cat <<EOF 1>&2
  8898. +
  8899. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8900. +*** create shared libraries on Solaris systems. Therefore, libtool
  8901. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8902. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8903. +*** your PATH or compiler configuration so that the native linker is
  8904. +*** used, and then restart.
  8905. +
  8906. +EOF
  8907. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  8908. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8909. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8910. + else
  8911. + ld_shlibs=no
  8912. + fi
  8913. + ;;
  8914. +
  8915. + sunos4*)
  8916. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8917. + wlarc=
  8918. + hardcode_direct=yes
  8919. + hardcode_shlibpath_var=no
  8920. + ;;
  8921. +
  8922. + *)
  8923. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  8924. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8925. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8926. + else
  8927. + ld_shlibs=no
  8928. + fi
  8929. + ;;
  8930. + esac
  8931. +
  8932. + if test "$ld_shlibs" = yes; then
  8933. + runpath_var=LD_RUN_PATH
  8934. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8935. + export_dynamic_flag_spec='${wl}--export-dynamic'
  8936. + case $host_os in
  8937. + cygwin* | mingw* | pw32*)
  8938. + # dlltool doesn't understand --whole-archive et. al.
  8939. + whole_archive_flag_spec=
  8940. + ;;
  8941. + *)
  8942. + # ancient GNU ld didn't support --whole-archive et. al.
  8943. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  8944. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8945. + else
  8946. + whole_archive_flag_spec=
  8947. + fi
  8948. + ;;
  8949. + esac
  8950. + fi
  8951. +else
  8952. + # PORTME fill in a description of your system's linker (not GNU ld)
  8953. + case $host_os in
  8954. + aix3*)
  8955. + allow_undefined_flag=unsupported
  8956. + always_export_symbols=yes
  8957. + 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'
  8958. + # Note: this linker hardcodes the directories in LIBPATH if there
  8959. + # are no directories specified by -L.
  8960. + hardcode_minus_L=yes
  8961. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  8962. + # Neither direct hardcoding nor static linking is supported with a
  8963. + # broken collect2.
  8964. + hardcode_direct=unsupported
  8965. + fi
  8966. + ;;
  8967. +
  8968. + aix4* | aix5*)
  8969. + if test "$host_cpu" = ia64; then
  8970. + # On IA64, the linker does run time linking by default, so we don't
  8971. + # have to do anything special.
  8972. + aix_use_runtimelinking=no
  8973. + exp_sym_flag='-Bexport'
  8974. + no_entry_flag=""
  8975. + else
  8976. + aix_use_runtimelinking=no
  8977. +
  8978. + # Test if we are trying to use run time linking or normal
  8979. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8980. + # need to do runtime linking.
  8981. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8982. + for ld_flag in $LDFLAGS; do
  8983. + case $ld_flag in
  8984. + *-brtl*)
  8985. + aix_use_runtimelinking=yes
  8986. + break
  8987. + ;;
  8988. + esac
  8989. + done
  8990. + esac
  8991. +
  8992. + exp_sym_flag='-bexport'
  8993. + no_entry_flag='-bnoentry'
  8994. + fi
  8995. +
  8996. + # When large executables or shared objects are built, AIX ld can
  8997. + # have problems creating the table of contents. If linking a library
  8998. + # or program results in "error TOC overflow" add -mminimal-toc to
  8999. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9000. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9001. +
  9002. + hardcode_direct=yes
  9003. + archive_cmds=''
  9004. + hardcode_libdir_separator=':'
  9005. + if test "$GCC" = yes; then
  9006. + case $host_os in aix4.[012]|aix4.[012].*)
  9007. + collect2name=`${CC} -print-prog-name=collect2`
  9008. + if test -f "$collect2name" && \
  9009. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  9010. + then
  9011. + # We have reworked collect2
  9012. + hardcode_direct=yes
  9013. + else
  9014. + # We have old collect2
  9015. + hardcode_direct=unsupported
  9016. + # It fails to find uninstalled libraries when the uninstalled
  9017. + # path is not listed in the libpath. Setting hardcode_minus_L
  9018. + # to unsupported forces relinking
  9019. + hardcode_minus_L=yes
  9020. + hardcode_libdir_flag_spec='-L$libdir'
  9021. + hardcode_libdir_separator=
  9022. + fi
  9023. + esac
  9024. +
  9025. + shared_flag='-shared'
  9026. + else
  9027. + # not using gcc
  9028. + if test "$host_cpu" = ia64; then
  9029. + shared_flag='${wl}-G'
  9030. + else
  9031. + if test "$aix_use_runtimelinking" = yes; then
  9032. + shared_flag='${wl}-G'
  9033. + else
  9034. + shared_flag='${wl}-bM:SRE'
  9035. + fi
  9036. + fi
  9037. + fi
  9038. +
  9039. + # It seems that -bexpall can do strange things, so it is better to
  9040. + # generate a list of symbols to export.
  9041. + always_export_symbols=yes
  9042. + if test "$aix_use_runtimelinking" = yes; then
  9043. + # Warning - without using the other runtime loading flags (-brtl),
  9044. + # -berok will link without error, but may produce a broken library.
  9045. + allow_undefined_flag='-berok'
  9046. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  9047. + 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"
  9048. + else
  9049. + if test "$host_cpu" = ia64; then
  9050. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9051. + allow_undefined_flag="-z nodefs"
  9052. + 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"
  9053. + else
  9054. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  9055. + # Warning - without using the other run time loading flags,
  9056. + # -berok will link without error, but may produce a broken library.
  9057. + allow_undefined_flag='${wl}-berok'
  9058. + # This is a bit strange, but is similar to how AIX traditionally builds
  9059. + # it's shared libraries.
  9060. + 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'
  9061. + fi
  9062. + fi
  9063. + ;;
  9064. +
  9065. + amigaos*)
  9066. + 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)'
  9067. + hardcode_libdir_flag_spec='-L$libdir'
  9068. + hardcode_minus_L=yes
  9069. + # see comment about different semantics on the GNU ld section
  9070. + ld_shlibs=no
  9071. + ;;
  9072. +
  9073. + cygwin* | mingw* | pw32*)
  9074. + # When not using gcc, we currently assume that we are using
  9075. + # Microsoft Visual C++.
  9076. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  9077. + # no search path for DLLs.
  9078. + hardcode_libdir_flag_spec=' '
  9079. + allow_undefined_flag=unsupported
  9080. + # Tell ltmain to make .lib files, not .a files.
  9081. + libext=lib
  9082. + # FIXME: Setting linknames here is a bad hack.
  9083. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9084. + # The linker will automatically build a .lib file if we build a DLL.
  9085. + old_archive_from_new_cmds='true'
  9086. + # FIXME: Should let the user specify the lib program.
  9087. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9088. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  9089. + ;;
  9090. +
  9091. + darwin* | rhapsody*)
  9092. + case "$host_os" in
  9093. + rhapsody* | darwin1.[012])
  9094. + allow_undefined_flag='-undefined suppress'
  9095. + ;;
  9096. + *) # Darwin 1.3 on
  9097. + allow_undefined_flag='-flat_namespace -undefined suppress'
  9098. + ;;
  9099. + esac
  9100. + # FIXME: Relying on posixy $() will cause problems for
  9101. + # cross-compilation, but unfortunately the echo tests do not
  9102. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  9103. + # `"' quotes if we put them in here... so don't!
  9104. + 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)'
  9105. + # We need to add '_' to the symbols in $export_symbols first
  9106. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  9107. + hardcode_direct=yes
  9108. + hardcode_shlibpath_var=no
  9109. + whole_archive_flag_spec='-all_load $convenience'
  9110. + ;;
  9111. +
  9112. + freebsd1*)
  9113. + ld_shlibs=no
  9114. + ;;
  9115. +
  9116. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9117. + # support. Future versions do this automatically, but an explicit c++rt0.o
  9118. + # does not break anything, and helps significantly (at the cost of a little
  9119. + # extra space).
  9120. + freebsd2.2*)
  9121. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9122. + hardcode_libdir_flag_spec='-R$libdir'
  9123. + hardcode_direct=yes
  9124. + hardcode_shlibpath_var=no
  9125. + ;;
  9126. +
  9127. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9128. + freebsd2*)
  9129. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9130. + hardcode_direct=yes
  9131. + hardcode_minus_L=yes
  9132. + hardcode_shlibpath_var=no
  9133. + ;;
  9134. +
  9135. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9136. + freebsd*)
  9137. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9138. + hardcode_libdir_flag_spec='-R$libdir'
  9139. + hardcode_direct=yes
  9140. + hardcode_shlibpath_var=no
  9141. + ;;
  9142. +
  9143. + hpux9* | hpux10* | hpux11*)
  9144. + case $host_os in
  9145. + 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' ;;
  9146. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  9147. + esac
  9148. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9149. + hardcode_libdir_separator=:
  9150. + hardcode_direct=yes
  9151. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  9152. + # location of the library.
  9153. + export_dynamic_flag_spec='${wl}-E'
  9154. + ;;
  9155. +
  9156. + irix5* | irix6* | nonstopux*)
  9157. + if test "$GCC" = yes; then
  9158. + 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'
  9159. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9160. + else
  9161. + 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'
  9162. + hardcode_libdir_flag_spec='-rpath $libdir'
  9163. + fi
  9164. + hardcode_libdir_separator=:
  9165. + link_all_deplibs=yes
  9166. + ;;
  9167. +
  9168. + netbsd*)
  9169. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9170. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9171. + else
  9172. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9173. + fi
  9174. + hardcode_libdir_flag_spec='-R$libdir'
  9175. + hardcode_direct=yes
  9176. + hardcode_shlibpath_var=no
  9177. + ;;
  9178. +
  9179. + newsos6)
  9180. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9181. + hardcode_direct=yes
  9182. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9183. + hardcode_libdir_separator=:
  9184. + hardcode_shlibpath_var=no
  9185. + ;;
  9186. +
  9187. + openbsd*)
  9188. + hardcode_direct=yes
  9189. + hardcode_shlibpath_var=no
  9190. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9191. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9192. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9193. + export_dynamic_flag_spec='${wl}-E'
  9194. + else
  9195. + case "$host_os" in
  9196. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9197. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9198. + hardcode_libdir_flag_spec='-R$libdir'
  9199. + ;;
  9200. + *)
  9201. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9202. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9203. + ;;
  9204. + esac
  9205. + fi
  9206. + ;;
  9207. +
  9208. + os2*)
  9209. + hardcode_libdir_flag_spec='-L$libdir'
  9210. + hardcode_minus_L=yes
  9211. + allow_undefined_flag=unsupported
  9212. + 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'
  9213. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9214. + ;;
  9215. +
  9216. + osf3*)
  9217. + if test "$GCC" = yes; then
  9218. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9219. + 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'
  9220. + else
  9221. + allow_undefined_flag=' -expect_unresolved \*'
  9222. + 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'
  9223. + fi
  9224. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9225. + hardcode_libdir_separator=:
  9226. + ;;
  9227. +
  9228. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  9229. + if test "$GCC" = yes; then
  9230. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9231. + 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'
  9232. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9233. + else
  9234. + allow_undefined_flag=' -expect_unresolved \*'
  9235. + 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'
  9236. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  9237. + $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'
  9238. +
  9239. + #Both c and cxx compiler support -rpath directly
  9240. + hardcode_libdir_flag_spec='-rpath $libdir'
  9241. + fi
  9242. + hardcode_libdir_separator=:
  9243. + ;;
  9244. +
  9245. + sco3.2v5*)
  9246. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9247. + hardcode_shlibpath_var=no
  9248. + runpath_var=LD_RUN_PATH
  9249. + hardcode_runpath_var=yes
  9250. + export_dynamic_flag_spec='${wl}-Bexport'
  9251. + ;;
  9252. +
  9253. + solaris*)
  9254. + # gcc --version < 3.0 without binutils cannot create self contained
  9255. + # shared libraries reliably, requiring libgcc.a to resolve some of
  9256. + # the object symbols generated in some cases. Libraries that use
  9257. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  9258. + # a copy of libgcc.a into every shared library to guarantee resolving
  9259. + # such symbols causes other problems: According to Tim Van Holder
  9260. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  9261. + # (to the application) exception stack for one thing.
  9262. + no_undefined_flag=' -z defs'
  9263. + if test "$GCC" = yes; then
  9264. + case `$CC --version 2>/dev/null` in
  9265. + [12].*)
  9266. + cat <<EOF 1>&2
  9267. +
  9268. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  9269. +*** create self contained shared libraries on Solaris systems, without
  9270. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  9271. +*** -no-undefined support, which will at least allow you to build shared
  9272. +*** libraries. However, you may find that when you link such libraries
  9273. +*** into an application without using GCC, you have to manually add
  9274. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  9275. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  9276. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  9277. +
  9278. +EOF
  9279. + no_undefined_flag=
  9280. + ;;
  9281. + esac
  9282. + fi
  9283. + # $CC -shared without GNU ld will not create a library from C++
  9284. + # object files and a static libstdc++, better avoid it by now
  9285. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9286. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9287. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9288. + hardcode_libdir_flag_spec='-R$libdir'
  9289. + hardcode_shlibpath_var=no
  9290. + case $host_os in
  9291. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  9292. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  9293. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  9294. + esac
  9295. + link_all_deplibs=yes
  9296. + ;;
  9297. +
  9298. + sunos4*)
  9299. + if test "x$host_vendor" = xsequent; then
  9300. + # Use $CC to link under sequent, because it throws in some extra .o
  9301. + # files that make .init and .fini sections work.
  9302. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9303. + else
  9304. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9305. + fi
  9306. + hardcode_libdir_flag_spec='-L$libdir'
  9307. + hardcode_direct=yes
  9308. + hardcode_minus_L=yes
  9309. + hardcode_shlibpath_var=no
  9310. + ;;
  9311. +
  9312. + sysv4)
  9313. + case $host_vendor in
  9314. + sni)
  9315. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. + hardcode_direct=yes # is this really true???
  9317. + ;;
  9318. + siemens)
  9319. + ## LD is ld it makes a PLAMLIB
  9320. + ## CC just makes a GrossModule.
  9321. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9322. + reload_cmds='$CC -r -o $output$reload_objs'
  9323. + hardcode_direct=no
  9324. + ;;
  9325. + motorola)
  9326. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9327. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9328. + ;;
  9329. + esac
  9330. + runpath_var='LD_RUN_PATH'
  9331. + hardcode_shlibpath_var=no
  9332. + ;;
  9333. +
  9334. + sysv4.3*)
  9335. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9336. + hardcode_shlibpath_var=no
  9337. + export_dynamic_flag_spec='-Bexport'
  9338. + ;;
  9339. +
  9340. + sysv5*)
  9341. + no_undefined_flag=' -z text'
  9342. + # $CC -shared without GNU ld will not create a library from C++
  9343. + # object files and a static libstdc++, better avoid it by now
  9344. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9345. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9346. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9347. + hardcode_libdir_flag_spec=
  9348. + hardcode_shlibpath_var=no
  9349. + runpath_var='LD_RUN_PATH'
  9350. + ;;
  9351. +
  9352. + uts4*)
  9353. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9354. + hardcode_libdir_flag_spec='-L$libdir'
  9355. + hardcode_shlibpath_var=no
  9356. + ;;
  9357. +
  9358. + dgux*)
  9359. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9360. + hardcode_libdir_flag_spec='-L$libdir'
  9361. + hardcode_shlibpath_var=no
  9362. + ;;
  9363. +
  9364. + sysv4*MP*)
  9365. + if test -d /usr/nec; then
  9366. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9367. + hardcode_shlibpath_var=no
  9368. + runpath_var=LD_RUN_PATH
  9369. + hardcode_runpath_var=yes
  9370. + ld_shlibs=yes
  9371. + fi
  9372. + ;;
  9373. +
  9374. + sysv4.2uw2*)
  9375. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9376. + hardcode_direct=yes
  9377. + hardcode_minus_L=no
  9378. + hardcode_shlibpath_var=no
  9379. + hardcode_runpath_var=yes
  9380. + runpath_var=LD_RUN_PATH
  9381. + ;;
  9382. +
  9383. + sysv5uw7* | unixware7*)
  9384. + no_undefined_flag='${wl}-z ${wl}text'
  9385. + if test "$GCC" = yes; then
  9386. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9387. + else
  9388. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. + fi
  9390. + runpath_var='LD_RUN_PATH'
  9391. + hardcode_shlibpath_var=no
  9392. + ;;
  9393. +
  9394. + *)
  9395. + ld_shlibs=no
  9396. + ;;
  9397. + esac
  9398. +fi
  9399. +echo "$ac_t""$ld_shlibs" 1>&6
  9400. +test "$ld_shlibs" = no && can_build_shared=no
  9401. +
  9402. +# Check hardcoding attributes.
  9403. +echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  9404. +echo "configure:3844: checking how to hardcode library paths into programs" >&5
  9405. +hardcode_action=
  9406. +if test -n "$hardcode_libdir_flag_spec" || \
  9407. + test -n "$runpath_var"; then
  9408. +
  9409. + # We can hardcode non-existant directories.
  9410. + if test "$hardcode_direct" != no &&
  9411. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9412. + # have to relink, otherwise we might link with an installed library
  9413. + # when we should be linking with a yet-to-be-installed one
  9414. + ## test "$hardcode_shlibpath_var" != no &&
  9415. + test "$hardcode_minus_L" != no; then
  9416. + # Linking always hardcodes the temporary library directory.
  9417. + hardcode_action=relink
  9418. + else
  9419. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9420. + hardcode_action=immediate
  9421. + fi
  9422. +else
  9423. + # We cannot hardcode anything, or else we can only hardcode existing
  9424. + # directories.
  9425. + hardcode_action=unsupported
  9426. +fi
  9427. +echo "$ac_t""$hardcode_action" 1>&6
  9428. +
  9429. +striplib=
  9430. +old_striplib=
  9431. +echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  9432. +echo "configure:3872: checking whether stripping libraries is possible" >&5
  9433. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9434. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9435. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9436. + echo "$ac_t""yes" 1>&6
  9437. +else
  9438. + echo "$ac_t""no" 1>&6
  9439. +fi
  9440. +
  9441. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9442. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9443. +
  9444. +# PORTME Fill in your ld.so characteristics
  9445. +echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  9446. +echo "configure:3886: checking dynamic linker characteristics" >&5
  9447. +library_names_spec=
  9448. +libname_spec='lib$name'
  9449. +soname_spec=
  9450. +postinstall_cmds=
  9451. +postuninstall_cmds=
  9452. +finish_cmds=
  9453. +finish_eval=
  9454. +shlibpath_var=
  9455. +shlibpath_overrides_runpath=unknown
  9456. +version_type=none
  9457. +dynamic_linker="$host_os ld.so"
  9458. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9459. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9460. +
  9461. +case $host_os in
  9462. +aix3*)
  9463. + version_type=linux
  9464. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  9465. + shlibpath_var=LIBPATH
  9466. +
  9467. + # AIX has no versioning support, so we append a major version to the name.
  9468. + soname_spec='${libname}${release}.so$major'
  9469. + ;;
  9470. +
  9471. +aix4* | aix5*)
  9472. + version_type=linux
  9473. + need_lib_prefix=no
  9474. + need_version=no
  9475. + hardcode_into_libs=yes
  9476. + if test "$host_cpu" = ia64; then
  9477. + # AIX 5 supports IA64
  9478. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  9479. + shlibpath_var=LD_LIBRARY_PATH
  9480. + else
  9481. + # With GCC up to 2.95.x, collect2 would create an import file
  9482. + # for dependence libraries. The import file would start with
  9483. + # the line `#! .'. This would cause the generated library to
  9484. + # depend on `.', always an invalid library. This was fixed in
  9485. + # development snapshots of GCC prior to 3.0.
  9486. + case $host_os in
  9487. + aix4 | aix4.[01] | aix4.[01].*)
  9488. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9489. + echo ' yes '
  9490. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9491. + :
  9492. + else
  9493. + can_build_shared=no
  9494. + fi
  9495. + ;;
  9496. + esac
  9497. + # AIX (on Power*) has no versioning support, so currently we can
  9498. + # not hardcode correct soname into executable. Probably we can
  9499. + # add versioning support to collect2, so additional links can
  9500. + # be useful in future.
  9501. + if test "$aix_use_runtimelinking" = yes; then
  9502. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9503. + # instead of lib<name>.a to let people know that these are not
  9504. + # typical AIX shared libraries.
  9505. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9506. + else
  9507. + # We preserve .a as extension for shared libraries through AIX4.2
  9508. + # and later when we are not doing run time linking.
  9509. + library_names_spec='${libname}${release}.a $libname.a'
  9510. + soname_spec='${libname}${release}.so$major'
  9511. + fi
  9512. + shlibpath_var=LIBPATH
  9513. + fi
  9514. + hardcode_into_libs=yes
  9515. + ;;
  9516. +
  9517. +amigaos*)
  9518. + library_names_spec='$libname.ixlibrary $libname.a'
  9519. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9520. + 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'
  9521. + ;;
  9522. +
  9523. +beos*)
  9524. + library_names_spec='${libname}.so'
  9525. + dynamic_linker="$host_os ld.so"
  9526. + shlibpath_var=LIBRARY_PATH
  9527. + ;;
  9528. +
  9529. +bsdi4*)
  9530. + version_type=linux
  9531. + need_version=no
  9532. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9533. + soname_spec='${libname}${release}.so$major'
  9534. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9535. + shlibpath_var=LD_LIBRARY_PATH
  9536. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9537. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9538. + export_dynamic_flag_spec=-rdynamic
  9539. + # the default ld.so.conf also contains /usr/contrib/lib and
  9540. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9541. + # libtool to hard-code these into programs
  9542. + ;;
  9543. +
  9544. +cygwin* | mingw* | pw32*)
  9545. + version_type=windows
  9546. + need_version=no
  9547. + need_lib_prefix=no
  9548. + case $GCC,$host_os in
  9549. + yes,cygwin*)
  9550. + library_names_spec='$libname.dll.a'
  9551. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  9552. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  9553. + dldir=$destdir/`dirname \$dlpath`~
  9554. + test -d \$dldir || mkdir -p \$dldir~
  9555. + $install_prog .libs/$dlname \$dldir/$dlname'
  9556. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9557. + dlpath=$dir/\$dldll~
  9558. + $rm \$dlpath'
  9559. + ;;
  9560. + yes,mingw*)
  9561. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  9562. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  9563. + ;;
  9564. + yes,pw32*)
  9565. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  9566. + ;;
  9567. + *)
  9568. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  9569. + ;;
  9570. + esac
  9571. + dynamic_linker='Win32 ld.exe'
  9572. + # FIXME: first we should search . and the directory the executable is in
  9573. + shlibpath_var=PATH
  9574. + ;;
  9575. +
  9576. +darwin* | rhapsody*)
  9577. + dynamic_linker="$host_os dyld"
  9578. + version_type=darwin
  9579. + need_lib_prefix=no
  9580. + need_version=no
  9581. + # FIXME: Relying on posixy $() will cause problems for
  9582. + # cross-compilation, but unfortunately the echo tests do not
  9583. + # yet detect zsh echo's removal of \ escapes.
  9584. + 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)'
  9585. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  9586. + shlibpath_overrides_runpath=yes
  9587. + shlibpath_var=DYLD_LIBRARY_PATH
  9588. + ;;
  9589. +
  9590. +freebsd1*)
  9591. + dynamic_linker=no
  9592. + ;;
  9593. +
  9594. +freebsd*-gnu*)
  9595. + version_type=linux
  9596. + need_lib_prefix=no
  9597. + need_version=no
  9598. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9599. + soname_spec='${libname}${release}.so$major'
  9600. + shlibpath_var=LD_LIBRARY_PATH
  9601. + shlibpath_overrides_runpath=no
  9602. + hardcode_into_libs=yes
  9603. + dynamic_linker='GNU/FreeBSD ld.so'
  9604. + ;;
  9605. +
  9606. +freebsd*)
  9607. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  9608. + version_type=freebsd-$objformat
  9609. + case $version_type in
  9610. + freebsd-elf*)
  9611. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  9612. + need_version=no
  9613. + need_lib_prefix=no
  9614. + ;;
  9615. + freebsd-*)
  9616. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  9617. + need_version=yes
  9618. + ;;
  9619. + esac
  9620. + shlibpath_var=LD_LIBRARY_PATH
  9621. + case $host_os in
  9622. + freebsd2*)
  9623. + shlibpath_overrides_runpath=yes
  9624. + ;;
  9625. + *)
  9626. + shlibpath_overrides_runpath=no
  9627. + hardcode_into_libs=yes
  9628. + ;;
  9629. + esac
  9630. + ;;
  9631. +
  9632. +gnu*)
  9633. + version_type=linux
  9634. + need_lib_prefix=no
  9635. + need_version=no
  9636. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  9637. + soname_spec='${libname}${release}.so$major'
  9638. + shlibpath_var=LD_LIBRARY_PATH
  9639. + hardcode_into_libs=yes
  9640. + ;;
  9641. +
  9642. +hpux9* | hpux10* | hpux11*)
  9643. + # Give a soname corresponding to the major version so that dld.sl refuses to
  9644. + # link against other versions.
  9645. + dynamic_linker="$host_os dld.sl"
  9646. + version_type=sunos
  9647. + need_lib_prefix=no
  9648. + need_version=no
  9649. + shlibpath_var=SHLIB_PATH
  9650. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9651. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  9652. + soname_spec='${libname}${release}.sl$major'
  9653. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9654. + postinstall_cmds='chmod 555 $lib'
  9655. + ;;
  9656. +
  9657. +irix5* | irix6* | nonstopux*)
  9658. + case $host_os in
  9659. + nonstopux*) version_type=nonstopux ;;
  9660. + *) version_type=irix ;;
  9661. + esac
  9662. + need_lib_prefix=no
  9663. + need_version=no
  9664. + soname_spec='${libname}${release}.so$major'
  9665. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  9666. + case $host_os in
  9667. + irix5* | nonstopux*)
  9668. + libsuff= shlibsuff=
  9669. + ;;
  9670. + *)
  9671. + case $LD in # libtool.m4 will add one of these switches to LD
  9672. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  9673. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  9674. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9675. + *) libsuff= shlibsuff= libmagic=never-match;;
  9676. + esac
  9677. + ;;
  9678. + esac
  9679. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9680. + shlibpath_overrides_runpath=no
  9681. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9682. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9683. + ;;
  9684. +
  9685. +# No shared lib support for Linux oldld, aout, or coff.
  9686. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  9687. + dynamic_linker=no
  9688. + ;;
  9689. +
  9690. +# This must be Linux ELF.
  9691. +linux-gnu*)
  9692. + version_type=linux
  9693. + need_lib_prefix=no
  9694. + need_version=no
  9695. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9696. + soname_spec='${libname}${release}.so$major'
  9697. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9698. + shlibpath_var=LD_LIBRARY_PATH
  9699. + shlibpath_overrides_runpath=no
  9700. + # This implies no fast_install, which is unacceptable.
  9701. + # Some rework will be needed to allow for fast_install
  9702. + # before this can be enabled.
  9703. + hardcode_into_libs=yes
  9704. +
  9705. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  9706. + # powerpc, because MkLinux only supported shared libraries with the
  9707. + # GNU dynamic linker. Since this was broken with cross compilers,
  9708. + # most powerpc-linux boxes support dynamic linking these days and
  9709. + # people can always --disable-shared, the test was removed, and we
  9710. + # assume the GNU/Linux dynamic linker is in use.
  9711. + dynamic_linker='GNU/Linux ld.so'
  9712. + ;;
  9713. +
  9714. +netbsd*)
  9715. + version_type=sunos
  9716. + need_lib_prefix=no
  9717. + need_version=no
  9718. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9719. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  9720. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9721. + dynamic_linker='NetBSD (a.out) ld.so'
  9722. + else
  9723. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  9724. + soname_spec='${libname}${release}.so$major'
  9725. + dynamic_linker='NetBSD ld.elf_so'
  9726. + fi
  9727. + shlibpath_var=LD_LIBRARY_PATH
  9728. + shlibpath_overrides_runpath=yes
  9729. + hardcode_into_libs=yes
  9730. + ;;
  9731. +
  9732. +newsos6)
  9733. + version_type=linux
  9734. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9735. + shlibpath_var=LD_LIBRARY_PATH
  9736. + shlibpath_overrides_runpath=yes
  9737. + ;;
  9738. +
  9739. +openbsd*)
  9740. + version_type=sunos
  9741. + need_lib_prefix=no
  9742. + need_version=no
  9743. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9744. + case "$host_os" in
  9745. + openbsd2.[89] | openbsd2.[89].*)
  9746. + shlibpath_overrides_runpath=no
  9747. + ;;
  9748. + *)
  9749. + shlibpath_overrides_runpath=yes
  9750. + ;;
  9751. + esac
  9752. + else
  9753. + shlibpath_overrides_runpath=yes
  9754. + fi
  9755. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  9756. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9757. + shlibpath_var=LD_LIBRARY_PATH
  9758. + ;;
  9759. +
  9760. +os2*)
  9761. + libname_spec='$name'
  9762. + need_lib_prefix=no
  9763. + library_names_spec='$libname.dll $libname.a'
  9764. + dynamic_linker='OS/2 ld.exe'
  9765. + shlibpath_var=LIBPATH
  9766. + ;;
  9767. +
  9768. +osf3* | osf4* | osf5*)
  9769. + version_type=osf
  9770. + need_version=no
  9771. + need_lib_prefix=no
  9772. + soname_spec='${libname}${release}.so$major'
  9773. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9774. + shlibpath_var=LD_LIBRARY_PATH
  9775. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9776. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9777. + hardcode_into_libs=yes
  9778. + ;;
  9779. +
  9780. +sco3.2v5*)
  9781. + version_type=osf
  9782. + soname_spec='${libname}${release}.so$major'
  9783. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9784. + shlibpath_var=LD_LIBRARY_PATH
  9785. + ;;
  9786. +
  9787. +solaris*)
  9788. + version_type=linux
  9789. + need_lib_prefix=no
  9790. + need_version=no
  9791. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9792. + soname_spec='${libname}${release}.so$major'
  9793. + shlibpath_var=LD_LIBRARY_PATH
  9794. + shlibpath_overrides_runpath=yes
  9795. + hardcode_into_libs=yes
  9796. + # ldd complains unless libraries are executable
  9797. + postinstall_cmds='chmod +x $lib'
  9798. + ;;
  9799. +
  9800. +sunos4*)
  9801. + version_type=sunos
  9802. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  9803. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9804. + shlibpath_var=LD_LIBRARY_PATH
  9805. + shlibpath_overrides_runpath=yes
  9806. + if test "$with_gnu_ld" = yes; then
  9807. + need_lib_prefix=no
  9808. + fi
  9809. + need_version=yes
  9810. + ;;
  9811. +
  9812. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9813. + version_type=linux
  9814. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9815. + soname_spec='${libname}${release}.so$major'
  9816. + shlibpath_var=LD_LIBRARY_PATH
  9817. + case $host_vendor in
  9818. + sni)
  9819. + shlibpath_overrides_runpath=no
  9820. + need_lib_prefix=no
  9821. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  9822. + runpath_var=LD_RUN_PATH
  9823. + ;;
  9824. + siemens)
  9825. + need_lib_prefix=no
  9826. + ;;
  9827. + motorola)
  9828. + need_lib_prefix=no
  9829. + need_version=no
  9830. + shlibpath_overrides_runpath=no
  9831. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9832. + ;;
  9833. + esac
  9834. + ;;
  9835. +
  9836. +uts4*)
  9837. + version_type=linux
  9838. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9839. + soname_spec='${libname}${release}.so$major'
  9840. + shlibpath_var=LD_LIBRARY_PATH
  9841. + ;;
  9842. +
  9843. +dgux*)
  9844. + version_type=linux
  9845. + need_lib_prefix=no
  9846. + need_version=no
  9847. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9848. + soname_spec='${libname}${release}.so$major'
  9849. + shlibpath_var=LD_LIBRARY_PATH
  9850. + ;;
  9851. +
  9852. +sysv4*MP*)
  9853. + if test -d /usr/nec ;then
  9854. + version_type=linux
  9855. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  9856. + soname_spec='$libname.so.$major'
  9857. + shlibpath_var=LD_LIBRARY_PATH
  9858. + fi
  9859. + ;;
  9860. +
  9861. +*)
  9862. + dynamic_linker=no
  9863. + ;;
  9864. +esac
  9865. +echo "$ac_t""$dynamic_linker" 1>&6
  9866. +test "$dynamic_linker" = no && can_build_shared=no
  9867. +
  9868. +# Report the final consequences.
  9869. +echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  9870. +echo "configure:4310: checking if libtool supports shared libraries" >&5
  9871. +echo "$ac_t""$can_build_shared" 1>&6
  9872. +
  9873. +echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
  9874. +echo "configure:4314: checking whether to build shared libraries" >&5
  9875. +test "$can_build_shared" = "no" && enable_shared=no
  9876. +
  9877. +# On AIX, shared libraries and static libraries use the same namespace, and
  9878. +# are all built from PIC.
  9879. +case "$host_os" in
  9880. +aix3*)
  9881. + test "$enable_shared" = yes && enable_static=no
  9882. + if test -n "$RANLIB"; then
  9883. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9884. + postinstall_cmds='$RANLIB $lib'
  9885. + fi
  9886. + ;;
  9887. +
  9888. +aix4*)
  9889. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9890. + test "$enable_shared" = yes && enable_static=no
  9891. + fi
  9892. + ;;
  9893. +esac
  9894. +echo "$ac_t""$enable_shared" 1>&6
  9895. +
  9896. +echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
  9897. +echo "configure:4337: checking whether to build static libraries" >&5
  9898. +# Make sure either enable_shared or enable_static is yes.
  9899. +test "$enable_shared" = yes || enable_static=yes
  9900. +echo "$ac_t""$enable_static" 1>&6
  9901. +
  9902. +if test "$hardcode_action" = relink; then
  9903. + # Fast installation is not supported
  9904. + enable_fast_install=no
  9905. +elif test "$shlibpath_overrides_runpath" = yes ||
  9906. + test "$enable_shared" = no; then
  9907. + # Fast installation is not necessary
  9908. + enable_fast_install=needless
  9909. +fi
  9910. +
  9911. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9912. +if test "$GCC" = yes; then
  9913. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9914. +fi
  9915. +
  9916. +if test "x$enable_dlopen" != xyes; then
  9917. + enable_dlopen=unknown
  9918. + enable_dlopen_self=unknown
  9919. + enable_dlopen_self_static=unknown
  9920. +else
  9921. + lt_cv_dlopen=no
  9922. + lt_cv_dlopen_libs=
  9923. +
  9924. + case $host_os in
  9925. + beos*)
  9926. + lt_cv_dlopen="load_add_on"
  9927. + lt_cv_dlopen_libs=
  9928. + lt_cv_dlopen_self=yes
  9929. + ;;
  9930. +
  9931. + cygwin* | mingw* | pw32*)
  9932. + lt_cv_dlopen="LoadLibrary"
  9933. + lt_cv_dlopen_libs=
  9934. + ;;
  9935. +
  9936. + *)
  9937. + echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  9938. +echo "configure:4378: checking for shl_load" >&5
  9939. +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  9940. + echo $ac_n "(cached) $ac_c" 1>&6
  9941. +else
  9942. + cat > conftest.$ac_ext <<EOF
  9943. +#line 4383 "configure"
  9944. +#include "confdefs.h"
  9945. +/* System header to define __stub macros and hopefully few prototypes,
  9946. + which can conflict with char shl_load(); below. */
  9947. +#include <assert.h>
  9948. +/* Override any gcc2 internal prototype to avoid an error. */
  9949. +/* We use char because int might match the return type of a gcc2
  9950. + builtin and then its argument prototype would still apply. */
  9951. +char shl_load();
  9952. +
  9953. +int main() {
  9954. +
  9955. +/* The GNU C library defines this for functions which it implements
  9956. + to always fail with ENOSYS. Some functions are actually named
  9957. + something starting with __ and the normal name is an alias. */
  9958. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  9959. +choke me
  9960. +#else
  9961. +shl_load();
  9962. +#endif
  9963. +
  9964. +; return 0; }
  9965. +EOF
  9966. +if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9967. + rm -rf conftest*
  9968. + eval "ac_cv_func_shl_load=yes"
  9969. +else
  9970. + echo "configure: failed program was:" >&5
  9971. + cat conftest.$ac_ext >&5
  9972. + rm -rf conftest*
  9973. + eval "ac_cv_func_shl_load=no"
  9974. +fi
  9975. +rm -f conftest*
  9976. +fi
  9977. +
  9978. +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  9979. + echo "$ac_t""yes" 1>&6
  9980. + lt_cv_dlopen="shl_load"
  9981. +else
  9982. + echo "$ac_t""no" 1>&6
  9983. +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  9984. +echo "configure:4424: checking for shl_load in -ldld" >&5
  9985. +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  9986. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9987. + echo $ac_n "(cached) $ac_c" 1>&6
  9988. +else
  9989. + ac_save_LIBS="$LIBS"
  9990. +LIBS="-ldld $LIBS"
  9991. +cat > conftest.$ac_ext <<EOF
  9992. +#line 4432 "configure"
  9993. +#include "confdefs.h"
  9994. +/* Override any gcc2 internal prototype to avoid an error. */
  9995. +/* We use char because int might match the return type of a gcc2
  9996. + builtin and then its argument prototype would still apply. */
  9997. +char shl_load();
  9998. +
  9999. +int main() {
  10000. +shl_load()
  10001. +; return 0; }
  10002. +EOF
  10003. +if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10004. + rm -rf conftest*
  10005. + eval "ac_cv_lib_$ac_lib_var=yes"
  10006. +else
  10007. + echo "configure: failed program was:" >&5
  10008. + cat conftest.$ac_ext >&5
  10009. + rm -rf conftest*
  10010. + eval "ac_cv_lib_$ac_lib_var=no"
  10011. +fi
  10012. +rm -f conftest*
  10013. +LIBS="$ac_save_LIBS"
  10014. +
  10015. +fi
  10016. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10017. + echo "$ac_t""yes" 1>&6
  10018. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10019. +else
  10020. + echo "$ac_t""no" 1>&6
  10021. +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  10022. +echo "configure:4462: checking for dlopen" >&5
  10023. +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  10024. + echo $ac_n "(cached) $ac_c" 1>&6
  10025. +else
  10026. + cat > conftest.$ac_ext <<EOF
  10027. +#line 4467 "configure"
  10028. +#include "confdefs.h"
  10029. +/* System header to define __stub macros and hopefully few prototypes,
  10030. + which can conflict with char dlopen(); below. */
  10031. +#include <assert.h>
  10032. +/* Override any gcc2 internal prototype to avoid an error. */
  10033. +/* We use char because int might match the return type of a gcc2
  10034. + builtin and then its argument prototype would still apply. */
  10035. +char dlopen();
  10036. +
  10037. +int main() {
  10038. +
  10039. +/* The GNU C library defines this for functions which it implements
  10040. + to always fail with ENOSYS. Some functions are actually named
  10041. + something starting with __ and the normal name is an alias. */
  10042. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  10043. +choke me
  10044. +#else
  10045. +dlopen();
  10046. +#endif
  10047. +
  10048. +; return 0; }
  10049. +EOF
  10050. +if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10051. + rm -rf conftest*
  10052. + eval "ac_cv_func_dlopen=yes"
  10053. +else
  10054. + echo "configure: failed program was:" >&5
  10055. + cat conftest.$ac_ext >&5
  10056. + rm -rf conftest*
  10057. + eval "ac_cv_func_dlopen=no"
  10058. +fi
  10059. +rm -f conftest*
  10060. +fi
  10061. +
  10062. +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  10063. + echo "$ac_t""yes" 1>&6
  10064. + lt_cv_dlopen="dlopen"
  10065. +else
  10066. + echo "$ac_t""no" 1>&6
  10067. +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  10068. +echo "configure:4508: checking for dlopen in -ldl" >&5
  10069. +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  10070. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10071. + echo $ac_n "(cached) $ac_c" 1>&6
  10072. +else
  10073. + ac_save_LIBS="$LIBS"
  10074. +LIBS="-ldl $LIBS"
  10075. +cat > conftest.$ac_ext <<EOF
  10076. +#line 4516 "configure"
  10077. +#include "confdefs.h"
  10078. +/* Override any gcc2 internal prototype to avoid an error. */
  10079. +/* We use char because int might match the return type of a gcc2
  10080. + builtin and then its argument prototype would still apply. */
  10081. +char dlopen();
  10082. +
  10083. +int main() {
  10084. +dlopen()
  10085. +; return 0; }
  10086. +EOF
  10087. +if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10088. + rm -rf conftest*
  10089. + eval "ac_cv_lib_$ac_lib_var=yes"
  10090. +else
  10091. + echo "configure: failed program was:" >&5
  10092. + cat conftest.$ac_ext >&5
  10093. + rm -rf conftest*
  10094. + eval "ac_cv_lib_$ac_lib_var=no"
  10095. +fi
  10096. +rm -f conftest*
  10097. +LIBS="$ac_save_LIBS"
  10098. +
  10099. +fi
  10100. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10101. + echo "$ac_t""yes" 1>&6
  10102. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10103. +else
  10104. + echo "$ac_t""no" 1>&6
  10105. +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  10106. +echo "configure:4546: checking for dlopen in -lsvld" >&5
  10107. +ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  10108. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10109. + echo $ac_n "(cached) $ac_c" 1>&6
  10110. +else
  10111. + ac_save_LIBS="$LIBS"
  10112. +LIBS="-lsvld $LIBS"
  10113. +cat > conftest.$ac_ext <<EOF
  10114. +#line 4554 "configure"
  10115. +#include "confdefs.h"
  10116. +/* Override any gcc2 internal prototype to avoid an error. */
  10117. +/* We use char because int might match the return type of a gcc2
  10118. + builtin and then its argument prototype would still apply. */
  10119. +char dlopen();
  10120. +
  10121. +int main() {
  10122. +dlopen()
  10123. +; return 0; }
  10124. +EOF
  10125. +if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10126. + rm -rf conftest*
  10127. + eval "ac_cv_lib_$ac_lib_var=yes"
  10128. +else
  10129. + echo "configure: failed program was:" >&5
  10130. + cat conftest.$ac_ext >&5
  10131. + rm -rf conftest*
  10132. + eval "ac_cv_lib_$ac_lib_var=no"
  10133. +fi
  10134. +rm -f conftest*
  10135. +LIBS="$ac_save_LIBS"
  10136. +
  10137. +fi
  10138. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10139. + echo "$ac_t""yes" 1>&6
  10140. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10141. +else
  10142. + echo "$ac_t""no" 1>&6
  10143. +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  10144. +echo "configure:4584: checking for dld_link in -ldld" >&5
  10145. +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  10146. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10147. + echo $ac_n "(cached) $ac_c" 1>&6
  10148. +else
  10149. + ac_save_LIBS="$LIBS"
  10150. +LIBS="-ldld $LIBS"
  10151. +cat > conftest.$ac_ext <<EOF
  10152. +#line 4592 "configure"
  10153. +#include "confdefs.h"
  10154. +/* Override any gcc2 internal prototype to avoid an error. */
  10155. +/* We use char because int might match the return type of a gcc2
  10156. + builtin and then its argument prototype would still apply. */
  10157. +char dld_link();
  10158. +
  10159. +int main() {
  10160. +dld_link()
  10161. +; return 0; }
  10162. +EOF
  10163. +if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10164. + rm -rf conftest*
  10165. + eval "ac_cv_lib_$ac_lib_var=yes"
  10166. +else
  10167. + echo "configure: failed program was:" >&5
  10168. + cat conftest.$ac_ext >&5
  10169. + rm -rf conftest*
  10170. + eval "ac_cv_lib_$ac_lib_var=no"
  10171. +fi
  10172. +rm -f conftest*
  10173. +LIBS="$ac_save_LIBS"
  10174. +
  10175. +fi
  10176. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10177. + echo "$ac_t""yes" 1>&6
  10178. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10179. +else
  10180. + echo "$ac_t""no" 1>&6
  10181. +fi
  10182. +
  10183. +
  10184. +fi
  10185. +
  10186. +
  10187. +fi
  10188. +
  10189. +
  10190. +fi
  10191. +
  10192. +
  10193. +fi
  10194. +
  10195. +
  10196. +fi
  10197. +
  10198. + ;;
  10199. + esac
  10200. +
  10201. + if test "x$lt_cv_dlopen" != xno; then
  10202. + enable_dlopen=yes
  10203. + else
  10204. + enable_dlopen=no
  10205. + fi
  10206. +
  10207. + case $lt_cv_dlopen in
  10208. + dlopen)
  10209. + save_CPPFLAGS="$CPPFLAGS"
  10210. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10211. +
  10212. + save_LDFLAGS="$LDFLAGS"
  10213. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10214. +
  10215. + save_LIBS="$LIBS"
  10216. + LIBS="$lt_cv_dlopen_libs $LIBS"
  10217. +
  10218. + echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  10219. +echo "configure:4659: checking whether a program can dlopen itself" >&5
  10220. +if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  10221. + echo $ac_n "(cached) $ac_c" 1>&6
  10222. +else
  10223. + if test "$cross_compiling" = yes; then :
  10224. + lt_cv_dlopen_self=cross
  10225. +else
  10226. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10227. + lt_status=$lt_dlunknown
  10228. + cat > conftest.$ac_ext <<EOF
  10229. +#line 4669 "configure"
  10230. +#include "confdefs.h"
  10231. +
  10232. +#if HAVE_DLFCN_H
  10233. +#include <dlfcn.h>
  10234. +#endif
  10235. +
  10236. +#include <stdio.h>
  10237. +
  10238. +#ifdef RTLD_GLOBAL
  10239. +# define LT_DLGLOBAL RTLD_GLOBAL
  10240. +#else
  10241. +# ifdef DL_GLOBAL
  10242. +# define LT_DLGLOBAL DL_GLOBAL
  10243. +# else
  10244. +# define LT_DLGLOBAL 0
  10245. +# endif
  10246. +#endif
  10247. +
  10248. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10249. + find out it does not work in some platform. */
  10250. +#ifndef LT_DLLAZY_OR_NOW
  10251. +# ifdef RTLD_LAZY
  10252. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  10253. +# else
  10254. +# ifdef DL_LAZY
  10255. +# define LT_DLLAZY_OR_NOW DL_LAZY
  10256. +# else
  10257. +# ifdef RTLD_NOW
  10258. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  10259. +# else
  10260. +# ifdef DL_NOW
  10261. +# define LT_DLLAZY_OR_NOW DL_NOW
  10262. +# else
  10263. +# define LT_DLLAZY_OR_NOW 0
  10264. +# endif
  10265. +# endif
  10266. +# endif
  10267. +# endif
  10268. +#endif
  10269. +
  10270. +#ifdef __cplusplus
  10271. +extern "C" void exit (int);
  10272. +#endif
  10273. +
  10274. +void fnord() { int i=42;}
  10275. +int main ()
  10276. +{
  10277. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10278. + int status = $lt_dlunknown;
  10279. +
  10280. + if (self)
  10281. + {
  10282. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10283. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10284. + /* dlclose (self); */
  10285. + }
  10286. +
  10287. + exit (status);
  10288. +}
  10289. +EOF
  10290. + if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10291. + (./conftest; exit; ) 2>/dev/null
  10292. + lt_status=$?
  10293. + case x$lt_status in
  10294. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10295. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10296. + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  10297. + esac
  10298. + else :
  10299. + # compilation failed
  10300. + lt_cv_dlopen_self=no
  10301. + fi
  10302. +fi
  10303. +rm -fr conftest*
  10304. +
  10305. +
  10306. +fi
  10307. +
  10308. +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  10309. +
  10310. + if test "x$lt_cv_dlopen_self" = xyes; then
  10311. + LDFLAGS="$LDFLAGS $link_static_flag"
  10312. + echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  10313. +echo "configure:4753: checking whether a statically linked program can dlopen itself" >&5
  10314. +if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  10315. + echo $ac_n "(cached) $ac_c" 1>&6
  10316. +else
  10317. + if test "$cross_compiling" = yes; then :
  10318. + lt_cv_dlopen_self_static=cross
  10319. +else
  10320. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10321. + lt_status=$lt_dlunknown
  10322. + cat > conftest.$ac_ext <<EOF
  10323. +#line 4763 "configure"
  10324. +#include "confdefs.h"
  10325. +
  10326. +#if HAVE_DLFCN_H
  10327. +#include <dlfcn.h>
  10328. +#endif
  10329. +
  10330. +#include <stdio.h>
  10331. +
  10332. +#ifdef RTLD_GLOBAL
  10333. +# define LT_DLGLOBAL RTLD_GLOBAL
  10334. +#else
  10335. +# ifdef DL_GLOBAL
  10336. +# define LT_DLGLOBAL DL_GLOBAL
  10337. +# else
  10338. +# define LT_DLGLOBAL 0
  10339. +# endif
  10340. +#endif
  10341. +
  10342. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10343. + find out it does not work in some platform. */
  10344. +#ifndef LT_DLLAZY_OR_NOW
  10345. +# ifdef RTLD_LAZY
  10346. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  10347. +# else
  10348. +# ifdef DL_LAZY
  10349. +# define LT_DLLAZY_OR_NOW DL_LAZY
  10350. +# else
  10351. +# ifdef RTLD_NOW
  10352. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  10353. +# else
  10354. +# ifdef DL_NOW
  10355. +# define LT_DLLAZY_OR_NOW DL_NOW
  10356. +# else
  10357. +# define LT_DLLAZY_OR_NOW 0
  10358. +# endif
  10359. +# endif
  10360. +# endif
  10361. +# endif
  10362. +#endif
  10363. +
  10364. +#ifdef __cplusplus
  10365. +extern "C" void exit (int);
  10366. +#endif
  10367. +
  10368. +void fnord() { int i=42;}
  10369. +int main ()
  10370. +{
  10371. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10372. + int status = $lt_dlunknown;
  10373. +
  10374. + if (self)
  10375. + {
  10376. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10377. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10378. + /* dlclose (self); */
  10379. + }
  10380. +
  10381. + exit (status);
  10382. +}
  10383. +EOF
  10384. + if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10385. + (./conftest; exit; ) 2>/dev/null
  10386. + lt_status=$?
  10387. + case x$lt_status in
  10388. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10389. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10390. + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  10391. + esac
  10392. + else :
  10393. + # compilation failed
  10394. + lt_cv_dlopen_self_static=no
  10395. + fi
  10396. +fi
  10397. +rm -fr conftest*
  10398. +
  10399. +
  10400. +fi
  10401. +
  10402. +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  10403. + fi
  10404. +
  10405. + CPPFLAGS="$save_CPPFLAGS"
  10406. + LDFLAGS="$save_LDFLAGS"
  10407. + LIBS="$save_LIBS"
  10408. + ;;
  10409. + esac
  10410. +
  10411. + case $lt_cv_dlopen_self in
  10412. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10413. + *) enable_dlopen_self=unknown ;;
  10414. + esac
  10415. +
  10416. + case $lt_cv_dlopen_self_static in
  10417. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10418. + *) enable_dlopen_self_static=unknown ;;
  10419. + esac
  10420. +fi
  10421. +
  10422. +
  10423. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  10424. + case $archive_cmds in
  10425. + *'~'*)
  10426. + # FIXME: we may have to deal with multi-command sequences.
  10427. + ;;
  10428. + '$CC '*)
  10429. + # Test whether the compiler implicitly links with -lc since on some
  10430. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10431. + # to ld, don't add -lc before -lgcc.
  10432. + echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  10433. +echo "configure:4873: checking whether -lc should be explicitly linked in" >&5
  10434. + if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  10435. + echo $ac_n "(cached) $ac_c" 1>&6
  10436. +else
  10437. + $rm conftest*
  10438. + echo 'static int dummy;' > conftest.$ac_ext
  10439. +
  10440. + if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10441. + soname=conftest
  10442. + lib=conftest
  10443. + libobjs=conftest.$ac_objext
  10444. + deplibs=
  10445. + wl=$lt_cv_prog_cc_wl
  10446. + compiler_flags=-v
  10447. + linker_flags=-v
  10448. + verstring=
  10449. + output_objdir=.
  10450. + libname=conftest
  10451. + save_allow_undefined_flag=$allow_undefined_flag
  10452. + allow_undefined_flag=
  10453. + 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; }
  10454. + then
  10455. + lt_cv_archive_cmds_need_lc=no
  10456. + else
  10457. + lt_cv_archive_cmds_need_lc=yes
  10458. + fi
  10459. + allow_undefined_flag=$save_allow_undefined_flag
  10460. + else
  10461. + cat conftest.err 1>&5
  10462. + fi
  10463. +fi
  10464. +
  10465. + echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  10466. + ;;
  10467. + esac
  10468. +fi
  10469. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  10470. +
  10471. +# The second clause should only fire when bootstrapping the
  10472. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  10473. +# with your package, and you will get complaints that there are
  10474. +# no rules to generate ltmain.sh.
  10475. +if test -f "$ltmain"; then
  10476. + :
  10477. +else
  10478. + # If there is no Makefile yet, we rely on a make rule to execute
  10479. + # `config.status --recheck' to rerun these tests and create the
  10480. + # libtool script then.
  10481. + test -f Makefile && make "$ltmain"
  10482. +fi
  10483. +
  10484. +if test -f "$ltmain"; then
  10485. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  10486. + $rm -f "${ofile}T"
  10487. +
  10488. + echo creating $ofile
  10489. +
  10490. + # Now quote all the things that may contain metacharacters while being
  10491. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  10492. + # variables and quote the copies for generation of the libtool script.
  10493. + for var in echo old_CC old_CFLAGS SED \
  10494. + AR AR_FLAGS CC LD LN_S NM SHELL \
  10495. + reload_flag reload_cmds wl \
  10496. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  10497. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  10498. + library_names_spec soname_spec \
  10499. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  10500. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  10501. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  10502. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  10503. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  10504. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  10505. + global_symbol_to_c_name_address \
  10506. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  10507. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10508. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  10509. +
  10510. + case $var in
  10511. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  10512. + old_postinstall_cmds | old_postuninstall_cmds | \
  10513. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  10514. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  10515. + postinstall_cmds | postuninstall_cmds | \
  10516. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10517. + # Double-quote double-evaled strings.
  10518. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10519. + ;;
  10520. + *)
  10521. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10522. + ;;
  10523. + esac
  10524. + done
  10525. +
  10526. + cat <<__EOF__ > "${ofile}T"
  10527. +#! $SHELL
  10528. +
  10529. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10530. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  10531. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10532. +#
  10533. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  10534. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  10535. +#
  10536. +# This program is free software; you can redistribute it and/or modify
  10537. +# it under the terms of the GNU General Public License as published by
  10538. +# the Free Software Foundation; either version 2 of the License, or
  10539. +# (at your option) any later version.
  10540. +#
  10541. +# This program is distributed in the hope that it will be useful, but
  10542. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  10543. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10544. +# General Public License for more details.
  10545. +#
  10546. +# You should have received a copy of the GNU General Public License
  10547. +# along with this program; if not, write to the Free Software
  10548. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  10549. +#
  10550. +# As a special exception to the GNU General Public License, if you
  10551. +# distribute this file as part of a program that contains a
  10552. +# configuration script generated by Autoconf, you may include it under
  10553. +# the same distribution terms that you use for the rest of that program.
  10554. +
  10555. +# A sed that does not truncate output.
  10556. +SED=$lt_SED
  10557. +
  10558. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10559. +Xsed="${SED} -e s/^X//"
  10560. +
  10561. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  10562. +# if CDPATH is set.
  10563. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  10564. +
  10565. +# ### BEGIN LIBTOOL CONFIG
  10566. +
  10567. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10568. +
  10569. +# Shell to use when invoking shell scripts.
  10570. +SHELL=$lt_SHELL
  10571. +
  10572. +# Whether or not to build shared libraries.
  10573. +build_libtool_libs=$enable_shared
  10574. +
  10575. +# Whether or not to build static libraries.
  10576. +build_old_libs=$enable_static
  10577. +
  10578. +# Whether or not to add -lc for building shared libraries.
  10579. +build_libtool_need_lc=$need_lc
  10580. +
  10581. +# Whether or not to optimize for fast installation.
  10582. +fast_install=$enable_fast_install
  10583. +
  10584. +# The host system.
  10585. +host_alias=$host_alias
  10586. +host=$host
  10587. +
  10588. +# An echo program that does not interpret backslashes.
  10589. +echo=$lt_echo
  10590. +
  10591. +# The archiver.
  10592. +AR=$lt_AR
  10593. +AR_FLAGS=$lt_AR_FLAGS
  10594. +
  10595. +# The default C compiler.
  10596. +CC=$lt_CC
  10597. +
  10598. +# Is the compiler the GNU C compiler?
  10599. +with_gcc=$GCC
  10600. +
  10601. +# The linker used to build libraries.
  10602. +LD=$lt_LD
  10603. +
  10604. +# Whether we need hard or soft links.
  10605. +LN_S=$lt_LN_S
  10606. +
  10607. +# A BSD-compatible nm program.
  10608. +NM=$lt_NM
  10609. +
  10610. +# A symbol stripping program
  10611. +STRIP=$STRIP
  10612. +
  10613. +# Used to examine libraries when file_magic_cmd begins "file"
  10614. +MAGIC_CMD=$MAGIC_CMD
  10615. +
  10616. +# Used on cygwin: DLL creation program.
  10617. +DLLTOOL="$DLLTOOL"
  10618. +
  10619. +# Used on cygwin: object dumper.
  10620. +OBJDUMP="$OBJDUMP"
  10621. +
  10622. +# Used on cygwin: assembler.
  10623. +AS="$AS"
  10624. +
  10625. +# The name of the directory that contains temporary libtool files.
  10626. +objdir=$objdir
  10627. +
  10628. +# How to create reloadable object files.
  10629. +reload_flag=$lt_reload_flag
  10630. +reload_cmds=$lt_reload_cmds
  10631. +
  10632. +# How to pass a linker flag through the compiler.
  10633. +wl=$lt_wl
  10634. +
  10635. +# Object file suffix (normally "o").
  10636. +objext="$ac_objext"
  10637. +
  10638. +# Old archive suffix (normally "a").
  10639. +libext="$libext"
  10640. +
  10641. +# Executable file suffix (normally "").
  10642. +exeext="$exeext"
  10643. +
  10644. +# Additional compiler flags for building library objects.
  10645. +pic_flag=$lt_pic_flag
  10646. +pic_mode=$pic_mode
  10647. +
  10648. +# Does compiler simultaneously support -c and -o options?
  10649. +compiler_c_o=$lt_compiler_c_o
  10650. +
  10651. +# Can we write directly to a .lo ?
  10652. +compiler_o_lo=$lt_compiler_o_lo
  10653. +
  10654. +# Must we lock files when doing compilation ?
  10655. +need_locks=$lt_need_locks
  10656. +
  10657. +# Do we need the lib prefix for modules?
  10658. +need_lib_prefix=$need_lib_prefix
  10659. +
  10660. +# Do we need a version for libraries?
  10661. +need_version=$need_version
  10662. +
  10663. +# Whether dlopen is supported.
  10664. +dlopen_support=$enable_dlopen
  10665. +
  10666. +# Whether dlopen of programs is supported.
  10667. +dlopen_self=$enable_dlopen_self
  10668. +
  10669. +# Whether dlopen of statically linked programs is supported.
  10670. +dlopen_self_static=$enable_dlopen_self_static
  10671. +
  10672. +# Compiler flag to prevent dynamic linking.
  10673. +link_static_flag=$lt_link_static_flag
  10674. +
  10675. +# Compiler flag to turn off builtin functions.
  10676. +no_builtin_flag=$lt_no_builtin_flag
  10677. +
  10678. +# Compiler flag to allow reflexive dlopens.
  10679. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10680. +
  10681. +# Compiler flag to generate shared objects directly from archives.
  10682. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10683. +
  10684. +# Compiler flag to generate thread-safe objects.
  10685. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  10686. +
  10687. +# Library versioning type.
  10688. +version_type=$version_type
  10689. +
  10690. +# Format of library name prefix.
  10691. +libname_spec=$lt_libname_spec
  10692. +
  10693. +# List of archive names. First name is the real one, the rest are links.
  10694. +# The last name is the one that the linker finds with -lNAME.
  10695. +library_names_spec=$lt_library_names_spec
  10696. +
  10697. +# The coded name of the library, if different from the real name.
  10698. +soname_spec=$lt_soname_spec
  10699. +
  10700. +# Commands used to build and install an old-style archive.
  10701. +RANLIB=$lt_RANLIB
  10702. +old_archive_cmds=$lt_old_archive_cmds
  10703. +old_postinstall_cmds=$lt_old_postinstall_cmds
  10704. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10705. +
  10706. +# Create an old-style archive from a shared archive.
  10707. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10708. -NM="$ac_cv_path_NM"
  10709. -echo "$ac_t""$NM" 1>&6
  10710. +# Create a temporary old-style archive to link instead of a shared archive.
  10711. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10712. -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  10713. -echo "configure:1367: checking whether ln -s works" >&5
  10714. -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  10715. - echo $ac_n "(cached) $ac_c" 1>&6
  10716. -else
  10717. - rm -f conftestdata
  10718. -if ln -s X conftestdata 2>/dev/null
  10719. -then
  10720. - rm -f conftestdata
  10721. - ac_cv_prog_LN_S="ln -s"
  10722. -else
  10723. - ac_cv_prog_LN_S=ln
  10724. -fi
  10725. -fi
  10726. -LN_S="$ac_cv_prog_LN_S"
  10727. -if test "$ac_cv_prog_LN_S" = "ln -s"; then
  10728. - echo "$ac_t""yes" 1>&6
  10729. -else
  10730. - echo "$ac_t""no" 1>&6
  10731. -fi
  10732. +# Commands used to build and install a shared archive.
  10733. +archive_cmds=$lt_archive_cmds
  10734. +archive_expsym_cmds=$lt_archive_expsym_cmds
  10735. +postinstall_cmds=$lt_postinstall_cmds
  10736. +postuninstall_cmds=$lt_postuninstall_cmds
  10737. +# Commands to strip libraries.
  10738. +old_striplib=$lt_old_striplib
  10739. +striplib=$lt_striplib
  10740. -case "$target" in
  10741. -NONE) lt_target="$host" ;;
  10742. -*) lt_target="$target" ;;
  10743. -esac
  10744. +# Method to check whether dependent libraries are shared objects.
  10745. +deplibs_check_method=$lt_deplibs_check_method
  10746. -# Check for any special flags to pass to ltconfig.
  10747. -libtool_flags="--cache-file=$cache_file"
  10748. -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  10749. -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  10750. -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  10751. -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  10752. -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  10753. +# Command to use when deplibs_check_method == file_magic.
  10754. +file_magic_cmd=$lt_file_magic_cmd
  10755. +# Flag that allows shared libraries with undefined symbols to be built.
  10756. +allow_undefined_flag=$lt_allow_undefined_flag
  10757. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  10758. -if test "${enable_libtool_lock+set}" = set; then
  10759. - enableval="$enable_libtool_lock"
  10760. - :
  10761. -fi
  10762. +# Flag that forces no undefined symbols.
  10763. +no_undefined_flag=$lt_no_undefined_flag
  10764. -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  10765. -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  10766. +# Commands used to finish a libtool library installation in a directory.
  10767. +finish_cmds=$lt_finish_cmds
  10768. -# Some flags need to be propagated to the compiler or linker for good
  10769. -# libtool support.
  10770. -case "$lt_target" in
  10771. -*-*-irix6*)
  10772. - # Find out which ABI we are using.
  10773. - echo '#line 1416 "configure"' > conftest.$ac_ext
  10774. - if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10775. - case "`/usr/bin/file conftest.o`" in
  10776. - *32-bit*)
  10777. - LD="${LD-ld} -32"
  10778. - ;;
  10779. - *N32*)
  10780. - LD="${LD-ld} -n32"
  10781. - ;;
  10782. - *64-bit*)
  10783. - LD="${LD-ld} -64"
  10784. - ;;
  10785. - esac
  10786. - fi
  10787. - rm -rf conftest*
  10788. - ;;
  10789. +# Same as above, but a single script fragment to be evaled but not shown.
  10790. +finish_eval=$lt_finish_eval
  10791. -*-*-sco3.2v5*)
  10792. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10793. - SAVE_CFLAGS="$CFLAGS"
  10794. - CFLAGS="$CFLAGS -belf"
  10795. - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  10796. -echo "configure:1438: checking whether the C compiler needs -belf" >&5
  10797. -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  10798. - echo $ac_n "(cached) $ac_c" 1>&6
  10799. -else
  10800. - cat > conftest.$ac_ext <<EOF
  10801. -#line 1443 "configure"
  10802. -#include "confdefs.h"
  10803. +# Take the output of nm and produce a listing of raw symbols and C names.
  10804. +global_symbol_pipe=$lt_global_symbol_pipe
  10805. -int main() {
  10806. +# Transform the output of nm in a proper C declaration
  10807. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  10808. -; return 0; }
  10809. -EOF
  10810. -if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10811. - rm -rf conftest*
  10812. - lt_cv_cc_needs_belf=yes
  10813. -else
  10814. - echo "configure: failed program was:" >&5
  10815. - cat conftest.$ac_ext >&5
  10816. - rm -rf conftest*
  10817. - lt_cv_cc_needs_belf=no
  10818. -fi
  10819. -rm -f conftest*
  10820. -fi
  10821. +# Transform the output of nm in a C name address pair
  10822. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  10823. -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  10824. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  10825. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10826. - CFLAGS="$SAVE_CFLAGS"
  10827. - fi
  10828. - ;;
  10829. +# This is the shared library runtime path variable.
  10830. +runpath_var=$runpath_var
  10831. +# This is the shared library path variable.
  10832. +shlibpath_var=$shlibpath_var
  10833. -esac
  10834. +# Is shlibpath searched before the hard-coded library search path?
  10835. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10836. +# How to hardcode a shared library path into an executable.
  10837. +hardcode_action=$hardcode_action
  10838. -# Save cache, so that ltconfig can load it
  10839. -cat > confcache <<\EOF
  10840. -# This file is a shell script that caches the results of configure
  10841. -# tests run on this system so they can be shared between configure
  10842. -# scripts and configure runs. It is not useful on other systems.
  10843. -# If it contains results you don't want to keep, you may remove or edit it.
  10844. +# Whether we should hardcode library paths into libraries.
  10845. +hardcode_into_libs=$hardcode_into_libs
  10846. +
  10847. +# Flag to hardcode \$libdir into a binary during linking.
  10848. +# This must work even if \$libdir does not exist.
  10849. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10850. +
  10851. +# Whether we need a single -rpath flag with a separated argument.
  10852. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10853. +
  10854. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  10855. +# resulting binary.
  10856. +hardcode_direct=$hardcode_direct
  10857. +
  10858. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10859. +# resulting binary.
  10860. +hardcode_minus_L=$hardcode_minus_L
  10861. +
  10862. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10863. +# the resulting binary.
  10864. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  10865. +
  10866. +# Variables whose values should be saved in libtool wrapper scripts and
  10867. +# restored at relink time.
  10868. +variables_saved_for_relink="$variables_saved_for_relink"
  10869. +
  10870. +# Whether libtool must link a program against all its dependency libraries.
  10871. +link_all_deplibs=$link_all_deplibs
  10872. +
  10873. +# Compile-time system search path for libraries
  10874. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10875. +
  10876. +# Run-time system search path for libraries
  10877. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10878. +
  10879. +# Fix the shell variable \$srcfile for the compiler.
  10880. +fix_srcfile_path="$fix_srcfile_path"
  10881. +
  10882. +# Set to yes if exported symbols are required.
  10883. +always_export_symbols=$always_export_symbols
  10884. +
  10885. +# The commands to list exported symbols.
  10886. +export_symbols_cmds=$lt_export_symbols_cmds
  10887. +
  10888. +# The commands to extract the exported symbol list from a shared archive.
  10889. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10890. +
  10891. +# Symbols that should not be listed in the preloaded symbols.
  10892. +exclude_expsyms=$lt_exclude_expsyms
  10893. +
  10894. +# Symbols that must always be exported.
  10895. +include_expsyms=$lt_include_expsyms
  10896. +
  10897. +# ### END LIBTOOL CONFIG
  10898. +
  10899. +__EOF__
  10900. +
  10901. + case $host_os in
  10902. + aix3*)
  10903. + cat <<\EOF >> "${ofile}T"
  10904. +
  10905. +# AIX sometimes has problems with the GCC collect2 program. For some
  10906. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  10907. +# vanish in a puff of smoke.
  10908. +if test "X${COLLECT_NAMES+set}" != Xset; then
  10909. + COLLECT_NAMES=
  10910. + export COLLECT_NAMES
  10911. +fi
  10912. +EOF
  10913. + ;;
  10914. + esac
  10915. +
  10916. + case $host_os in
  10917. + cygwin* | mingw* | pw32* | os2*)
  10918. + cat <<'EOF' >> "${ofile}T"
  10919. + # This is a source program that is used to create dlls on Windows
  10920. + # Don't remove nor modify the starting and closing comments
  10921. +# /* ltdll.c starts here */
  10922. +# #define WIN32_LEAN_AND_MEAN
  10923. +# #include <windows.h>
  10924. +# #undef WIN32_LEAN_AND_MEAN
  10925. +# #include <stdio.h>
  10926. #
  10927. -# By default, configure uses ./config.cache as the cache file,
  10928. -# creating it if it does not exist already. You can give configure
  10929. -# the --cache-file=FILE option to use a different cache file; that is
  10930. -# what configure does when it calls configure scripts in
  10931. -# subdirectories, so they share the cache.
  10932. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  10933. -# config.status only pays attention to the cache file if you give it the
  10934. -# --recheck option to rerun configure.
  10935. +# #ifndef __CYGWIN__
  10936. +# # ifdef __CYGWIN32__
  10937. +# # define __CYGWIN__ __CYGWIN32__
  10938. +# # endif
  10939. +# #endif
  10940. +#
  10941. +# #ifdef __cplusplus
  10942. +# extern "C" {
  10943. +# #endif
  10944. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10945. +# #ifdef __cplusplus
  10946. +# }
  10947. +# #endif
  10948. +#
  10949. +# #ifdef __CYGWIN__
  10950. +# #include <cygwin/cygwin_dll.h>
  10951. +# DECLARE_CYGWIN_DLL( DllMain );
  10952. +# #endif
  10953. +# HINSTANCE __hDllInstance_base;
  10954. +#
  10955. +# BOOL APIENTRY
  10956. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10957. +# {
  10958. +# __hDllInstance_base = hInst;
  10959. +# return TRUE;
  10960. +# }
  10961. +# /* ltdll.c ends here */
  10962. + # This is a source program that is used to create import libraries
  10963. + # on Windows for dlls which lack them. Don't remove nor modify the
  10964. + # starting and closing comments
  10965. +# /* impgen.c starts here */
  10966. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  10967. +#
  10968. +# This file is part of GNU libtool.
  10969. +#
  10970. +# This program is free software; you can redistribute it and/or modify
  10971. +# it under the terms of the GNU General Public License as published by
  10972. +# the Free Software Foundation; either version 2 of the License, or
  10973. +# (at your option) any later version.
  10974. +#
  10975. +# This program is distributed in the hope that it will be useful,
  10976. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  10977. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10978. +# GNU General Public License for more details.
  10979. +#
  10980. +# You should have received a copy of the GNU General Public License
  10981. +# along with this program; if not, write to the Free Software
  10982. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  10983. +# */
  10984. +#
  10985. +# #include <stdio.h> /* for printf() */
  10986. +# #include <unistd.h> /* for open(), lseek(), read() */
  10987. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  10988. +# #include <string.h> /* for strdup() */
  10989. +#
  10990. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  10991. +# #ifndef O_BINARY
  10992. +# #define O_BINARY 0
  10993. +# #endif
  10994. +#
  10995. +# static unsigned int
  10996. +# pe_get16 (fd, offset)
  10997. +# int fd;
  10998. +# int offset;
  10999. +# {
  11000. +# unsigned char b[2];
  11001. +# lseek (fd, offset, SEEK_SET);
  11002. +# read (fd, b, 2);
  11003. +# return b[0] + (b[1]<<8);
  11004. +# }
  11005. +#
  11006. +# static unsigned int
  11007. +# pe_get32 (fd, offset)
  11008. +# int fd;
  11009. +# int offset;
  11010. +# {
  11011. +# unsigned char b[4];
  11012. +# lseek (fd, offset, SEEK_SET);
  11013. +# read (fd, b, 4);
  11014. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  11015. +# }
  11016. +#
  11017. +# static unsigned int
  11018. +# pe_as32 (ptr)
  11019. +# void *ptr;
  11020. +# {
  11021. +# unsigned char *b = ptr;
  11022. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  11023. +# }
  11024. +#
  11025. +# int
  11026. +# main (argc, argv)
  11027. +# int argc;
  11028. +# char *argv[];
  11029. +# {
  11030. +# int dll;
  11031. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  11032. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  11033. +# unsigned long name_rvas, nexp;
  11034. +# unsigned char *expdata, *erva;
  11035. +# char *filename, *dll_name;
  11036. +#
  11037. +# filename = argv[1];
  11038. +#
  11039. +# dll = open(filename, O_RDONLY|O_BINARY);
  11040. +# if (dll < 1)
  11041. +# return 1;
  11042. +#
  11043. +# dll_name = filename;
  11044. +#
  11045. +# for (i=0; filename[i]; i++)
  11046. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  11047. +# dll_name = filename + i +1;
  11048. +#
  11049. +# pe_header_offset = pe_get32 (dll, 0x3c);
  11050. +# opthdr_ofs = pe_header_offset + 4 + 20;
  11051. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  11052. #
  11053. +# if (num_entries < 1) /* no exports */
  11054. +# return 1;
  11055. +#
  11056. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  11057. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  11058. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  11059. +# secptr = (pe_header_offset + 4 + 20 +
  11060. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  11061. +#
  11062. +# expptr = 0;
  11063. +# for (i = 0; i < nsections; i++)
  11064. +# {
  11065. +# char sname[8];
  11066. +# unsigned long secptr1 = secptr + 40 * i;
  11067. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  11068. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  11069. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  11070. +# lseek(dll, secptr1, SEEK_SET);
  11071. +# read(dll, sname, 8);
  11072. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  11073. +# {
  11074. +# expptr = fptr + (export_rva - vaddr);
  11075. +# if (export_rva + export_size > vaddr + vsize)
  11076. +# export_size = vsize - (export_rva - vaddr);
  11077. +# break;
  11078. +# }
  11079. +# }
  11080. +#
  11081. +# expdata = (unsigned char*)malloc(export_size);
  11082. +# lseek (dll, expptr, SEEK_SET);
  11083. +# read (dll, expdata, export_size);
  11084. +# erva = expdata - export_rva;
  11085. +#
  11086. +# nexp = pe_as32 (expdata+24);
  11087. +# name_rvas = pe_as32 (expdata+32);
  11088. +#
  11089. +# printf ("EXPORTS\n");
  11090. +# for (i = 0; i<nexp; i++)
  11091. +# {
  11092. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  11093. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  11094. +# }
  11095. +#
  11096. +# return 0;
  11097. +# }
  11098. +# /* impgen.c ends here */
  11099. +
  11100. EOF
  11101. -# The following way of writing the cache mishandles newlines in values,
  11102. -# but we know of no workaround that is simple, portable, and efficient.
  11103. -# So, don't put newlines in cache variables' values.
  11104. -# Ultrix sh set writes to stderr and can't be redirected directly,
  11105. -# and sets the high bit in the cache file unless we assign to the vars.
  11106. -(set) 2>&1 |
  11107. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11108. - *ac_space=\ *)
  11109. - # `set' does not quote correctly, so add quotes (double-quote substitution
  11110. - # turns \\\\ into \\, and sed turns \\ into \).
  11111. - sed -n \
  11112. - -e "s/'/'\\\\''/g" \
  11113. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  11114. - ;;
  11115. - *)
  11116. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  11117. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  11118. ;;
  11119. - esac >> confcache
  11120. -if cmp -s $cache_file confcache; then
  11121. - :
  11122. -else
  11123. - if test -w $cache_file; then
  11124. - echo "updating cache $cache_file"
  11125. - cat confcache > $cache_file
  11126. - else
  11127. - echo "not updating unwritable cache $cache_file"
  11128. - fi
  11129. + esac
  11130. +
  11131. + # We use sed instead of cat because bash on DJGPP gets confused if
  11132. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11133. + # text mode, it properly converts lines to CR/LF. This bash problem
  11134. + # is reportedly fixed, but why not run on old versions too?
  11135. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  11136. +
  11137. + mv -f "${ofile}T" "$ofile" || \
  11138. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  11139. + chmod +x "$ofile"
  11140. fi
  11141. -rm -f confcache
  11142. -# Actually configure libtool. ac_aux_dir is where install-sh is found.
  11143. -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  11144. -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  11145. -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  11146. -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  11147. -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  11148. -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  11149. -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  11150. -# Reload cache, that may have been modified by ltconfig
  11151. -if test -r "$cache_file"; then
  11152. - echo "loading cache $cache_file"
  11153. - . $cache_file
  11154. -else
  11155. - echo "creating cache $cache_file"
  11156. - > $cache_file
  11157. -fi
  11158. # This can be used to rebuild libtool when needed
  11159. -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  11160. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  11161. # Always use our own libtool.
  11162. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11163. -# Redirect the config.log output again, so that the ltconfig log is not
  11164. -# clobbered by the next message.
  11165. -exec 5>>./config.log
  11166. +# Prevent multiple expansion
  11167. +
  11168. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  11169. -echo "configure:1553: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11170. +echo "configure:5479: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11171. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  11172. if test "${enable_maintainer_mode+set}" = set; then
  11173. enableval="$enable_maintainer_mode"
  11174. @@ -1579,7 +5505,7 @@
  11175. fi
  11176. echo $ac_n "checking host system type""... $ac_c" 1>&6
  11177. -echo "configure:1583: checking host system type" >&5
  11178. +echo "configure:5509: checking host system type" >&5
  11179. host_alias=$host
  11180. case "$host_alias" in
  11181. @@ -1649,7 +5575,7 @@
  11182. mem_warn=false
  11183. echo $ac_n "checking whether to enable memory checking""... $ac_c" 1>&6
  11184. -echo "configure:1653: checking whether to enable memory checking" >&5
  11185. +echo "configure:5579: checking whether to enable memory checking" >&5
  11186. if test "x$enable_mem_check" = "xyes"; then
  11187. cat >> confdefs.h <<\EOF
  11188. #define ENABLE_MEM_CHECK 1
  11189. @@ -1663,7 +5589,7 @@
  11190. fi
  11191. echo $ac_n "checking whether to enable memory profiling""... $ac_c" 1>&6
  11192. -echo "configure:1667: checking whether to enable memory profiling" >&5
  11193. +echo "configure:5593: checking whether to enable memory profiling" >&5
  11194. if test "x$enable_mem_profile" = "xyes"; then
  11195. cat >> confdefs.h <<\EOF
  11196. #define ENABLE_MEM_PROFILE 1
  11197. @@ -1711,7 +5637,7 @@
  11198. # Extract the first word of "gcc", so it can be a program name with args.
  11199. set dummy gcc; ac_word=$2
  11200. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11201. -echo "configure:1715: checking for $ac_word" >&5
  11202. +echo "configure:5641: checking for $ac_word" >&5
  11203. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11204. echo $ac_n "(cached) $ac_c" 1>&6
  11205. else
  11206. @@ -1741,7 +5667,7 @@
  11207. # Extract the first word of "cc", so it can be a program name with args.
  11208. set dummy cc; ac_word=$2
  11209. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11210. -echo "configure:1745: checking for $ac_word" >&5
  11211. +echo "configure:5671: checking for $ac_word" >&5
  11212. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11213. echo $ac_n "(cached) $ac_c" 1>&6
  11214. else
  11215. @@ -1792,7 +5718,7 @@
  11216. # Extract the first word of "cl", so it can be a program name with args.
  11217. set dummy cl; ac_word=$2
  11218. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  11219. -echo "configure:1796: checking for $ac_word" >&5
  11220. +echo "configure:5722: checking for $ac_word" >&5
  11221. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  11222. echo $ac_n "(cached) $ac_c" 1>&6
  11223. else
  11224. @@ -1824,7 +5750,7 @@
  11225. fi
  11226. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  11227. -echo "configure:1828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  11228. +echo "configure:5754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  11229. ac_ext=c
  11230. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11231. @@ -1835,12 +5761,12 @@
  11232. cat > conftest.$ac_ext << EOF
  11233. -#line 1839 "configure"
  11234. +#line 5765 "configure"
  11235. #include "confdefs.h"
  11236. main(){return(0);}
  11237. EOF
  11238. -if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11239. +if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11240. ac_cv_prog_cc_works=yes
  11241. # If we can't run a trivial program, we are probably using a cross compiler.
  11242. if (./conftest; exit) 2>/dev/null; then
  11243. @@ -1866,12 +5792,12 @@
  11244. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  11245. fi
  11246. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  11247. -echo "configure:1870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  11248. +echo "configure:5796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  11249. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  11250. cross_compiling=$ac_cv_prog_cc_cross
  11251. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  11252. -echo "configure:1875: checking whether we are using GNU C" >&5
  11253. +echo "configure:5801: checking whether we are using GNU C" >&5
  11254. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  11255. echo $ac_n "(cached) $ac_c" 1>&6
  11256. else
  11257. @@ -1880,7 +5806,7 @@
  11258. yes;
  11259. #endif
  11260. EOF
  11261. -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
  11262. +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
  11263. ac_cv_prog_gcc=yes
  11264. else
  11265. ac_cv_prog_gcc=no
  11266. @@ -1899,7 +5825,7 @@
  11267. ac_save_CFLAGS="$CFLAGS"
  11268. CFLAGS=
  11269. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  11270. -echo "configure:1903: checking whether ${CC-cc} accepts -g" >&5
  11271. +echo "configure:5829: checking whether ${CC-cc} accepts -g" >&5
  11272. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  11273. echo $ac_n "(cached) $ac_c" 1>&6
  11274. else
  11275. @@ -1934,7 +5860,7 @@
  11276. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  11277. -echo "configure:1938: checking for ${CC-cc} option to accept ANSI C" >&5
  11278. +echo "configure:5864: checking for ${CC-cc} option to accept ANSI C" >&5
  11279. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  11280. echo $ac_n "(cached) $ac_c" 1>&6
  11281. else
  11282. @@ -1950,7 +5876,7 @@
  11283. do
  11284. CC="$ac_save_CC $ac_arg"
  11285. cat > conftest.$ac_ext <<EOF
  11286. -#line 1954 "configure"
  11287. +#line 5880 "configure"
  11288. #include "confdefs.h"
  11289. #include <stdarg.h>
  11290. #include <stdio.h>
  11291. @@ -1987,7 +5913,7 @@
  11292. ; return 0; }
  11293. EOF
  11294. -if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11295. +if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11296. rm -rf conftest*
  11297. am_cv_prog_cc_stdc="$ac_arg"; break
  11298. else
  11299. @@ -2022,7 +5948,7 @@
  11300. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  11301. # ./install, which can be erroneously created by make from ./install.sh.
  11302. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  11303. -echo "configure:2026: checking for a BSD compatible install" >&5
  11304. +echo "configure:5952: checking for a BSD compatible install" >&5
  11305. if test -z "$INSTALL"; then
  11306. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  11307. echo $ac_n "(cached) $ac_c" 1>&6
  11308. @@ -2095,19 +6021,19 @@
  11309. fi
  11310. echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
  11311. -echo "configure:2099: checking for extra flags to get ANSI library prototypes" >&5
  11312. +echo "configure:6025: checking for extra flags to get ANSI library prototypes" >&5
  11313. glib_save_LIBS=$LIBS
  11314. LIBS="$LIBS -lm"
  11315. if test "$cross_compiling" = yes; then
  11316. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11317. else
  11318. cat > conftest.$ac_ext <<EOF
  11319. -#line 2106 "configure"
  11320. +#line 6032 "configure"
  11321. #include "confdefs.h"
  11322. #include <math.h>
  11323. int main (void) { return (log(1) != log(1.)); }
  11324. EOF
  11325. -if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11326. +if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11327. then
  11328. echo "$ac_t""none needed" 1>&6
  11329. else
  11330. @@ -2120,12 +6046,12 @@
  11331. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11332. else
  11333. cat > conftest.$ac_ext <<EOF
  11334. -#line 2124 "configure"
  11335. +#line 6050 "configure"
  11336. #include "confdefs.h"
  11337. #include <math.h>
  11338. int main (void) { return (log(1) != log(1.)); }
  11339. EOF
  11340. -if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11341. +if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11342. then
  11343. echo "$ac_t""-std1" 1>&6
  11344. else
  11345. @@ -2148,16 +6074,16 @@
  11346. LIBS=$glib_save_LIBS
  11347. echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
  11348. -echo "configure:2152: checking for extra flags for POSIX compliance" >&5
  11349. +echo "configure:6078: checking for extra flags for POSIX compliance" >&5
  11350. cat > conftest.$ac_ext <<EOF
  11351. -#line 2154 "configure"
  11352. +#line 6080 "configure"
  11353. #include "confdefs.h"
  11354. #include <dirent.h>
  11355. int main() {
  11356. DIR *dir;
  11357. ; return 0; }
  11358. EOF
  11359. -if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11360. +if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11361. rm -rf conftest*
  11362. echo "$ac_t""none needed" 1>&6
  11363. else
  11364. @@ -2167,14 +6093,14 @@
  11365. glib_save_CFLAGS=$CFLAGS
  11366. CFLAGS="$CFLAGS -posix"
  11367. cat > conftest.$ac_ext <<EOF
  11368. -#line 2171 "configure"
  11369. +#line 6097 "configure"
  11370. #include "confdefs.h"
  11371. #include <dirent.h>
  11372. int main() {
  11373. DIR *dir;
  11374. ; return 0; }
  11375. EOF
  11376. -if { (eval echo configure:2178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11377. +if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11378. rm -rf conftest*
  11379. echo "$ac_t""-posix" 1>&6
  11380. else
  11381. @@ -2190,93 +6116,13 @@
  11382. rm -f conftest*
  11383. # Checks for header files.
  11384. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  11385. -echo "configure:2195: checking how to run the C preprocessor" >&5
  11386. -# On Suns, sometimes $CPP names a directory.
  11387. -if test -n "$CPP" && test -d "$CPP"; then
  11388. - CPP=
  11389. -fi
  11390. -if test -z "$CPP"; then
  11391. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  11392. - echo $ac_n "(cached) $ac_c" 1>&6
  11393. -else
  11394. - # This must be in double quotes, not single quotes, because CPP may get
  11395. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  11396. - CPP="${CC-cc} -E"
  11397. - # On the NeXT, cc -E runs the code through the compiler's parser,
  11398. - # not just through cpp.
  11399. - cat > conftest.$ac_ext <<EOF
  11400. -#line 2210 "configure"
  11401. -#include "confdefs.h"
  11402. -#include <assert.h>
  11403. -Syntax Error
  11404. -EOF
  11405. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11406. -{ (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11407. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11408. -if test -z "$ac_err"; then
  11409. - :
  11410. -else
  11411. - echo "$ac_err" >&5
  11412. - echo "configure: failed program was:" >&5
  11413. - cat conftest.$ac_ext >&5
  11414. - rm -rf conftest*
  11415. - CPP="${CC-cc} -E -traditional-cpp"
  11416. - cat > conftest.$ac_ext <<EOF
  11417. -#line 2227 "configure"
  11418. -#include "confdefs.h"
  11419. -#include <assert.h>
  11420. -Syntax Error
  11421. -EOF
  11422. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11423. -{ (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11424. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11425. -if test -z "$ac_err"; then
  11426. - :
  11427. -else
  11428. - echo "$ac_err" >&5
  11429. - echo "configure: failed program was:" >&5
  11430. - cat conftest.$ac_ext >&5
  11431. - rm -rf conftest*
  11432. - CPP="${CC-cc} -nologo -E"
  11433. - cat > conftest.$ac_ext <<EOF
  11434. -#line 2244 "configure"
  11435. -#include "confdefs.h"
  11436. -#include <assert.h>
  11437. -Syntax Error
  11438. -EOF
  11439. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11440. -{ (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11441. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11442. -if test -z "$ac_err"; then
  11443. - :
  11444. -else
  11445. - echo "$ac_err" >&5
  11446. - echo "configure: failed program was:" >&5
  11447. - cat conftest.$ac_ext >&5
  11448. - rm -rf conftest*
  11449. - CPP=/lib/cpp
  11450. -fi
  11451. -rm -f conftest*
  11452. -fi
  11453. -rm -f conftest*
  11454. -fi
  11455. -rm -f conftest*
  11456. - ac_cv_prog_CPP="$CPP"
  11457. -fi
  11458. - CPP="$ac_cv_prog_CPP"
  11459. -else
  11460. - ac_cv_prog_CPP="$CPP"
  11461. -fi
  11462. -echo "$ac_t""$CPP" 1>&6
  11463. -
  11464. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  11465. -echo "configure:2275: checking for ANSI C header files" >&5
  11466. +echo "configure:6121: checking for ANSI C header files" >&5
  11467. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  11468. echo $ac_n "(cached) $ac_c" 1>&6
  11469. else
  11470. cat > conftest.$ac_ext <<EOF
  11471. -#line 2280 "configure"
  11472. +#line 6126 "configure"
  11473. #include "confdefs.h"
  11474. #include <stdlib.h>
  11475. #include <stdarg.h>
  11476. @@ -2284,7 +6130,7 @@
  11477. #include <float.h>
  11478. EOF
  11479. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11480. -{ (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11481. +{ (eval echo configure:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11482. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11483. if test -z "$ac_err"; then
  11484. rm -rf conftest*
  11485. @@ -2301,7 +6147,7 @@
  11486. if test $ac_cv_header_stdc = yes; then
  11487. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11488. cat > conftest.$ac_ext <<EOF
  11489. -#line 2305 "configure"
  11490. +#line 6151 "configure"
  11491. #include "confdefs.h"
  11492. #include <string.h>
  11493. EOF
  11494. @@ -2319,7 +6165,7 @@
  11495. if test $ac_cv_header_stdc = yes; then
  11496. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11497. cat > conftest.$ac_ext <<EOF
  11498. -#line 2323 "configure"
  11499. +#line 6169 "configure"
  11500. #include "confdefs.h"
  11501. #include <stdlib.h>
  11502. EOF
  11503. @@ -2340,7 +6186,7 @@
  11504. :
  11505. else
  11506. cat > conftest.$ac_ext <<EOF
  11507. -#line 2344 "configure"
  11508. +#line 6190 "configure"
  11509. #include "confdefs.h"
  11510. #include <ctype.h>
  11511. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11512. @@ -2351,7 +6197,7 @@
  11513. exit (0); }
  11514. EOF
  11515. -if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11516. +if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11517. then
  11518. :
  11519. else
  11520. @@ -2377,12 +6223,12 @@
  11521. # Checks for library functions.
  11522. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  11523. -echo "configure:2381: checking for vprintf" >&5
  11524. +echo "configure:6227: checking for vprintf" >&5
  11525. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  11526. echo $ac_n "(cached) $ac_c" 1>&6
  11527. else
  11528. cat > conftest.$ac_ext <<EOF
  11529. -#line 2386 "configure"
  11530. +#line 6232 "configure"
  11531. #include "confdefs.h"
  11532. /* System header to define __stub macros and hopefully few prototypes,
  11533. which can conflict with char vprintf(); below. */
  11534. @@ -2405,7 +6251,7 @@
  11535. ; return 0; }
  11536. EOF
  11537. -if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11538. +if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11539. rm -rf conftest*
  11540. eval "ac_cv_func_vprintf=yes"
  11541. else
  11542. @@ -2429,12 +6275,12 @@
  11543. if test "$ac_cv_func_vprintf" != yes; then
  11544. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  11545. -echo "configure:2433: checking for _doprnt" >&5
  11546. +echo "configure:6279: checking for _doprnt" >&5
  11547. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  11548. echo $ac_n "(cached) $ac_c" 1>&6
  11549. else
  11550. cat > conftest.$ac_ext <<EOF
  11551. -#line 2438 "configure"
  11552. +#line 6284 "configure"
  11553. #include "confdefs.h"
  11554. /* System header to define __stub macros and hopefully few prototypes,
  11555. which can conflict with char _doprnt(); below. */
  11556. @@ -2457,7 +6303,7 @@
  11557. ; return 0; }
  11558. EOF
  11559. -if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11560. +if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11561. rm -rf conftest*
  11562. eval "ac_cv_func__doprnt=yes"
  11563. else
  11564. @@ -2485,12 +6331,12 @@
  11565. for ac_func in atexit on_exit
  11566. do
  11567. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  11568. -echo "configure:2489: checking for $ac_func" >&5
  11569. +echo "configure:6335: checking for $ac_func" >&5
  11570. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  11571. echo $ac_n "(cached) $ac_c" 1>&6
  11572. else
  11573. cat > conftest.$ac_ext <<EOF
  11574. -#line 2494 "configure"
  11575. +#line 6340 "configure"
  11576. #include "confdefs.h"
  11577. /* System header to define __stub macros and hopefully few prototypes,
  11578. which can conflict with char $ac_func(); below. */
  11579. @@ -2513,7 +6359,7 @@
  11580. ; return 0; }
  11581. EOF
  11582. -if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11583. +if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11584. rm -rf conftest*
  11585. eval "ac_cv_func_$ac_func=yes"
  11586. else
  11587. @@ -2539,7 +6385,7 @@
  11588. echo $ac_n "checking size of char""... $ac_c" 1>&6
  11589. -echo "configure:2543: checking size of char" >&5
  11590. +echo "configure:6389: checking size of char" >&5
  11591. if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  11592. echo $ac_n "(cached) $ac_c" 1>&6
  11593. else
  11594. @@ -2547,9 +6393,10 @@
  11595. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11596. else
  11597. cat > conftest.$ac_ext <<EOF
  11598. -#line 2551 "configure"
  11599. +#line 6397 "configure"
  11600. #include "confdefs.h"
  11601. #include <stdio.h>
  11602. +#include <sys/types.h>
  11603. main()
  11604. {
  11605. FILE *f=fopen("conftestval", "w");
  11606. @@ -2558,7 +6405,7 @@
  11607. exit(0);
  11608. }
  11609. EOF
  11610. -if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11611. +if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11612. then
  11613. ac_cv_sizeof_char=`cat conftestval`
  11614. else
  11615. @@ -2578,7 +6425,7 @@
  11616. echo $ac_n "checking size of short""... $ac_c" 1>&6
  11617. -echo "configure:2582: checking size of short" >&5
  11618. +echo "configure:6429: checking size of short" >&5
  11619. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  11620. echo $ac_n "(cached) $ac_c" 1>&6
  11621. else
  11622. @@ -2586,9 +6433,10 @@
  11623. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11624. else
  11625. cat > conftest.$ac_ext <<EOF
  11626. -#line 2590 "configure"
  11627. +#line 6437 "configure"
  11628. #include "confdefs.h"
  11629. #include <stdio.h>
  11630. +#include <sys/types.h>
  11631. main()
  11632. {
  11633. FILE *f=fopen("conftestval", "w");
  11634. @@ -2597,7 +6445,7 @@
  11635. exit(0);
  11636. }
  11637. EOF
  11638. -if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11639. +if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11640. then
  11641. ac_cv_sizeof_short=`cat conftestval`
  11642. else
  11643. @@ -2617,7 +6465,7 @@
  11644. echo $ac_n "checking size of long""... $ac_c" 1>&6
  11645. -echo "configure:2621: checking size of long" >&5
  11646. +echo "configure:6469: checking size of long" >&5
  11647. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  11648. echo $ac_n "(cached) $ac_c" 1>&6
  11649. else
  11650. @@ -2625,9 +6473,10 @@
  11651. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11652. else
  11653. cat > conftest.$ac_ext <<EOF
  11654. -#line 2629 "configure"
  11655. +#line 6477 "configure"
  11656. #include "confdefs.h"
  11657. #include <stdio.h>
  11658. +#include <sys/types.h>
  11659. main()
  11660. {
  11661. FILE *f=fopen("conftestval", "w");
  11662. @@ -2636,7 +6485,7 @@
  11663. exit(0);
  11664. }
  11665. EOF
  11666. -if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11667. +if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11668. then
  11669. ac_cv_sizeof_long=`cat conftestval`
  11670. else
  11671. @@ -2656,7 +6505,7 @@
  11672. echo $ac_n "checking size of int""... $ac_c" 1>&6
  11673. -echo "configure:2660: checking size of int" >&5
  11674. +echo "configure:6509: checking size of int" >&5
  11675. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  11676. echo $ac_n "(cached) $ac_c" 1>&6
  11677. else
  11678. @@ -2664,9 +6513,10 @@
  11679. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11680. else
  11681. cat > conftest.$ac_ext <<EOF
  11682. -#line 2668 "configure"
  11683. +#line 6517 "configure"
  11684. #include "confdefs.h"
  11685. #include <stdio.h>
  11686. +#include <sys/types.h>
  11687. main()
  11688. {
  11689. FILE *f=fopen("conftestval", "w");
  11690. @@ -2675,7 +6525,7 @@
  11691. exit(0);
  11692. }
  11693. EOF
  11694. -if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11695. +if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11696. then
  11697. ac_cv_sizeof_int=`cat conftestval`
  11698. else
  11699. @@ -2695,7 +6545,7 @@
  11700. echo $ac_n "checking size of void *""... $ac_c" 1>&6
  11701. -echo "configure:2699: checking size of void *" >&5
  11702. +echo "configure:6549: checking size of void *" >&5
  11703. if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  11704. echo $ac_n "(cached) $ac_c" 1>&6
  11705. else
  11706. @@ -2703,9 +6553,10 @@
  11707. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11708. else
  11709. cat > conftest.$ac_ext <<EOF
  11710. -#line 2707 "configure"
  11711. +#line 6557 "configure"
  11712. #include "confdefs.h"
  11713. #include <stdio.h>
  11714. +#include <sys/types.h>
  11715. main()
  11716. {
  11717. FILE *f=fopen("conftestval", "w");
  11718. @@ -2714,7 +6565,7 @@
  11719. exit(0);
  11720. }
  11721. EOF
  11722. -if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11723. +if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11724. then
  11725. ac_cv_sizeof_void_p=`cat conftestval`
  11726. else
  11727. @@ -2734,7 +6585,7 @@
  11728. echo $ac_n "checking size of long long""... $ac_c" 1>&6
  11729. -echo "configure:2738: checking size of long long" >&5
  11730. +echo "configure:6589: checking size of long long" >&5
  11731. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  11732. echo $ac_n "(cached) $ac_c" 1>&6
  11733. else
  11734. @@ -2742,9 +6593,10 @@
  11735. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11736. else
  11737. cat > conftest.$ac_ext <<EOF
  11738. -#line 2746 "configure"
  11739. +#line 6597 "configure"
  11740. #include "confdefs.h"
  11741. #include <stdio.h>
  11742. +#include <sys/types.h>
  11743. main()
  11744. {
  11745. FILE *f=fopen("conftestval", "w");
  11746. @@ -2753,7 +6605,7 @@
  11747. exit(0);
  11748. }
  11749. EOF
  11750. -if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11751. +if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11752. then
  11753. ac_cv_sizeof_long_long=`cat conftestval`
  11754. else
  11755. @@ -2774,12 +6626,12 @@
  11756. echo $ac_n "checking for working const""... $ac_c" 1>&6
  11757. -echo "configure:2778: checking for working const" >&5
  11758. +echo "configure:6630: checking for working const" >&5
  11759. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  11760. echo $ac_n "(cached) $ac_c" 1>&6
  11761. else
  11762. cat > conftest.$ac_ext <<EOF
  11763. -#line 2783 "configure"
  11764. +#line 6635 "configure"
  11765. #include "confdefs.h"
  11766. int main() {
  11767. @@ -2828,7 +6680,7 @@
  11768. ; return 0; }
  11769. EOF
  11770. -if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11771. +if { (eval echo configure:6684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11772. rm -rf conftest*
  11773. ac_cv_c_const=yes
  11774. else
  11775. @@ -2850,7 +6702,7 @@
  11776. echo $ac_n "checking for __inline""... $ac_c" 1>&6
  11777. -echo "configure:2854: checking for __inline" >&5
  11778. +echo "configure:6706: checking for __inline" >&5
  11779. if eval "test \"`echo '$''{'glib_cv_has__inline'+set}'`\" = set"; then
  11780. echo $ac_n "(cached) $ac_c" 1>&6
  11781. else
  11782. @@ -2859,14 +6711,14 @@
  11783. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11784. else
  11785. cat > conftest.$ac_ext <<EOF
  11786. -#line 2863 "configure"
  11787. +#line 6715 "configure"
  11788. #include "confdefs.h"
  11789. __inline int foo () { return 0; }
  11790. int main () { return foo (); }
  11791. EOF
  11792. -if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11793. +if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11794. then
  11795. glib_cv_has__inline=yes
  11796. @@ -2891,7 +6743,7 @@
  11797. esac
  11798. echo $ac_n "checking for __inline__""... $ac_c" 1>&6
  11799. -echo "configure:2895: checking for __inline__" >&5
  11800. +echo "configure:6747: checking for __inline__" >&5
  11801. if eval "test \"`echo '$''{'glib_cv_has__inline__'+set}'`\" = set"; then
  11802. echo $ac_n "(cached) $ac_c" 1>&6
  11803. else
  11804. @@ -2900,14 +6752,14 @@
  11805. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11806. else
  11807. cat > conftest.$ac_ext <<EOF
  11808. -#line 2904 "configure"
  11809. +#line 6756 "configure"
  11810. #include "confdefs.h"
  11811. __inline__ int foo () { return 0; }
  11812. int main () { return foo (); }
  11813. EOF
  11814. -if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11815. +if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11816. then
  11817. glib_cv_has__inline__=yes
  11818. @@ -2932,7 +6784,7 @@
  11819. esac
  11820. echo $ac_n "checking for inline""... $ac_c" 1>&6
  11821. -echo "configure:2936: checking for inline" >&5
  11822. +echo "configure:6788: checking for inline" >&5
  11823. if eval "test \"`echo '$''{'glib_cv_hasinline'+set}'`\" = set"; then
  11824. echo $ac_n "(cached) $ac_c" 1>&6
  11825. else
  11826. @@ -2941,14 +6793,14 @@
  11827. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11828. else
  11829. cat > conftest.$ac_ext <<EOF
  11830. -#line 2945 "configure"
  11831. +#line 6797 "configure"
  11832. #include "confdefs.h"
  11833. inline int foo () { return 0; }
  11834. int main () { return foo (); }
  11835. EOF
  11836. -if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11837. +if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11838. then
  11839. glib_cv_hasinline=yes
  11840. @@ -2974,14 +6826,14 @@
  11841. esac
  11842. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  11843. -echo "configure:2978: checking whether byte ordering is bigendian" >&5
  11844. +echo "configure:6830: checking whether byte ordering is bigendian" >&5
  11845. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  11846. echo $ac_n "(cached) $ac_c" 1>&6
  11847. else
  11848. ac_cv_c_bigendian=unknown
  11849. # See if sys/param.h defines the BYTE_ORDER macro.
  11850. cat > conftest.$ac_ext <<EOF
  11851. -#line 2985 "configure"
  11852. +#line 6837 "configure"
  11853. #include "confdefs.h"
  11854. #include <sys/types.h>
  11855. #include <sys/param.h>
  11856. @@ -2992,11 +6844,11 @@
  11857. #endif
  11858. ; return 0; }
  11859. EOF
  11860. -if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11861. +if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11862. rm -rf conftest*
  11863. # It does; now see whether it defined to BIG_ENDIAN or not.
  11864. cat > conftest.$ac_ext <<EOF
  11865. -#line 3000 "configure"
  11866. +#line 6852 "configure"
  11867. #include "confdefs.h"
  11868. #include <sys/types.h>
  11869. #include <sys/param.h>
  11870. @@ -3007,7 +6859,7 @@
  11871. #endif
  11872. ; return 0; }
  11873. EOF
  11874. -if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11875. +if { (eval echo configure:6863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11876. rm -rf conftest*
  11877. ac_cv_c_bigendian=yes
  11878. else
  11879. @@ -3027,7 +6879,7 @@
  11880. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  11881. else
  11882. cat > conftest.$ac_ext <<EOF
  11883. -#line 3031 "configure"
  11884. +#line 6883 "configure"
  11885. #include "confdefs.h"
  11886. main () {
  11887. /* Are we little or big endian? From Harbison&Steele. */
  11888. @@ -3040,7 +6892,7 @@
  11889. exit (u.c[sizeof (long) - 1] == 1);
  11890. }
  11891. EOF
  11892. -if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11893. +if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11894. then
  11895. ac_cv_c_bigendian=no
  11896. else
  11897. @@ -3068,17 +6920,17 @@
  11898. do
  11899. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11900. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11901. -echo "configure:3072: checking for $ac_hdr" >&5
  11902. +echo "configure:6924: checking for $ac_hdr" >&5
  11903. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11904. echo $ac_n "(cached) $ac_c" 1>&6
  11905. else
  11906. cat > conftest.$ac_ext <<EOF
  11907. -#line 3077 "configure"
  11908. +#line 6929 "configure"
  11909. #include "confdefs.h"
  11910. #include <$ac_hdr>
  11911. EOF
  11912. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11913. -{ (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11914. +{ (eval echo configure:6934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11915. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11916. if test -z "$ac_err"; then
  11917. rm -rf conftest*
  11918. @@ -3111,17 +6963,17 @@
  11919. do
  11920. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11921. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11922. -echo "configure:3115: checking for $ac_hdr" >&5
  11923. +echo "configure:6967: checking for $ac_hdr" >&5
  11924. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11925. echo $ac_n "(cached) $ac_c" 1>&6
  11926. else
  11927. cat > conftest.$ac_ext <<EOF
  11928. -#line 3120 "configure"
  11929. +#line 6972 "configure"
  11930. #include "confdefs.h"
  11931. #include <$ac_hdr>
  11932. EOF
  11933. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11934. -{ (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11935. +{ (eval echo configure:6977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11936. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11937. if test -z "$ac_err"; then
  11938. rm -rf conftest*
  11939. @@ -3154,17 +7006,17 @@
  11940. do
  11941. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11943. -echo "configure:3158: checking for $ac_hdr" >&5
  11944. +echo "configure:7010: checking for $ac_hdr" >&5
  11945. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11946. echo $ac_n "(cached) $ac_c" 1>&6
  11947. else
  11948. cat > conftest.$ac_ext <<EOF
  11949. -#line 3163 "configure"
  11950. +#line 7015 "configure"
  11951. #include "confdefs.h"
  11952. #include <$ac_hdr>
  11953. EOF
  11954. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11955. -{ (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11956. +{ (eval echo configure:7020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11957. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11958. if test -z "$ac_err"; then
  11959. rm -rf conftest*
  11960. @@ -3197,17 +7049,17 @@
  11961. do
  11962. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11963. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11964. -echo "configure:3201: checking for $ac_hdr" >&5
  11965. +echo "configure:7053: checking for $ac_hdr" >&5
  11966. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11967. echo $ac_n "(cached) $ac_c" 1>&6
  11968. else
  11969. cat > conftest.$ac_ext <<EOF
  11970. -#line 3206 "configure"
  11971. +#line 7058 "configure"
  11972. #include "confdefs.h"
  11973. #include <$ac_hdr>
  11974. EOF
  11975. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11976. -{ (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11977. +{ (eval echo configure:7063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11978. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11979. if test -z "$ac_err"; then
  11980. rm -rf conftest*
  11981. @@ -3240,17 +7092,17 @@
  11982. do
  11983. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11984. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11985. -echo "configure:3244: checking for $ac_hdr" >&5
  11986. +echo "configure:7096: checking for $ac_hdr" >&5
  11987. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11988. echo $ac_n "(cached) $ac_c" 1>&6
  11989. else
  11990. cat > conftest.$ac_ext <<EOF
  11991. -#line 3249 "configure"
  11992. +#line 7101 "configure"
  11993. #include "confdefs.h"
  11994. #include <$ac_hdr>
  11995. EOF
  11996. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11997. -{ (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11998. +{ (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11999. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12000. if test -z "$ac_err"; then
  12001. rm -rf conftest*
  12002. @@ -3283,17 +7135,17 @@
  12003. do
  12004. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12005. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12006. -echo "configure:3287: checking for $ac_hdr" >&5
  12007. +echo "configure:7139: checking for $ac_hdr" >&5
  12008. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12009. echo $ac_n "(cached) $ac_c" 1>&6
  12010. else
  12011. cat > conftest.$ac_ext <<EOF
  12012. -#line 3292 "configure"
  12013. +#line 7144 "configure"
  12014. #include "confdefs.h"
  12015. #include <$ac_hdr>
  12016. EOF
  12017. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12018. -{ (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12019. +{ (eval echo configure:7149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12020. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12021. if test -z "$ac_err"; then
  12022. rm -rf conftest*
  12023. @@ -3326,17 +7178,17 @@
  12024. do
  12025. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12026. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12027. -echo "configure:3330: checking for $ac_hdr" >&5
  12028. +echo "configure:7182: checking for $ac_hdr" >&5
  12029. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12030. echo $ac_n "(cached) $ac_c" 1>&6
  12031. else
  12032. cat > conftest.$ac_ext <<EOF
  12033. -#line 3335 "configure"
  12034. +#line 7187 "configure"
  12035. #include "confdefs.h"
  12036. #include <$ac_hdr>
  12037. EOF
  12038. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12039. -{ (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12040. +{ (eval echo configure:7192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12041. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12042. if test -z "$ac_err"; then
  12043. rm -rf conftest*
  12044. @@ -3369,17 +7221,17 @@
  12045. do
  12046. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12047. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12048. -echo "configure:3373: checking for $ac_hdr" >&5
  12049. +echo "configure:7225: checking for $ac_hdr" >&5
  12050. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12051. echo $ac_n "(cached) $ac_c" 1>&6
  12052. else
  12053. cat > conftest.$ac_ext <<EOF
  12054. -#line 3378 "configure"
  12055. +#line 7230 "configure"
  12056. #include "confdefs.h"
  12057. #include <$ac_hdr>
  12058. EOF
  12059. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12060. -{ (eval echo configure:3383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12061. +{ (eval echo configure:7235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12062. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12063. if test -z "$ac_err"; then
  12064. rm -rf conftest*
  12065. @@ -3412,17 +7264,17 @@
  12066. do
  12067. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12068. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12069. -echo "configure:3416: checking for $ac_hdr" >&5
  12070. +echo "configure:7268: checking for $ac_hdr" >&5
  12071. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12072. echo $ac_n "(cached) $ac_c" 1>&6
  12073. else
  12074. cat > conftest.$ac_ext <<EOF
  12075. -#line 3421 "configure"
  12076. +#line 7273 "configure"
  12077. #include "confdefs.h"
  12078. #include <$ac_hdr>
  12079. EOF
  12080. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12081. -{ (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12082. +{ (eval echo configure:7278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12083. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12084. if test -z "$ac_err"; then
  12085. rm -rf conftest*
  12086. @@ -3455,17 +7307,17 @@
  12087. do
  12088. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12089. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12090. -echo "configure:3459: checking for $ac_hdr" >&5
  12091. +echo "configure:7311: checking for $ac_hdr" >&5
  12092. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12093. echo $ac_n "(cached) $ac_c" 1>&6
  12094. else
  12095. cat > conftest.$ac_ext <<EOF
  12096. -#line 3464 "configure"
  12097. +#line 7316 "configure"
  12098. #include "confdefs.h"
  12099. #include <$ac_hdr>
  12100. EOF
  12101. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12102. -{ (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12103. +{ (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12104. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12105. if test -z "$ac_err"; then
  12106. rm -rf conftest*
  12107. @@ -3499,12 +7351,12 @@
  12108. for ac_func in lstat strerror strsignal memmove vsnprintf strcasecmp strncasecmp poll
  12109. do
  12110. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  12111. -echo "configure:3503: checking for $ac_func" >&5
  12112. +echo "configure:7355: checking for $ac_func" >&5
  12113. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  12114. echo $ac_n "(cached) $ac_c" 1>&6
  12115. else
  12116. cat > conftest.$ac_ext <<EOF
  12117. -#line 3508 "configure"
  12118. +#line 7360 "configure"
  12119. #include "confdefs.h"
  12120. /* System header to define __stub macros and hopefully few prototypes,
  12121. which can conflict with char $ac_func(); below. */
  12122. @@ -3527,7 +7379,7 @@
  12123. ; return 0; }
  12124. EOF
  12125. -if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12126. +if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12127. rm -rf conftest*
  12128. eval "ac_cv_func_$ac_func=yes"
  12129. else
  12130. @@ -3554,9 +7406,9 @@
  12131. # Check for sys_errlist
  12132. echo $ac_n "checking for sys_errlist""... $ac_c" 1>&6
  12133. -echo "configure:3558: checking for sys_errlist" >&5
  12134. +echo "configure:7410: checking for sys_errlist" >&5
  12135. cat > conftest.$ac_ext <<EOF
  12136. -#line 3560 "configure"
  12137. +#line 7412 "configure"
  12138. #include "confdefs.h"
  12139. int main() {
  12140. @@ -3567,7 +7419,7 @@
  12141. ; return 0; }
  12142. EOF
  12143. -if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12144. +if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12145. rm -rf conftest*
  12146. glib_ok=yes
  12147. else
  12148. @@ -3587,9 +7439,9 @@
  12149. # Check for sys_siglist
  12150. echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6
  12151. -echo "configure:3591: checking for sys_siglist" >&5
  12152. +echo "configure:7443: checking for sys_siglist" >&5
  12153. cat > conftest.$ac_ext <<EOF
  12154. -#line 3593 "configure"
  12155. +#line 7445 "configure"
  12156. #include "confdefs.h"
  12157. int main() {
  12158. @@ -3599,7 +7451,7 @@
  12159. ; return 0; }
  12160. EOF
  12161. -if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12162. +if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12163. rm -rf conftest*
  12164. glib_ok=yes
  12165. else
  12166. @@ -3619,9 +7471,9 @@
  12167. # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
  12168. echo $ac_n "checking for sys_siglist declaration""... $ac_c" 1>&6
  12169. -echo "configure:3623: checking for sys_siglist declaration" >&5
  12170. +echo "configure:7475: checking for sys_siglist declaration" >&5
  12171. cat > conftest.$ac_ext <<EOF
  12172. -#line 3625 "configure"
  12173. +#line 7477 "configure"
  12174. #include "confdefs.h"
  12175. #include <signal.h>
  12176. int main() {
  12177. @@ -3630,7 +7482,7 @@
  12178. ; return 0; }
  12179. EOF
  12180. -if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12181. +if { (eval echo configure:7486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12182. rm -rf conftest*
  12183. glib_ok=yes
  12184. else
  12185. @@ -3650,16 +7502,16 @@
  12186. # Check if <sys/select.h> needs to be included for fd_set
  12187. echo $ac_n "checking for fd_set""... $ac_c" 1>&6
  12188. -echo "configure:3654: checking for fd_set" >&5
  12189. +echo "configure:7506: checking for fd_set" >&5
  12190. cat > conftest.$ac_ext <<EOF
  12191. -#line 3656 "configure"
  12192. +#line 7508 "configure"
  12193. #include "confdefs.h"
  12194. #include <sys/types.h>
  12195. int main() {
  12196. fd_set readMask, writeMask;
  12197. ; return 0; }
  12198. EOF
  12199. -if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12200. +if { (eval echo configure:7515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12201. rm -rf conftest*
  12202. gtk_ok=yes
  12203. else
  12204. @@ -3673,7 +7525,7 @@
  12205. echo "$ac_t""yes, found in sys/types.h" 1>&6
  12206. else
  12207. cat > conftest.$ac_ext <<EOF
  12208. -#line 3677 "configure"
  12209. +#line 7529 "configure"
  12210. #include "confdefs.h"
  12211. #include <sys/select.h>
  12212. EOF
  12213. @@ -3707,14 +7559,14 @@
  12214. # Check for wchar.h
  12215. echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
  12216. -echo "configure:3711: checking for wchar.h" >&5
  12217. +echo "configure:7563: checking for wchar.h" >&5
  12218. cat > conftest.$ac_ext <<EOF
  12219. -#line 3713 "configure"
  12220. +#line 7565 "configure"
  12221. #include "confdefs.h"
  12222. #include <wchar.h>
  12223. EOF
  12224. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12225. -{ (eval echo configure:3718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12226. +{ (eval echo configure:7570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12227. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12228. if test -z "$ac_err"; then
  12229. rm -rf conftest*
  12230. @@ -3738,14 +7590,14 @@
  12231. # Check for wctype.h (for iswalnum)
  12232. echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
  12233. -echo "configure:3742: checking for wctype.h" >&5
  12234. +echo "configure:7594: checking for wctype.h" >&5
  12235. cat > conftest.$ac_ext <<EOF
  12236. -#line 3744 "configure"
  12237. +#line 7596 "configure"
  12238. #include "confdefs.h"
  12239. #include <wctype.h>
  12240. EOF
  12241. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12242. -{ (eval echo configure:3749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12243. +{ (eval echo configure:7601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12244. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12245. if test -z "$ac_err"; then
  12246. rm -rf conftest*
  12247. @@ -3769,12 +7621,12 @@
  12248. oLIBS="$LIBS"
  12249. # in Solaris 2.5, `iswalnum' is in -lw
  12250. echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
  12251. -echo "configure:3773: checking for iswalnum" >&5
  12252. +echo "configure:7625: checking for iswalnum" >&5
  12253. if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
  12254. echo $ac_n "(cached) $ac_c" 1>&6
  12255. else
  12256. cat > conftest.$ac_ext <<EOF
  12257. -#line 3778 "configure"
  12258. +#line 7630 "configure"
  12259. #include "confdefs.h"
  12260. /* System header to define __stub macros and hopefully few prototypes,
  12261. which can conflict with char iswalnum(); below. */
  12262. @@ -3797,7 +7649,7 @@
  12263. ; return 0; }
  12264. EOF
  12265. -if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12266. +if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12267. rm -rf conftest*
  12268. eval "ac_cv_func_iswalnum=yes"
  12269. else
  12270. @@ -3815,7 +7667,7 @@
  12271. else
  12272. echo "$ac_t""no" 1>&6
  12273. echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
  12274. -echo "configure:3819: checking for iswalnum in -lw" >&5
  12275. +echo "configure:7671: checking for iswalnum in -lw" >&5
  12276. ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
  12277. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12278. echo $ac_n "(cached) $ac_c" 1>&6
  12279. @@ -3823,7 +7675,7 @@
  12280. ac_save_LIBS="$LIBS"
  12281. LIBS="-lw $LIBS"
  12282. cat > conftest.$ac_ext <<EOF
  12283. -#line 3827 "configure"
  12284. +#line 7679 "configure"
  12285. #include "confdefs.h"
  12286. /* Override any gcc2 internal prototype to avoid an error. */
  12287. /* We use char because int might match the return type of a gcc2
  12288. @@ -3834,7 +7686,7 @@
  12289. iswalnum()
  12290. ; return 0; }
  12291. EOF
  12292. -if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12293. +if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12294. rm -rf conftest*
  12295. eval "ac_cv_lib_$ac_lib_var=yes"
  12296. else
  12297. @@ -3866,9 +7718,9 @@
  12298. # The following is necessary for Linux libc-5.4.38
  12299. echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
  12300. -echo "configure:3870: checking if iswalnum() and friends are properly defined" >&5
  12301. +echo "configure:7722: checking if iswalnum() and friends are properly defined" >&5
  12302. cat > conftest.$ac_ext <<EOF
  12303. -#line 3872 "configure"
  12304. +#line 7724 "configure"
  12305. #include "confdefs.h"
  12306. #include <stdlib.h>
  12307. int main() {
  12308. @@ -3888,7 +7740,7 @@
  12309. ; return 0; }
  12310. EOF
  12311. -if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12312. +if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12313. rm -rf conftest*
  12314. glib_working_wctype=yes
  12315. else
  12316. @@ -3909,7 +7761,7 @@
  12317. echo "$ac_t""$glib_working_wctype" 1>&6
  12318. echo $ac_n "checking whether realloc (NULL,) will work""... $ac_c" 1>&6
  12319. -echo "configure:3913: checking whether realloc (NULL,) will work" >&5
  12320. +echo "configure:7765: checking whether realloc (NULL,) will work" >&5
  12321. if eval "test \"`echo '$''{'glib_cv_sane_realloc'+set}'`\" = set"; then
  12322. echo $ac_n "(cached) $ac_c" 1>&6
  12323. else
  12324. @@ -3918,7 +7770,7 @@
  12325. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12326. else
  12327. cat > conftest.$ac_ext <<EOF
  12328. -#line 3922 "configure"
  12329. +#line 7774 "configure"
  12330. #include "confdefs.h"
  12331. #include <stdlib.h>
  12332. @@ -3926,7 +7778,7 @@
  12333. return realloc (0, sizeof (int)) == 0;
  12334. }
  12335. EOF
  12336. -if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12337. +if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12338. then
  12339. glib_cv_sane_realloc=yes
  12340. cat >> confdefs.h <<\EOF
  12341. @@ -3951,7 +7803,7 @@
  12342. echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
  12343. -echo "configure:3955: checking for an implementation of va_copy()" >&5
  12344. +echo "configure:7807: checking for an implementation of va_copy()" >&5
  12345. if eval "test \"`echo '$''{'glib_cv_va_copy'+set}'`\" = set"; then
  12346. echo $ac_n "(cached) $ac_c" 1>&6
  12347. else
  12348. @@ -3960,7 +7812,7 @@
  12349. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12350. else
  12351. cat > conftest.$ac_ext <<EOF
  12352. -#line 3964 "configure"
  12353. +#line 7816 "configure"
  12354. #include "confdefs.h"
  12355. #include <stdarg.h>
  12356. @@ -3977,7 +7829,7 @@
  12357. return 0;
  12358. }
  12359. EOF
  12360. -if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12361. +if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12362. then
  12363. glib_cv_va_copy=yes
  12364. @@ -3996,7 +7848,7 @@
  12365. echo "$ac_t""$glib_cv_va_copy" 1>&6
  12366. echo $ac_n "checking for an implementation of __va_copy()""... $ac_c" 1>&6
  12367. -echo "configure:4000: checking for an implementation of __va_copy()" >&5
  12368. +echo "configure:7852: checking for an implementation of __va_copy()" >&5
  12369. if eval "test \"`echo '$''{'glib_cv___va_copy'+set}'`\" = set"; then
  12370. echo $ac_n "(cached) $ac_c" 1>&6
  12371. else
  12372. @@ -4005,7 +7857,7 @@
  12373. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12374. else
  12375. cat > conftest.$ac_ext <<EOF
  12376. -#line 4009 "configure"
  12377. +#line 7861 "configure"
  12378. #include "confdefs.h"
  12379. #include <stdarg.h>
  12380. @@ -4022,7 +7874,7 @@
  12381. return 0;
  12382. }
  12383. EOF
  12384. -if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12385. +if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12386. then
  12387. glib_cv___va_copy=yes
  12388. @@ -4041,7 +7893,7 @@
  12389. echo "$ac_t""$glib_cv___va_copy" 1>&6
  12390. echo $ac_n "checking whether va_lists can be copied by value""... $ac_c" 1>&6
  12391. -echo "configure:4045: checking whether va_lists can be copied by value" >&5
  12392. +echo "configure:7897: checking whether va_lists can be copied by value" >&5
  12393. if eval "test \"`echo '$''{'glib_cv_va_val_copy'+set}'`\" = set"; then
  12394. echo $ac_n "(cached) $ac_c" 1>&6
  12395. else
  12396. @@ -4050,7 +7902,7 @@
  12397. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12398. else
  12399. cat > conftest.$ac_ext <<EOF
  12400. -#line 4054 "configure"
  12401. +#line 7906 "configure"
  12402. #include "confdefs.h"
  12403. #include <stdarg.h>
  12404. @@ -4067,7 +7919,7 @@
  12405. return 0;
  12406. }
  12407. EOF
  12408. -if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12409. +if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12410. then
  12411. glib_cv_va_val_copy=yes
  12412. @@ -4112,12 +7964,12 @@
  12413. G_MODULE_HAVE_DLERROR=0
  12414. if test -z "$G_MODULE_IMPL"; then
  12415. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  12416. -echo "configure:4116: checking for dlopen" >&5
  12417. +echo "configure:7968: checking for dlopen" >&5
  12418. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  12419. echo $ac_n "(cached) $ac_c" 1>&6
  12420. else
  12421. cat > conftest.$ac_ext <<EOF
  12422. -#line 4121 "configure"
  12423. +#line 7973 "configure"
  12424. #include "confdefs.h"
  12425. /* System header to define __stub macros and hopefully few prototypes,
  12426. which can conflict with char dlopen(); below. */
  12427. @@ -4140,7 +7992,7 @@
  12428. ; return 0; }
  12429. EOF
  12430. -if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12431. +if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12432. rm -rf conftest*
  12433. eval "ac_cv_func_dlopen=yes"
  12434. else
  12435. @@ -4155,12 +8007,12 @@
  12436. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  12437. echo "$ac_t""yes" 1>&6
  12438. echo $ac_n "checking for dlsym""... $ac_c" 1>&6
  12439. -echo "configure:4159: checking for dlsym" >&5
  12440. +echo "configure:8011: checking for dlsym" >&5
  12441. if eval "test \"`echo '$''{'ac_cv_func_dlsym'+set}'`\" = set"; then
  12442. echo $ac_n "(cached) $ac_c" 1>&6
  12443. else
  12444. cat > conftest.$ac_ext <<EOF
  12445. -#line 4164 "configure"
  12446. +#line 8016 "configure"
  12447. #include "confdefs.h"
  12448. /* System header to define __stub macros and hopefully few prototypes,
  12449. which can conflict with char dlsym(); below. */
  12450. @@ -4183,7 +8035,7 @@
  12451. ; return 0; }
  12452. EOF
  12453. -if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12454. +if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12455. rm -rf conftest*
  12456. eval "ac_cv_func_dlsym=yes"
  12457. else
  12458. @@ -4211,7 +8063,7 @@
  12459. fi
  12460. if test -z "$G_MODULE_IMPL"; then
  12461. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  12462. -echo "configure:4215: checking for dlopen in -ldl" >&5
  12463. +echo "configure:8067: checking for dlopen in -ldl" >&5
  12464. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  12465. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12466. echo $ac_n "(cached) $ac_c" 1>&6
  12467. @@ -4219,7 +8071,7 @@
  12468. ac_save_LIBS="$LIBS"
  12469. LIBS="-ldl $LIBS"
  12470. cat > conftest.$ac_ext <<EOF
  12471. -#line 4223 "configure"
  12472. +#line 8075 "configure"
  12473. #include "confdefs.h"
  12474. /* Override any gcc2 internal prototype to avoid an error. */
  12475. /* We use char because int might match the return type of a gcc2
  12476. @@ -4230,7 +8082,7 @@
  12477. dlopen()
  12478. ; return 0; }
  12479. EOF
  12480. -if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12481. +if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12482. rm -rf conftest*
  12483. eval "ac_cv_lib_$ac_lib_var=yes"
  12484. else
  12485. @@ -4246,7 +8098,7 @@
  12486. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  12487. echo "$ac_t""yes" 1>&6
  12488. echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
  12489. -echo "configure:4250: checking for dlsym in -ldl" >&5
  12490. +echo "configure:8102: checking for dlsym in -ldl" >&5
  12491. ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
  12492. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12493. echo $ac_n "(cached) $ac_c" 1>&6
  12494. @@ -4254,7 +8106,7 @@
  12495. ac_save_LIBS="$LIBS"
  12496. LIBS="-ldl $LIBS"
  12497. cat > conftest.$ac_ext <<EOF
  12498. -#line 4258 "configure"
  12499. +#line 8110 "configure"
  12500. #include "confdefs.h"
  12501. /* Override any gcc2 internal prototype to avoid an error. */
  12502. /* We use char because int might match the return type of a gcc2
  12503. @@ -4265,7 +8117,7 @@
  12504. dlsym()
  12505. ; return 0; }
  12506. EOF
  12507. -if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12508. +if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12509. rm -rf conftest*
  12510. eval "ac_cv_lib_$ac_lib_var=yes"
  12511. else
  12512. @@ -4295,18 +8147,18 @@
  12513. fi
  12514. if test -z "$G_MODULE_IMPL"; then
  12515. echo $ac_n "checking how to export all symbols""... $ac_c" 1>&6
  12516. -echo "configure:4299: checking how to export all symbols" >&5
  12517. +echo "configure:8151: checking how to export all symbols" >&5
  12518. SAVED_LDFLAGS=$LDFLAGS
  12519. LDFLAGS="$LDFLAGS -Wl,-E"
  12520. cat > conftest.$ac_ext <<EOF
  12521. -#line 4303 "configure"
  12522. +#line 8155 "configure"
  12523. #include "confdefs.h"
  12524. int main() {
  12525. return 0;
  12526. ; return 0; }
  12527. EOF
  12528. -if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12529. +if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12530. rm -rf conftest*
  12531. G_MODULE_LDFLAGS="-Wl,-E"
  12532. else
  12533. @@ -4316,14 +8168,14 @@
  12534. LDFLAGS="$SAVED_LDFLAGS -bexpall"
  12535. cat > conftest.$ac_ext <<EOF
  12536. -#line 4320 "configure"
  12537. +#line 8172 "configure"
  12538. #include "confdefs.h"
  12539. int main() {
  12540. return 0;
  12541. ; return 0; }
  12542. EOF
  12543. -if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12544. +if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12545. rm -rf conftest*
  12546. G_MODULE_LDFLAGS="-bexpall"
  12547. else
  12548. @@ -4343,7 +8195,7 @@
  12549. G_MODULE_LDFLAGS=
  12550. fi
  12551. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  12552. -echo "configure:4347: checking for shl_load in -ldld" >&5
  12553. +echo "configure:8199: checking for shl_load in -ldld" >&5
  12554. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  12555. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12556. echo $ac_n "(cached) $ac_c" 1>&6
  12557. @@ -4351,7 +8203,7 @@
  12558. ac_save_LIBS="$LIBS"
  12559. LIBS="-ldld $LIBS"
  12560. cat > conftest.$ac_ext <<EOF
  12561. -#line 4355 "configure"
  12562. +#line 8207 "configure"
  12563. #include "confdefs.h"
  12564. /* Override any gcc2 internal prototype to avoid an error. */
  12565. /* We use char because int might match the return type of a gcc2
  12566. @@ -4362,7 +8214,7 @@
  12567. shl_load()
  12568. ; return 0; }
  12569. EOF
  12570. -if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12571. +if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12572. rm -rf conftest*
  12573. eval "ac_cv_lib_$ac_lib_var=yes"
  12574. else
  12575. @@ -4396,7 +8248,7 @@
  12576. LIBS="$LIBS $G_MODULE_LIBS"
  12577. LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
  12578. echo $ac_n "checking for RTLD_GLOBAL brokenness""... $ac_c" 1>&6
  12579. -echo "configure:4400: checking for RTLD_GLOBAL brokenness" >&5
  12580. +echo "configure:8252: checking for RTLD_GLOBAL brokenness" >&5
  12581. if eval "test \"`echo '$''{'glib_cv_rtldglobal_broken'+set}'`\" = set"; then
  12582. echo $ac_n "(cached) $ac_c" 1>&6
  12583. else
  12584. @@ -4405,7 +8257,7 @@
  12585. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12586. else
  12587. cat > conftest.$ac_ext <<EOF
  12588. -#line 4409 "configure"
  12589. +#line 8261 "configure"
  12590. #include "confdefs.h"
  12591. #include <dlfcn.h>
  12592. @@ -4425,7 +8277,7 @@
  12593. return global == local;
  12594. }
  12595. EOF
  12596. -if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12597. +if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12598. then
  12599. glib_cv_rtldglobal_broken=no
  12600. else
  12601. @@ -4448,7 +8300,7 @@
  12602. G_MODULE_BROKEN_RTLD_GLOBAL=0
  12603. fi
  12604. echo $ac_n "checking for preceeding underscore in symbols""... $ac_c" 1>&6
  12605. -echo "configure:4452: checking for preceeding underscore in symbols" >&5
  12606. +echo "configure:8304: checking for preceeding underscore in symbols" >&5
  12607. if eval "test \"`echo '$''{'glib_cv_uscore'+set}'`\" = set"; then
  12608. echo $ac_n "(cached) $ac_c" 1>&6
  12609. else
  12610. @@ -4457,7 +8309,7 @@
  12611. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  12612. else
  12613. cat > conftest.$ac_ext <<EOF
  12614. -#line 4461 "configure"
  12615. +#line 8313 "configure"
  12616. #include "confdefs.h"
  12617. #include <dlfcn.h>
  12618. @@ -4471,7 +8323,7 @@
  12619. } return (!f2 || f1);
  12620. }
  12621. EOF
  12622. -if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12623. +if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12624. then
  12625. glib_cv_uscore=yes
  12626. else
  12627. @@ -4496,12 +8348,12 @@
  12628. LDFLAGS="$LDFLAGS_orig"
  12629. echo $ac_n "checking for dlerror""... $ac_c" 1>&6
  12630. -echo "configure:4500: checking for dlerror" >&5
  12631. +echo "configure:8352: checking for dlerror" >&5
  12632. if eval "test \"`echo '$''{'ac_cv_func_dlerror'+set}'`\" = set"; then
  12633. echo $ac_n "(cached) $ac_c" 1>&6
  12634. else
  12635. cat > conftest.$ac_ext <<EOF
  12636. -#line 4505 "configure"
  12637. +#line 8357 "configure"
  12638. #include "confdefs.h"
  12639. /* System header to define __stub macros and hopefully few prototypes,
  12640. which can conflict with char dlerror(); below. */
  12641. @@ -4524,7 +8376,7 @@
  12642. ; return 0; }
  12643. EOF
  12644. -if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12645. +if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12646. rm -rf conftest*
  12647. eval "ac_cv_func_dlerror=yes"
  12648. else
  12649. @@ -4608,7 +8460,7 @@
  12650. case $host in
  12651. *-*-solaris*)
  12652. echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
  12653. -echo "configure:4612: checking for cond_init in -lthread" >&5
  12654. +echo "configure:8464: checking for cond_init in -lthread" >&5
  12655. ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
  12656. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12657. echo $ac_n "(cached) $ac_c" 1>&6
  12658. @@ -4616,7 +8468,7 @@
  12659. ac_save_LIBS="$LIBS"
  12660. LIBS="-lthread $LIBS"
  12661. cat > conftest.$ac_ext <<EOF
  12662. -#line 4620 "configure"
  12663. +#line 8472 "configure"
  12664. #include "confdefs.h"
  12665. /* Override any gcc2 internal prototype to avoid an error. */
  12666. /* We use char because int might match the return type of a gcc2
  12667. @@ -4627,7 +8479,7 @@
  12668. cond_init()
  12669. ; return 0; }
  12670. EOF
  12671. -if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12672. +if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12673. rm -rf conftest*
  12674. eval "ac_cv_lib_$ac_lib_var=yes"
  12675. else
  12676. @@ -4654,17 +8506,17 @@
  12677. if test "x$have_threads" = xnone; then
  12678. ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
  12679. echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
  12680. -echo "configure:4658: checking for pthread.h" >&5
  12681. +echo "configure:8510: checking for pthread.h" >&5
  12682. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12683. echo $ac_n "(cached) $ac_c" 1>&6
  12684. else
  12685. cat > conftest.$ac_ext <<EOF
  12686. -#line 4663 "configure"
  12687. +#line 8515 "configure"
  12688. #include "confdefs.h"
  12689. #include <pthread.h>
  12690. EOF
  12691. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12692. -{ (eval echo configure:4668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12693. +{ (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12694. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12695. if test -z "$ac_err"; then
  12696. rm -rf conftest*
  12697. @@ -4690,7 +8542,7 @@
  12698. if test "x$want_threads" = xyes || test "x$want_threads" = xnspr; then
  12699. if test "x$have_threads" = xnone; then
  12700. echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
  12701. -echo "configure:4694: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  12702. +echo "configure:8546: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  12703. ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
  12704. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12705. echo $ac_n "(cached) $ac_c" 1>&6
  12706. @@ -4698,7 +8550,7 @@
  12707. ac_save_LIBS="$LIBS"
  12708. LIBS="-lnspr21 $LIBS"
  12709. cat > conftest.$ac_ext <<EOF
  12710. -#line 4702 "configure"
  12711. +#line 8554 "configure"
  12712. #include "confdefs.h"
  12713. /* Override any gcc2 internal prototype to avoid an error. */
  12714. /* We use char because int might match the return type of a gcc2
  12715. @@ -4709,7 +8561,7 @@
  12716. PRP_NewNakedCondVar()
  12717. ; return 0; }
  12718. EOF
  12719. -if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12720. +if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12721. rm -rf conftest*
  12722. eval "ac_cv_lib_$ac_lib_var=yes"
  12723. else
  12724. @@ -4733,7 +8585,7 @@
  12725. fi
  12726. echo $ac_n "checking for thread implementation""... $ac_c" 1>&6
  12727. -echo "configure:4737: checking for thread implementation" >&5
  12728. +echo "configure:8589: checking for thread implementation" >&5
  12729. if test "x$have_threads" = xnone && test "x$want_threads" != xno; then
  12730. echo "$ac_t""none available" 1>&6
  12731. @@ -4752,7 +8604,7 @@
  12732. posix)
  12733. G_THREAD_LIBS=error
  12734. echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
  12735. -echo "configure:4756: checking for pthread_attr_init in -lpthread" >&5
  12736. +echo "configure:8608: checking for pthread_attr_init in -lpthread" >&5
  12737. ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  12738. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12739. echo $ac_n "(cached) $ac_c" 1>&6
  12740. @@ -4760,7 +8612,7 @@
  12741. ac_save_LIBS="$LIBS"
  12742. LIBS="-lpthread $LIBS"
  12743. cat > conftest.$ac_ext <<EOF
  12744. -#line 4764 "configure"
  12745. +#line 8616 "configure"
  12746. #include "confdefs.h"
  12747. /* Override any gcc2 internal prototype to avoid an error. */
  12748. /* We use char because int might match the return type of a gcc2
  12749. @@ -4771,7 +8623,7 @@
  12750. pthread_attr_init()
  12751. ; return 0; }
  12752. EOF
  12753. -if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12754. +if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12755. rm -rf conftest*
  12756. eval "ac_cv_lib_$ac_lib_var=yes"
  12757. else
  12758. @@ -4793,7 +8645,7 @@
  12759. if test "x$G_THREAD_LIBS" = xerror; then
  12760. echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
  12761. -echo "configure:4797: checking for pthread_attr_init in -lpthreads" >&5
  12762. +echo "configure:8649: checking for pthread_attr_init in -lpthreads" >&5
  12763. ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  12764. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12765. echo $ac_n "(cached) $ac_c" 1>&6
  12766. @@ -4801,7 +8653,7 @@
  12767. ac_save_LIBS="$LIBS"
  12768. LIBS="-lpthreads $LIBS"
  12769. cat > conftest.$ac_ext <<EOF
  12770. -#line 4805 "configure"
  12771. +#line 8657 "configure"
  12772. #include "confdefs.h"
  12773. /* Override any gcc2 internal prototype to avoid an error. */
  12774. /* We use char because int might match the return type of a gcc2
  12775. @@ -4812,7 +8664,7 @@
  12776. pthread_attr_init()
  12777. ; return 0; }
  12778. EOF
  12779. -if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12780. +if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12781. rm -rf conftest*
  12782. eval "ac_cv_lib_$ac_lib_var=yes"
  12783. else
  12784. @@ -4835,7 +8687,7 @@
  12785. fi
  12786. if test "x$G_THREAD_LIBS" = xerror; then
  12787. echo $ac_n "checking for pthread_attr_init in -lthread""... $ac_c" 1>&6
  12788. -echo "configure:4839: checking for pthread_attr_init in -lthread" >&5
  12789. +echo "configure:8691: checking for pthread_attr_init in -lthread" >&5
  12790. ac_lib_var=`echo thread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  12791. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12792. echo $ac_n "(cached) $ac_c" 1>&6
  12793. @@ -4843,7 +8695,7 @@
  12794. ac_save_LIBS="$LIBS"
  12795. LIBS="-lthread $LIBS"
  12796. cat > conftest.$ac_ext <<EOF
  12797. -#line 4847 "configure"
  12798. +#line 8699 "configure"
  12799. #include "confdefs.h"
  12800. /* Override any gcc2 internal prototype to avoid an error. */
  12801. /* We use char because int might match the return type of a gcc2
  12802. @@ -4854,7 +8706,7 @@
  12803. pthread_attr_init()
  12804. ; return 0; }
  12805. EOF
  12806. -if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12807. +if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12808. rm -rf conftest*
  12809. eval "ac_cv_lib_$ac_lib_var=yes"
  12810. else
  12811. @@ -4877,7 +8729,7 @@
  12812. fi
  12813. if test "x$G_THREAD_LIBS" = xerror; then
  12814. echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
  12815. -echo "configure:4881: checking for pthread_attr_init in -lc_r" >&5
  12816. +echo "configure:8733: checking for pthread_attr_init in -lc_r" >&5
  12817. ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
  12818. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12819. echo $ac_n "(cached) $ac_c" 1>&6
  12820. @@ -4885,7 +8737,7 @@
  12821. ac_save_LIBS="$LIBS"
  12822. LIBS="-lc_r $LIBS"
  12823. cat > conftest.$ac_ext <<EOF
  12824. -#line 4889 "configure"
  12825. +#line 8741 "configure"
  12826. #include "confdefs.h"
  12827. /* Override any gcc2 internal prototype to avoid an error. */
  12828. /* We use char because int might match the return type of a gcc2
  12829. @@ -4896,7 +8748,7 @@
  12830. pthread_attr_init()
  12831. ; return 0; }
  12832. EOF
  12833. -if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12834. +if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12835. rm -rf conftest*
  12836. eval "ac_cv_lib_$ac_lib_var=yes"
  12837. else
  12838. @@ -4919,12 +8771,12 @@
  12839. fi
  12840. if test "x$G_THREAD_LIBS" = xerror; then
  12841. echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
  12842. -echo "configure:4923: checking for pthread_attr_init" >&5
  12843. +echo "configure:8775: checking for pthread_attr_init" >&5
  12844. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
  12845. echo $ac_n "(cached) $ac_c" 1>&6
  12846. else
  12847. cat > conftest.$ac_ext <<EOF
  12848. -#line 4928 "configure"
  12849. +#line 8780 "configure"
  12850. #include "confdefs.h"
  12851. /* System header to define __stub macros and hopefully few prototypes,
  12852. which can conflict with char pthread_attr_init(); below. */
  12853. @@ -4947,7 +8799,7 @@
  12854. ; return 0; }
  12855. EOF
  12856. -if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12857. +if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12858. rm -rf conftest*
  12859. eval "ac_cv_func_pthread_attr_init=yes"
  12860. else
  12861. @@ -4969,7 +8821,7 @@
  12862. fi
  12863. if test "x$G_THREAD_LIBS" = xerror; then
  12864. echo $ac_n "checking for __d10_pthread_attr_init in -lthread""... $ac_c" 1>&6
  12865. -echo "configure:4973: checking for __d10_pthread_attr_init in -lthread" >&5
  12866. +echo "configure:8825: checking for __d10_pthread_attr_init in -lthread" >&5
  12867. ac_lib_var=`echo thread'_'__d10_pthread_attr_init | sed 'y%./+-%__p_%'`
  12868. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12869. echo $ac_n "(cached) $ac_c" 1>&6
  12870. @@ -4977,7 +8829,7 @@
  12871. ac_save_LIBS="$LIBS"
  12872. LIBS="-lthread $LIBS"
  12873. cat > conftest.$ac_ext <<EOF
  12874. -#line 4981 "configure"
  12875. +#line 8833 "configure"
  12876. #include "confdefs.h"
  12877. /* Override any gcc2 internal prototype to avoid an error. */
  12878. /* We use char because int might match the return type of a gcc2
  12879. @@ -4988,7 +8840,7 @@
  12880. __d10_pthread_attr_init()
  12881. ; return 0; }
  12882. EOF
  12883. -if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12884. +if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12885. rm -rf conftest*
  12886. eval "ac_cv_lib_$ac_lib_var=yes"
  12887. else
  12888. @@ -5012,7 +8864,7 @@
  12889. fi
  12890. if test "x$G_THREAD_LIBS" = xerror; then
  12891. echo $ac_n "checking for __pthread_attr_init_system in -lpthread""... $ac_c" 1>&6
  12892. -echo "configure:5016: checking for __pthread_attr_init_system in -lpthread" >&5
  12893. +echo "configure:8868: checking for __pthread_attr_init_system in -lpthread" >&5
  12894. ac_lib_var=`echo pthread'_'__pthread_attr_init_system | sed 'y%./+-%__p_%'`
  12895. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12896. echo $ac_n "(cached) $ac_c" 1>&6
  12897. @@ -5020,7 +8872,7 @@
  12898. ac_save_LIBS="$LIBS"
  12899. LIBS="-lpthread $LIBS"
  12900. cat > conftest.$ac_ext <<EOF
  12901. -#line 5024 "configure"
  12902. +#line 8876 "configure"
  12903. #include "confdefs.h"
  12904. /* Override any gcc2 internal prototype to avoid an error. */
  12905. /* We use char because int might match the return type of a gcc2
  12906. @@ -5031,7 +8883,7 @@
  12907. __pthread_attr_init_system()
  12908. ; return 0; }
  12909. EOF
  12910. -if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12911. +if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12912. rm -rf conftest*
  12913. eval "ac_cv_lib_$ac_lib_var=yes"
  12914. else
  12915. @@ -5061,7 +8913,7 @@
  12916. solaris)
  12917. G_THREAD_LIBS=error
  12918. echo $ac_n "checking for cond_init in -lthread""... $ac_c" 1>&6
  12919. -echo "configure:5065: checking for cond_init in -lthread" >&5
  12920. +echo "configure:8917: checking for cond_init in -lthread" >&5
  12921. ac_lib_var=`echo thread'_'cond_init | sed 'y%./+-%__p_%'`
  12922. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12923. echo $ac_n "(cached) $ac_c" 1>&6
  12924. @@ -5069,7 +8921,7 @@
  12925. ac_save_LIBS="$LIBS"
  12926. LIBS="-lthread $LIBS"
  12927. cat > conftest.$ac_ext <<EOF
  12928. -#line 5073 "configure"
  12929. +#line 8925 "configure"
  12930. #include "confdefs.h"
  12931. /* Override any gcc2 internal prototype to avoid an error. */
  12932. /* We use char because int might match the return type of a gcc2
  12933. @@ -5080,7 +8932,7 @@
  12934. cond_init()
  12935. ; return 0; }
  12936. EOF
  12937. -if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12938. +if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12939. rm -rf conftest*
  12940. eval "ac_cv_lib_$ac_lib_var=yes"
  12941. else
  12942. @@ -5108,7 +8960,7 @@
  12943. ;;
  12944. nspr)
  12945. echo $ac_n "checking for PRP_NewNakedCondVar in -lnspr21""... $ac_c" 1>&6
  12946. -echo "configure:5112: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  12947. +echo "configure:8964: checking for PRP_NewNakedCondVar in -lnspr21" >&5
  12948. ac_lib_var=`echo nspr21'_'PRP_NewNakedCondVar | sed 'y%./+-%__p_%'`
  12949. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12950. echo $ac_n "(cached) $ac_c" 1>&6
  12951. @@ -5116,7 +8968,7 @@
  12952. ac_save_LIBS="$LIBS"
  12953. LIBS="-lnspr21 $LIBS"
  12954. cat > conftest.$ac_ext <<EOF
  12955. -#line 5120 "configure"
  12956. +#line 8972 "configure"
  12957. #include "confdefs.h"
  12958. /* Override any gcc2 internal prototype to avoid an error. */
  12959. /* We use char because int might match the return type of a gcc2
  12960. @@ -5127,7 +8979,7 @@
  12961. PRP_NewNakedCondVar()
  12962. ; return 0; }
  12963. EOF
  12964. -if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12965. +if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12966. rm -rf conftest*
  12967. eval "ac_cv_lib_$ac_lib_var=yes"
  12968. else
  12969. @@ -5163,7 +9015,7 @@
  12970. fi
  12971. echo $ac_n "checking necessary linker options""... $ac_c" 1>&6
  12972. -echo "configure:5167: checking necessary linker options" >&5
  12973. +echo "configure:9019: checking necessary linker options" >&5
  12974. echo "$ac_t""$G_THREAD_LIBS" 1>&6
  12975. @@ -5191,7 +9043,7 @@
  12976. old_CPPFLAGS=$CPPFLAGS
  12977. CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
  12978. cat > conftest.$ac_ext <<EOF
  12979. -#line 5195 "configure"
  12980. +#line 9047 "configure"
  12981. #include "confdefs.h"
  12982. #include <time.h>
  12983. EOF
  12984. @@ -5208,7 +9060,7 @@
  12985. CPPFLAGS=$old_CPPFLAGS
  12986. echo $ac_n "checking necessary compiler options""... $ac_c" 1>&6
  12987. -echo "configure:5212: checking necessary compiler options" >&5
  12988. +echo "configure:9064: checking necessary compiler options" >&5
  12989. echo "$ac_t""$G_THREAD_CFLAGS" 1>&6
  12990. else
  12991. @@ -5226,12 +9078,12 @@
  12992. for ac_func in localtime_r rand_r
  12993. do
  12994. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  12995. -echo "configure:5230: checking for $ac_func" >&5
  12996. +echo "configure:9082: checking for $ac_func" >&5
  12997. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  12998. echo $ac_n "(cached) $ac_c" 1>&6
  12999. else
  13000. cat > conftest.$ac_ext <<EOF
  13001. -#line 5235 "configure"
  13002. +#line 9087 "configure"
  13003. #include "confdefs.h"
  13004. /* System header to define __stub macros and hopefully few prototypes,
  13005. which can conflict with char $ac_func(); below. */
  13006. @@ -5254,7 +9106,7 @@
  13007. ; return 0; }
  13008. EOF
  13009. -if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13010. +if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13011. rm -rf conftest*
  13012. eval "ac_cv_func_$ac_func=yes"
  13013. else
  13014. @@ -5280,7 +9132,7 @@
  13015. if test "$ac_cv_header_pwd_h" = "yes"; then
  13016. echo $ac_n "checking for getpwuid_r""... $ac_c" 1>&6
  13017. -echo "configure:5284: checking for getpwuid_r" >&5
  13018. +echo "configure:9136: checking for getpwuid_r" >&5
  13019. if eval "test \"`echo '$''{'ac_cv_func_getpwuid_r'+set}'`\" = set"; then
  13020. echo $ac_n "(cached) $ac_c" 1>&6
  13021. else
  13022. @@ -5288,7 +9140,7 @@
  13023. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  13024. else
  13025. cat > conftest.$ac_ext <<EOF
  13026. -#line 5292 "configure"
  13027. +#line 9144 "configure"
  13028. #include "confdefs.h"
  13029. #include <errno.h>
  13030. int main () { char buffer[10000], *pointer;
  13031. @@ -5300,7 +9152,7 @@
  13032. sizeof (buffer), &pointer);
  13033. return errno == ENOSYS || error == ENOSYS;}
  13034. EOF
  13035. -if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13036. +if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13037. then
  13038. ac_cv_func_getpwuid_r=yes
  13039. else
  13040. @@ -5325,11 +9177,11 @@
  13041. fi
  13042. if test "$ac_cv_func_getpwuid_r" = "yes"; then
  13043. echo $ac_n "checking whether getpwuid_r is posix like""... $ac_c" 1>&6
  13044. -echo "configure:5329: checking whether getpwuid_r is posix like" >&5
  13045. +echo "configure:9181: checking whether getpwuid_r is posix like" >&5
  13046. # The signature for the POSIX version is:
  13047. # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **)
  13048. cat > conftest.$ac_ext <<EOF
  13049. -#line 5333 "configure"
  13050. +#line 9185 "configure"
  13051. #include "confdefs.h"
  13052. #include <pwd.h>
  13053. #include <sys/types.h>
  13054. @@ -5338,7 +9190,7 @@
  13055. getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
  13056. ; return 0; }
  13057. EOF
  13058. -if { (eval echo configure:5342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  13059. +if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  13060. rm -rf conftest*
  13061. cat >> confdefs.h <<\EOF
  13062. #define HAVE_GETPWUID_R_POSIX 1
  13063. @@ -5357,17 +9209,17 @@
  13064. if test x"$have_threads" = xposix; then
  13065. LIBS="$LIBS $G_THREAD_LIBS"
  13066. echo $ac_n "checking whether pthread_getspecific is posix like""... $ac_c" 1>&6
  13067. -echo "configure:5361: checking whether pthread_getspecific is posix like" >&5
  13068. +echo "configure:9213: checking whether pthread_getspecific is posix like" >&5
  13069. # PCThreads has pthread_getspecific(pthread_key_t, void **);
  13070. cat > conftest.$ac_ext <<EOF
  13071. -#line 5364 "configure"
  13072. +#line 9216 "configure"
  13073. #include "confdefs.h"
  13074. #include <pthread.h>
  13075. int main() {
  13076. pthread_getspecific(0,NULL);
  13077. ; return 0; }
  13078. EOF
  13079. -if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  13080. +if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  13081. rm -rf conftest*
  13082. echo "$ac_t""no" 1>&6
  13083. else
  13084. @@ -5382,20 +9234,20 @@
  13085. fi
  13086. rm -f conftest*
  13087. echo $ac_n "checking whether pthread_mutex_trylock is posix like""... $ac_c" 1>&6
  13088. -echo "configure:5386: checking whether pthread_mutex_trylock is posix like" >&5
  13089. +echo "configure:9238: checking whether pthread_mutex_trylock is posix like" >&5
  13090. # DCE Threads return 1 as success, posix 0. what a mess.
  13091. if test "$cross_compiling" = yes; then
  13092. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  13093. else
  13094. cat > conftest.$ac_ext <<EOF
  13095. -#line 5392 "configure"
  13096. +#line 9244 "configure"
  13097. #include "confdefs.h"
  13098. #include <pthread.h>
  13099. pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
  13100. int main () {
  13101. return !pthread_mutex_trylock (&mutex); }
  13102. EOF
  13103. -if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13104. +if { (eval echo configure:9251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13105. then
  13106. echo "$ac_t""no" 1>&6
  13107. else
  13108. @@ -5412,13 +9264,13 @@
  13109. fi
  13110. echo $ac_n "checking whether pthread_cond_timedwait is posix like""... $ac_c" 1>&6
  13111. -echo "configure:5416: checking whether pthread_cond_timedwait is posix like" >&5
  13112. +echo "configure:9268: checking whether pthread_cond_timedwait is posix like" >&5
  13113. # DCE Threads return -1 as failure, posix ETIMEDOUT.
  13114. if test "$cross_compiling" = yes; then
  13115. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  13116. else
  13117. cat > conftest.$ac_ext <<EOF
  13118. -#line 5422 "configure"
  13119. +#line 9274 "configure"
  13120. #include "confdefs.h"
  13121. #include <pthread.h>
  13122. int main () {
  13123. @@ -5432,7 +9284,7 @@
  13124. return pthread_cond_timedwait (&cond,&mutex,&tspec)
  13125. != -1;}
  13126. EOF
  13127. -if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13128. +if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13129. then
  13130. echo "$ac_t""no" 1>&6
  13131. else
  13132. @@ -5475,7 +9327,7 @@
  13133. case "$mutex_has_default" in
  13134. "yes")
  13135. echo $ac_n "checking size of $mutex_default_type""... $ac_c" 1>&6
  13136. -echo "configure:5479: checking size of $mutex_default_type" >&5
  13137. +echo "configure:9331: checking size of $mutex_default_type" >&5
  13138. if eval "test \"`echo '$''{'glib_cv_sizeof_gmutex'+set}'`\" = set"; then
  13139. echo $ac_n "(cached) $ac_c" 1>&6
  13140. else
  13141. @@ -5483,7 +9335,7 @@
  13142. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  13143. else
  13144. cat > conftest.$ac_ext <<EOF
  13145. -#line 5487 "configure"
  13146. +#line 9339 "configure"
  13147. #include "confdefs.h"
  13148. #include <stdio.h>
  13149. #include <$mutex_header_file>
  13150. @@ -5495,7 +9347,7 @@
  13151. exit(0);
  13152. }
  13153. EOF
  13154. -if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13155. +if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13156. then
  13157. glib_cv_sizeof_gmutex=`cat conftestval`
  13158. else
  13159. @@ -5515,7 +9367,7 @@
  13160. echo $ac_n "checking byte contents of $mutex_default_type""... $ac_c" 1>&6
  13161. -echo "configure:5519: checking byte contents of $mutex_default_type" >&5
  13162. +echo "configure:9371: checking byte contents of $mutex_default_type" >&5
  13163. if eval "test \"`echo '$''{'glib_cv_byte_contents_gmutex'+set}'`\" = set"; then
  13164. echo $ac_n "(cached) $ac_c" 1>&6
  13165. else
  13166. @@ -5523,7 +9375,7 @@
  13167. glib_cv_byte_contents_gmutex=0
  13168. else
  13169. cat > conftest.$ac_ext <<EOF
  13170. -#line 5527 "configure"
  13171. +#line 9379 "configure"
  13172. #include "confdefs.h"
  13173. #include <stdio.h>
  13174. #include <$mutex_header_file>
  13175. @@ -5540,7 +9392,7 @@
  13176. exit(0);
  13177. }
  13178. EOF
  13179. -if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13180. +if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13181. then
  13182. glib_cv_byte_contents_gmutex=`cat conftestval`
  13183. else
  13184. @@ -5576,7 +9428,7 @@
  13185. glib_nl='\n'
  13186. fi
  13187. echo $ac_n "checking system definitions for $glib_sysdef_msg""... $ac_c" 1>&6
  13188. -echo "configure:5580: checking system definitions for $glib_sysdef_msg" >&5
  13189. +echo "configure:9432: checking system definitions for $glib_sysdef_msg" >&5
  13190. cat >confrun.c <<_______EOF
  13191. #include <stdio.h>
  13192. #include <sys/types.h>
  13193. @@ -5603,11 +9455,11 @@
  13194. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  13195. else
  13196. cat > conftest.$ac_ext <<EOF
  13197. -#line 5607 "configure"
  13198. +#line 9459 "configure"
  13199. #include "confdefs.h"
  13200. `cat confrun.c`
  13201. EOF
  13202. -if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13203. +if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13204. then
  13205. echo "$ac_t""done" 1>&6
  13206. else
  13207. @@ -5813,16 +9665,20 @@
  13208. s%@build_cpu@%$build_cpu%g
  13209. s%@build_vendor@%$build_vendor%g
  13210. s%@build_os@%$build_os%g
  13211. -s%@RANLIB@%$RANLIB%g
  13212. s%@CC@%$CC%g
  13213. s%@LN_S@%$LN_S%g
  13214. +s%@OBJEXT@%$OBJEXT%g
  13215. +s%@EXEEXT@%$EXEEXT%g
  13216. +s%@ECHO@%$ECHO%g
  13217. +s%@RANLIB@%$RANLIB%g
  13218. +s%@STRIP@%$STRIP%g
  13219. +s%@CPP@%$CPP%g
  13220. s%@LIBTOOL@%$LIBTOOL%g
  13221. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  13222. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  13223. s%@MAINT@%$MAINT%g
  13224. s%@ENABLE_MEM_CHECK@%$ENABLE_MEM_CHECK%g
  13225. s%@ENABLE_MEM_PROFILE@%$ENABLE_MEM_PROFILE%g
  13226. -s%@CPP@%$CPP%g
  13227. s%@G_MODULE_IMPL@%$G_MODULE_IMPL%g
  13228. s%@G_MODULE_LIBS@%$G_MODULE_LIBS%g
  13229. s%@G_MODULE_LDFLAGS@%$G_MODULE_LDFLAGS%g
  13230. --- glib1.2-1.2.10.orig/ltmain.sh
  13231. +++ glib1.2-1.2.10/ltmain.sh
  13232. @@ -1,7 +1,8 @@
  13233. # ltmain.sh - Provide generalized library-building support services.
  13234. -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
  13235. +# NOTE: Changing this file will not affect anything until you rerun configure.
  13236. #
  13237. -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
  13238. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  13239. +# Free Software Foundation, Inc.
  13240. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  13241. #
  13242. # This program is free software; you can redistribute it and/or modify
  13243. @@ -48,14 +49,14 @@
  13244. fi
  13245. # The name of this program.
  13246. -progname=`$echo "$0" | sed 's%^.*/%%'`
  13247. +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  13248. modename="$progname"
  13249. # Constants.
  13250. PROGRAM=ltmain.sh
  13251. PACKAGE=libtool
  13252. -VERSION=1.3.4
  13253. -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
  13254. +VERSION=1.4.3
  13255. +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
  13256. default_mode=
  13257. help="Try \`$progname --help' for more information."
  13258. @@ -66,10 +67,19 @@
  13259. # Sed substitution that helps us do robust quoting. It backslashifies
  13260. # metacharacters that are still active within double-quoted strings.
  13261. -Xsed='sed -e 1s/^X//'
  13262. +Xsed="${SED}"' -e 1s/^X//'
  13263. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  13264. -SP2NL='tr \040 \012'
  13265. -NL2SP='tr \015\012 \040\040'
  13266. +# test EBCDIC or ASCII
  13267. +case `echo A|od -x` in
  13268. + *[Cc]1*) # EBCDIC based system
  13269. + SP2NL="tr '\100' '\n'"
  13270. + NL2SP="tr '\r\n' '\100\100'"
  13271. + ;;
  13272. + *) # Assume ASCII based system
  13273. + SP2NL="tr '\040' '\012'"
  13274. + NL2SP="tr '\015\012' '\040\040'"
  13275. + ;;
  13276. +esac
  13277. # NLS nuisances.
  13278. # Only set LANG and LC_ALL to C if already set.
  13279. @@ -83,11 +93,8 @@
  13280. save_LANG="$LANG"; LANG=C; export LANG
  13281. fi
  13282. -if test "$LTCONFIG_VERSION" != "$VERSION"; then
  13283. - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
  13284. - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  13285. - exit 1
  13286. -fi
  13287. +# Make sure IFS has a sensible default
  13288. +: ${IFS=" "}
  13289. if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  13290. echo "$modename: not configured to build any kind of library" 1>&2
  13291. @@ -113,16 +120,16 @@
  13292. arg="$1"
  13293. shift
  13294. - case "$arg" in
  13295. + case $arg in
  13296. -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  13297. *) optarg= ;;
  13298. esac
  13299. # If the previous option needs an argument, assign it.
  13300. if test -n "$prev"; then
  13301. - case "$prev" in
  13302. + case $prev in
  13303. execute_dlfiles)
  13304. - eval "$prev=\"\$$prev \$arg\""
  13305. + execute_dlfiles="$execute_dlfiles $arg"
  13306. ;;
  13307. *)
  13308. eval "$prev=\$arg"
  13309. @@ -135,7 +142,7 @@
  13310. fi
  13311. # Have we seen a non-optional argument yet?
  13312. - case "$arg" in
  13313. + case $arg in
  13314. --help)
  13315. show_help=yes
  13316. ;;
  13317. @@ -146,7 +153,7 @@
  13318. ;;
  13319. --config)
  13320. - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
  13321. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  13322. exit 0
  13323. ;;
  13324. @@ -179,6 +186,8 @@
  13325. --mode) prevopt="--mode" prev=mode ;;
  13326. --mode=*) mode="$optarg" ;;
  13327. + --preserve-dup-deps) duplicate_deps="yes" ;;
  13328. +
  13329. --quiet | --silent)
  13330. show=:
  13331. ;;
  13332. @@ -207,16 +216,21 @@
  13333. exit 1
  13334. fi
  13335. +# If this variable is set in any of the actions, the command in it
  13336. +# will be execed at the end. This prevents here-documents from being
  13337. +# left over by shells.
  13338. +exec_cmd=
  13339. +
  13340. if test -z "$show_help"; then
  13341. # Infer the operation mode.
  13342. if test -z "$mode"; then
  13343. - case "$nonopt" in
  13344. - *cc | *++ | gcc* | *-gcc*)
  13345. + case $nonopt in
  13346. + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
  13347. mode=link
  13348. for arg
  13349. do
  13350. - case "$arg" in
  13351. + case $arg in
  13352. -c)
  13353. mode=compile
  13354. break
  13355. @@ -261,12 +275,13 @@
  13356. help="Try \`$modename --help --mode=$mode' for more information."
  13357. # These modes are in order of execution frequency so that they run quickly.
  13358. - case "$mode" in
  13359. + case $mode in
  13360. # libtool compile mode
  13361. compile)
  13362. modename="$modename: compile"
  13363. # Get the compilation command and the source file.
  13364. base_compile=
  13365. + prev=
  13366. lastarg=
  13367. srcfile="$nonopt"
  13368. suppress_output=
  13369. @@ -274,8 +289,34 @@
  13370. user_target=no
  13371. for arg
  13372. do
  13373. + case $prev in
  13374. + "") ;;
  13375. + xcompiler)
  13376. + # Aesthetically quote the previous argument.
  13377. + prev=
  13378. + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  13379. +
  13380. + case $arg in
  13381. + # Double-quote args containing other shell metacharacters.
  13382. + # Many Bourne shells cannot handle close brackets correctly
  13383. + # in scan sets, so we specify it separately.
  13384. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  13385. + arg="\"$arg\""
  13386. + ;;
  13387. + esac
  13388. +
  13389. + # Add the previous argument to base_compile.
  13390. + if test -z "$base_compile"; then
  13391. + base_compile="$lastarg"
  13392. + else
  13393. + base_compile="$base_compile $lastarg"
  13394. + fi
  13395. + continue
  13396. + ;;
  13397. + esac
  13398. +
  13399. # Accept any command-line options.
  13400. - case "$arg" in
  13401. + case $arg in
  13402. -o)
  13403. if test "$user_target" != "no"; then
  13404. $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  13405. @@ -288,9 +329,53 @@
  13406. build_old_libs=yes
  13407. continue
  13408. ;;
  13409. +
  13410. + -prefer-pic)
  13411. + pic_mode=yes
  13412. + continue
  13413. + ;;
  13414. +
  13415. + -prefer-non-pic)
  13416. + pic_mode=no
  13417. + continue
  13418. + ;;
  13419. +
  13420. + -Xcompiler)
  13421. + prev=xcompiler
  13422. + continue
  13423. + ;;
  13424. +
  13425. + -Wc,*)
  13426. + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  13427. + lastarg=
  13428. + save_ifs="$IFS"; IFS=','
  13429. + for arg in $args; do
  13430. + IFS="$save_ifs"
  13431. +
  13432. + # Double-quote args containing other shell metacharacters.
  13433. + # Many Bourne shells cannot handle close brackets correctly
  13434. + # in scan sets, so we specify it separately.
  13435. + case $arg in
  13436. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  13437. + arg="\"$arg\""
  13438. + ;;
  13439. + esac
  13440. + lastarg="$lastarg $arg"
  13441. + done
  13442. + IFS="$save_ifs"
  13443. + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  13444. +
  13445. + # Add the arguments to base_compile.
  13446. + if test -z "$base_compile"; then
  13447. + base_compile="$lastarg"
  13448. + else
  13449. + base_compile="$base_compile $lastarg"
  13450. + fi
  13451. + continue
  13452. + ;;
  13453. esac
  13454. - case "$user_target" in
  13455. + case $user_target in
  13456. next)
  13457. # The next one is the -o target name
  13458. user_target=yes
  13459. @@ -316,10 +401,10 @@
  13460. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  13461. # Double-quote args containing other shell metacharacters.
  13462. - # Many Bourne shells cannot handle close brackets correctly in scan
  13463. - # sets, so we specify it separately.
  13464. - case "$lastarg" in
  13465. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  13466. + # Many Bourne shells cannot handle close brackets correctly
  13467. + # in scan sets, so we specify it separately.
  13468. + case $lastarg in
  13469. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  13470. lastarg="\"$lastarg\""
  13471. ;;
  13472. esac
  13473. @@ -332,7 +417,7 @@
  13474. fi
  13475. done
  13476. - case "$user_target" in
  13477. + case $user_target in
  13478. set)
  13479. ;;
  13480. no)
  13481. @@ -348,7 +433,7 @@
  13482. # Recognize several different file suffixes.
  13483. # If the user specifies -o file.o, it is replaced with file.lo
  13484. xform='[cCFSfmso]'
  13485. - case "$libobj" in
  13486. + case $libobj in
  13487. *.ada) xform=ada ;;
  13488. *.adb) xform=adb ;;
  13489. *.ads) xform=ads ;;
  13490. @@ -363,7 +448,7 @@
  13491. libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  13492. - case "$libobj" in
  13493. + case $libobj in
  13494. *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  13495. *)
  13496. $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  13497. @@ -387,10 +472,21 @@
  13498. $run $rm $removelist
  13499. trap "$run $rm $removelist; exit 1" 1 2 15
  13500. + # On Cygwin there's no "real" PIC flag so we must build both object types
  13501. + case $host_os in
  13502. + cygwin* | mingw* | pw32* | os2*)
  13503. + pic_mode=default
  13504. + ;;
  13505. + esac
  13506. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  13507. + # non-PIC code in shared libraries is not supported
  13508. + pic_mode=default
  13509. + fi
  13510. +
  13511. # Calculate the filename of the output object if compiler does
  13512. # not support -o with -c
  13513. if test "$compiler_c_o" = no; then
  13514. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
  13515. + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  13516. lockfile="$output_obj.lock"
  13517. removelist="$removelist $output_obj $lockfile"
  13518. trap "$run $rm $removelist; exit 1" 1 2 15
  13519. @@ -402,7 +498,7 @@
  13520. # Lock this critical section if it is needed
  13521. # We use this script file to make the link, it avoids creating a new file
  13522. if test "$need_locks" = yes; then
  13523. - until ln "$0" "$lockfile" 2>/dev/null; do
  13524. + until $run ln "$0" "$lockfile" 2>/dev/null; do
  13525. $show "Waiting for $lockfile to be removed"
  13526. sleep 2
  13527. done
  13528. @@ -434,8 +530,13 @@
  13529. # Without this assignment, base_compile gets emptied.
  13530. fbsd_hideous_sh_bug=$base_compile
  13531. - # All platforms use -DPIC, to notify preprocessed assembler code.
  13532. - command="$base_compile $srcfile $pic_flag -DPIC"
  13533. + if test "$pic_mode" != no; then
  13534. + # All platforms use -DPIC, to notify preprocessed assembler code.
  13535. + command="$base_compile $srcfile $pic_flag -DPIC"
  13536. + else
  13537. + # Don't build PIC code
  13538. + command="$base_compile $srcfile"
  13539. + fi
  13540. if test "$build_old_libs" = yes; then
  13541. lo_libobj="$libobj"
  13542. dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  13543. @@ -506,7 +607,8 @@
  13544. fi
  13545. # If we have no pic_flag, then copy the object into place and finish.
  13546. - if test -z "$pic_flag" && test "$build_old_libs" = yes; then
  13547. + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
  13548. + test "$build_old_libs" = yes; then
  13549. # Rename the .lo from within objdir to obj
  13550. if test -f $obj; then
  13551. $show $rm $obj
  13552. @@ -532,6 +634,10 @@
  13553. # Now arrange that obj and lo_libobj become the same file
  13554. $show "(cd $xdir && $LN_S $baseobj $libobj)"
  13555. if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  13556. + # Unlock the critical section if it was locked
  13557. + if test "$need_locks" != no; then
  13558. + $run $rm "$lockfile"
  13559. + fi
  13560. exit 0
  13561. else
  13562. error=$?
  13563. @@ -546,7 +652,13 @@
  13564. # Only build a position-dependent object if we build old libraries.
  13565. if test "$build_old_libs" = yes; then
  13566. - command="$base_compile $srcfile"
  13567. + if test "$pic_mode" != yes; then
  13568. + # Don't build PIC code
  13569. + command="$base_compile $srcfile"
  13570. + else
  13571. + # All platforms use -DPIC, to notify preprocessed assembler code.
  13572. + command="$base_compile $srcfile $pic_flag -DPIC"
  13573. + fi
  13574. if test "$compiler_c_o" = yes; then
  13575. command="$command -o $obj"
  13576. output_obj="$obj"
  13577. @@ -612,17 +724,17 @@
  13578. # Unlock the critical section if it was locked
  13579. if test "$need_locks" != no; then
  13580. - $rm "$lockfile"
  13581. + $run $rm "$lockfile"
  13582. fi
  13583. exit 0
  13584. ;;
  13585. # libtool link mode
  13586. - link)
  13587. + link | relink)
  13588. modename="$modename: link"
  13589. - case "$host" in
  13590. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  13591. + case $host in
  13592. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  13593. # It is impossible to link a dll without this setting, and
  13594. # we shouldn't force the makefile maintainer to figure out
  13595. # which system we are compiling for in order to pass an extra
  13596. @@ -635,179 +747,12 @@
  13597. # -no-undefined on the libtool link line when we can be certain
  13598. # that all symbols are satisfied, otherwise we get a static library.
  13599. allow_undefined=yes
  13600. -
  13601. - # This is a source program that is used to create dlls on Windows
  13602. - # Don't remove nor modify the starting and closing comments
  13603. -# /* ltdll.c starts here */
  13604. -# #define WIN32_LEAN_AND_MEAN
  13605. -# #include <windows.h>
  13606. -# #undef WIN32_LEAN_AND_MEAN
  13607. -# #include <stdio.h>
  13608. -#
  13609. -# #ifndef __CYGWIN__
  13610. -# # ifdef __CYGWIN32__
  13611. -# # define __CYGWIN__ __CYGWIN32__
  13612. -# # endif
  13613. -# #endif
  13614. -#
  13615. -# #ifdef __cplusplus
  13616. -# extern "C" {
  13617. -# #endif
  13618. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  13619. -# #ifdef __cplusplus
  13620. -# }
  13621. -# #endif
  13622. -#
  13623. -# #ifdef __CYGWIN__
  13624. -# #include <cygwin/cygwin_dll.h>
  13625. -# DECLARE_CYGWIN_DLL( DllMain );
  13626. -# #endif
  13627. -# HINSTANCE __hDllInstance_base;
  13628. -#
  13629. -# BOOL APIENTRY
  13630. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  13631. -# {
  13632. -# __hDllInstance_base = hInst;
  13633. -# return TRUE;
  13634. -# }
  13635. -# /* ltdll.c ends here */
  13636. - # This is a source program that is used to create import libraries
  13637. - # on Windows for dlls which lack them. Don't remove nor modify the
  13638. - # starting and closing comments
  13639. -# /* impgen.c starts here */
  13640. -# /* Copyright (C) 1999 Free Software Foundation, Inc.
  13641. -#
  13642. -# This file is part of GNU libtool.
  13643. -#
  13644. -# This program is free software; you can redistribute it and/or modify
  13645. -# it under the terms of the GNU General Public License as published by
  13646. -# the Free Software Foundation; either version 2 of the License, or
  13647. -# (at your option) any later version.
  13648. -#
  13649. -# This program is distributed in the hope that it will be useful,
  13650. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13651. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13652. -# GNU General Public License for more details.
  13653. -#
  13654. -# You should have received a copy of the GNU General Public License
  13655. -# along with this program; if not, write to the Free Software
  13656. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13657. -# */
  13658. -#
  13659. -# #include <stdio.h> /* for printf() */
  13660. -# #include <unistd.h> /* for open(), lseek(), read() */
  13661. -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  13662. -# #include <string.h> /* for strdup() */
  13663. -#
  13664. -# static unsigned int
  13665. -# pe_get16 (fd, offset)
  13666. -# int fd;
  13667. -# int offset;
  13668. -# {
  13669. -# unsigned char b[2];
  13670. -# lseek (fd, offset, SEEK_SET);
  13671. -# read (fd, b, 2);
  13672. -# return b[0] + (b[1]<<8);
  13673. -# }
  13674. -#
  13675. -# static unsigned int
  13676. -# pe_get32 (fd, offset)
  13677. -# int fd;
  13678. -# int offset;
  13679. -# {
  13680. -# unsigned char b[4];
  13681. -# lseek (fd, offset, SEEK_SET);
  13682. -# read (fd, b, 4);
  13683. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  13684. -# }
  13685. -#
  13686. -# static unsigned int
  13687. -# pe_as32 (ptr)
  13688. -# void *ptr;
  13689. -# {
  13690. -# unsigned char *b = ptr;
  13691. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  13692. -# }
  13693. -#
  13694. -# int
  13695. -# main (argc, argv)
  13696. -# int argc;
  13697. -# char *argv[];
  13698. -# {
  13699. -# int dll;
  13700. -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  13701. -# unsigned long export_rva, export_size, nsections, secptr, expptr;
  13702. -# unsigned long name_rvas, nexp;
  13703. -# unsigned char *expdata, *erva;
  13704. -# char *filename, *dll_name;
  13705. -#
  13706. -# filename = argv[1];
  13707. -#
  13708. -# dll = open(filename, O_RDONLY|O_BINARY);
  13709. -# if (!dll)
  13710. -# return 1;
  13711. -#
  13712. -# dll_name = filename;
  13713. -#
  13714. -# for (i=0; filename[i]; i++)
  13715. -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  13716. -# dll_name = filename + i +1;
  13717. -#
  13718. -# pe_header_offset = pe_get32 (dll, 0x3c);
  13719. -# opthdr_ofs = pe_header_offset + 4 + 20;
  13720. -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  13721. -#
  13722. -# if (num_entries < 1) /* no exports */
  13723. -# return 1;
  13724. -#
  13725. -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  13726. -# export_size = pe_get32 (dll, opthdr_ofs + 100);
  13727. -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  13728. -# secptr = (pe_header_offset + 4 + 20 +
  13729. -# pe_get16 (dll, pe_header_offset + 4 + 16));
  13730. -#
  13731. -# expptr = 0;
  13732. -# for (i = 0; i < nsections; i++)
  13733. -# {
  13734. -# char sname[8];
  13735. -# unsigned long secptr1 = secptr + 40 * i;
  13736. -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  13737. -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  13738. -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  13739. -# lseek(dll, secptr1, SEEK_SET);
  13740. -# read(dll, sname, 8);
  13741. -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  13742. -# {
  13743. -# expptr = fptr + (export_rva - vaddr);
  13744. -# if (export_rva + export_size > vaddr + vsize)
  13745. -# export_size = vsize - (export_rva - vaddr);
  13746. -# break;
  13747. -# }
  13748. -# }
  13749. -#
  13750. -# expdata = (unsigned char*)malloc(export_size);
  13751. -# lseek (dll, expptr, SEEK_SET);
  13752. -# read (dll, expdata, export_size);
  13753. -# erva = expdata - export_rva;
  13754. -#
  13755. -# nexp = pe_as32 (expdata+24);
  13756. -# name_rvas = pe_as32 (expdata+32);
  13757. -#
  13758. -# printf ("EXPORTS\n");
  13759. -# for (i = 0; i<nexp; i++)
  13760. -# {
  13761. -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  13762. -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  13763. -# }
  13764. -#
  13765. -# return 0;
  13766. -# }
  13767. -# /* impgen.c ends here */
  13768. ;;
  13769. *)
  13770. allow_undefined=yes
  13771. ;;
  13772. esac
  13773. + libtool_args="$nonopt"
  13774. compile_command="$nonopt"
  13775. finalize_command="$nonopt"
  13776. @@ -818,18 +763,13 @@
  13777. convenience=
  13778. old_convenience=
  13779. deplibs=
  13780. - linkopts=
  13781. + old_deplibs=
  13782. + compiler_flags=
  13783. + linker_flags=
  13784. + dllsearchpath=
  13785. + lib_search_path=`pwd`
  13786. + inst_prefix_dir=
  13787. - if test -n "$shlibpath_var"; then
  13788. - # get the directories listed in $shlibpath_var
  13789. - eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  13790. - else
  13791. - lib_search_path=
  13792. - fi
  13793. - # now prepend the system-specific ones
  13794. - eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
  13795. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  13796. -
  13797. avoid_version=no
  13798. dlfiles=
  13799. dlprefiles=
  13800. @@ -839,9 +779,9 @@
  13801. export_symbols_regex=
  13802. generated=
  13803. libobjs=
  13804. - link_against_libtool_libs=
  13805. ltlibs=
  13806. module=no
  13807. + no_install=no
  13808. objs=
  13809. prefer_static_libs=no
  13810. preload=no
  13811. @@ -858,7 +798,7 @@
  13812. # We need to know -static, to get the right output filenames.
  13813. for arg
  13814. do
  13815. - case "$arg" in
  13816. + case $arg in
  13817. -all-static | -static)
  13818. if test "X$arg" = "X-all-static"; then
  13819. if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  13820. @@ -887,17 +827,24 @@
  13821. while test $# -gt 0; do
  13822. arg="$1"
  13823. shift
  13824. + case $arg in
  13825. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  13826. + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  13827. + ;;
  13828. + *) qarg=$arg ;;
  13829. + esac
  13830. + libtool_args="$libtool_args $qarg"
  13831. # If the previous option needs an argument, assign it.
  13832. if test -n "$prev"; then
  13833. - case "$prev" in
  13834. + case $prev in
  13835. output)
  13836. compile_command="$compile_command @OUTPUT@"
  13837. finalize_command="$finalize_command @OUTPUT@"
  13838. ;;
  13839. esac
  13840. - case "$prev" in
  13841. + case $prev in
  13842. dlfiles|dlprefiles)
  13843. if test "$preload" = no; then
  13844. # Add the symbol object into the linking commands.
  13845. @@ -905,7 +852,7 @@
  13846. finalize_command="$finalize_command @SYMFILE@"
  13847. preload=yes
  13848. fi
  13849. - case "$arg" in
  13850. + case $arg in
  13851. *.la | *.lo) ;; # We handle these cases below.
  13852. force)
  13853. if test "$dlself" = no; then
  13854. @@ -934,6 +881,7 @@
  13855. dlprefiles="$dlprefiles $arg"
  13856. fi
  13857. prev=
  13858. + continue
  13859. ;;
  13860. esac
  13861. ;;
  13862. @@ -951,6 +899,11 @@
  13863. prev=
  13864. continue
  13865. ;;
  13866. + inst_prefix)
  13867. + inst_prefix_dir="$arg"
  13868. + prev=
  13869. + continue
  13870. + ;;
  13871. release)
  13872. release="-$arg"
  13873. prev=
  13874. @@ -958,7 +911,7 @@
  13875. ;;
  13876. rpath | xrpath)
  13877. # We need an absolute path.
  13878. - case "$arg" in
  13879. + case $arg in
  13880. [\\/]* | [A-Za-z]:[\\/]*) ;;
  13881. *)
  13882. $echo "$modename: only absolute run-paths are allowed" 1>&2
  13883. @@ -979,17 +932,32 @@
  13884. prev=
  13885. continue
  13886. ;;
  13887. + xcompiler)
  13888. + compiler_flags="$compiler_flags $qarg"
  13889. + prev=
  13890. + compile_command="$compile_command $qarg"
  13891. + finalize_command="$finalize_command $qarg"
  13892. + continue
  13893. + ;;
  13894. + xlinker)
  13895. + linker_flags="$linker_flags $qarg"
  13896. + compiler_flags="$compiler_flags $wl$qarg"
  13897. + prev=
  13898. + compile_command="$compile_command $wl$qarg"
  13899. + finalize_command="$finalize_command $wl$qarg"
  13900. + continue
  13901. + ;;
  13902. *)
  13903. eval "$prev=\"\$arg\""
  13904. prev=
  13905. continue
  13906. ;;
  13907. esac
  13908. - fi
  13909. + fi # test -n $prev
  13910. prevarg="$arg"
  13911. - case "$arg" in
  13912. + case $arg in
  13913. -all-static)
  13914. if test -n "$link_static_flag"; then
  13915. compile_command="$compile_command $link_static_flag"
  13916. @@ -1026,7 +994,7 @@
  13917. -export-symbols | -export-symbols-regex)
  13918. if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  13919. - $echo "$modename: not more than one -exported-symbols argument allowed"
  13920. + $echo "$modename: more than one -exported-symbols argument is not allowed"
  13921. exit 1
  13922. fi
  13923. if test "X$arg" = "X-export-symbols"; then
  13924. @@ -1037,58 +1005,81 @@
  13925. continue
  13926. ;;
  13927. + -inst-prefix-dir)
  13928. + prev=inst_prefix
  13929. + continue
  13930. + ;;
  13931. +
  13932. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  13933. + # so, if we see these flags be careful not to treat them like -L
  13934. + -L[A-Z][A-Z]*:*)
  13935. + case $with_gcc/$host in
  13936. + no/*-*-irix* | no/*-*-nonstopux*)
  13937. + compile_command="$compile_command $arg"
  13938. + finalize_command="$finalize_command $arg"
  13939. + ;;
  13940. + esac
  13941. + continue
  13942. + ;;
  13943. +
  13944. -L*)
  13945. dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  13946. # We need an absolute path.
  13947. - case "$dir" in
  13948. + case $dir in
  13949. [\\/]* | [A-Za-z]:[\\/]*) ;;
  13950. *)
  13951. absdir=`cd "$dir" && pwd`
  13952. if test -z "$absdir"; then
  13953. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  13954. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  13955. - absdir="$dir"
  13956. + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  13957. + exit 1
  13958. fi
  13959. dir="$absdir"
  13960. ;;
  13961. esac
  13962. - case " $deplibs " in
  13963. - *" $arg "*) ;;
  13964. - *) deplibs="$deplibs $arg";;
  13965. - esac
  13966. - case " $lib_search_path " in
  13967. - *" $dir "*) ;;
  13968. - *) lib_search_path="$lib_search_path $dir";;
  13969. + case "$deplibs " in
  13970. + *" -L$dir "*) ;;
  13971. + *)
  13972. + deplibs="$deplibs -L$dir"
  13973. + lib_search_path="$lib_search_path $dir"
  13974. + ;;
  13975. esac
  13976. - case "$host" in
  13977. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  13978. - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
  13979. - case ":$dllsearchpath:" in
  13980. - ::) dllsearchpath="$dllsearchdir";;
  13981. - *":$dllsearchdir:"*) ;;
  13982. - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
  13983. + case $host in
  13984. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  13985. + case :$dllsearchpath: in
  13986. + *":$dir:"*) ;;
  13987. + *) dllsearchpath="$dllsearchpath:$dir";;
  13988. esac
  13989. ;;
  13990. esac
  13991. + continue
  13992. ;;
  13993. -l*)
  13994. - if test "$arg" = "-lc"; then
  13995. - case "$host" in
  13996. - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  13997. - # These systems don't actually have c library (as such)
  13998. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  13999. + case $host in
  14000. + *-*-cygwin* | *-*-pw32* | *-*-beos*)
  14001. + # These systems don't actually have a C or math library (as such)
  14002. continue
  14003. ;;
  14004. + *-*-mingw* | *-*-os2*)
  14005. + # These systems don't actually have a C library (as such)
  14006. + test "X$arg" = "X-lc" && continue
  14007. + ;;
  14008. + *-*-openbsd* | *-*-freebsd*)
  14009. + # Do not include libc due to us having libc/libc_r.
  14010. + test "X$arg" = "X-lc" && continue
  14011. + ;;
  14012. esac
  14013. - elif test "$arg" = "-lm"; then
  14014. - case "$host" in
  14015. - *-*-cygwin* | *-*-beos*)
  14016. - # These systems don't actually have math library (as such)
  14017. + elif test "X$arg" = "X-lc_r"; then
  14018. + case $host in
  14019. + *-*-openbsd* | *-*-freebsd*)
  14020. + # Do not include libc_r directly, use -pthread flag.
  14021. continue
  14022. ;;
  14023. esac
  14024. fi
  14025. deplibs="$deplibs $arg"
  14026. + continue
  14027. ;;
  14028. -module)
  14029. @@ -1096,6 +1087,25 @@
  14030. continue
  14031. ;;
  14032. + -no-fast-install)
  14033. + fast_install=no
  14034. + continue
  14035. + ;;
  14036. +
  14037. + -no-install)
  14038. + case $host in
  14039. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  14040. + # The PATH hackery in wrapper scripts is required on Windows
  14041. + # in order for the loader to find any dlls it needs.
  14042. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  14043. + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  14044. + fast_install=no
  14045. + ;;
  14046. + *) no_install=yes ;;
  14047. + esac
  14048. + continue
  14049. + ;;
  14050. +
  14051. -no-undefined)
  14052. allow_undefined=no
  14053. continue
  14054. @@ -1121,7 +1131,7 @@
  14055. -R*)
  14056. dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  14057. # We need an absolute path.
  14058. - case "$dir" in
  14059. + case $dir in
  14060. [\\/]* | [A-Za-z]:[\\/]*) ;;
  14061. *)
  14062. $echo "$modename: only absolute run-paths are allowed" 1>&2
  14063. @@ -1136,11 +1146,11 @@
  14064. ;;
  14065. -static)
  14066. - # If we have no pic_flag, then this is the same as -all-static.
  14067. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  14068. - compile_command="$compile_command $link_static_flag"
  14069. - finalize_command="$finalize_command $link_static_flag"
  14070. - fi
  14071. + # The effects of -static are defined in a previous loop.
  14072. + # We used to do the same as -all-static on platforms that
  14073. + # didn't have a PIC flag, but the assumption that the effects
  14074. + # would be equivalent was wrong. It would break on at least
  14075. + # Digital Unix and AIX.
  14076. continue
  14077. ;;
  14078. @@ -1154,28 +1164,71 @@
  14079. continue
  14080. ;;
  14081. + -Wc,*)
  14082. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  14083. + arg=
  14084. + save_ifs="$IFS"; IFS=','
  14085. + for flag in $args; do
  14086. + IFS="$save_ifs"
  14087. + case $flag in
  14088. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  14089. + flag="\"$flag\""
  14090. + ;;
  14091. + esac
  14092. + arg="$arg $wl$flag"
  14093. + compiler_flags="$compiler_flags $flag"
  14094. + done
  14095. + IFS="$save_ifs"
  14096. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  14097. + ;;
  14098. +
  14099. + -Wl,*)
  14100. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  14101. + arg=
  14102. + save_ifs="$IFS"; IFS=','
  14103. + for flag in $args; do
  14104. + IFS="$save_ifs"
  14105. + case $flag in
  14106. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  14107. + flag="\"$flag\""
  14108. + ;;
  14109. + esac
  14110. + arg="$arg $wl$flag"
  14111. + compiler_flags="$compiler_flags $wl$flag"
  14112. + linker_flags="$linker_flags $flag"
  14113. + done
  14114. + IFS="$save_ifs"
  14115. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  14116. + ;;
  14117. +
  14118. + -Xcompiler)
  14119. + prev=xcompiler
  14120. + continue
  14121. + ;;
  14122. +
  14123. + -Xlinker)
  14124. + prev=xlinker
  14125. + continue
  14126. + ;;
  14127. +
  14128. # Some other compiler flag.
  14129. -* | +*)
  14130. # Unknown arguments in both finalize_command and compile_command need
  14131. # to be aesthetically quoted because they are evaled later.
  14132. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  14133. - case "$arg" in
  14134. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  14135. + case $arg in
  14136. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  14137. arg="\"$arg\""
  14138. ;;
  14139. esac
  14140. ;;
  14141. - *.o | *.obj | *.a | *.lib)
  14142. - # A standard object.
  14143. - objs="$objs $arg"
  14144. - ;;
  14145. -
  14146. - *.lo)
  14147. - # A library object.
  14148. + *.lo | *.$objext)
  14149. + # A library or standard object.
  14150. if test "$prev" = dlfiles; then
  14151. - dlfiles="$dlfiles $arg"
  14152. - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
  14153. + # This file was specified with -dlopen.
  14154. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  14155. + dlfiles="$dlfiles $arg"
  14156. prev=
  14157. continue
  14158. else
  14159. @@ -1188,357 +1241,917 @@
  14160. # Preload the old-style object.
  14161. dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
  14162. prev=
  14163. + else
  14164. + case $arg in
  14165. + *.lo) libobjs="$libobjs $arg" ;;
  14166. + *) objs="$objs $arg" ;;
  14167. + esac
  14168. fi
  14169. - libobjs="$libobjs $arg"
  14170. + ;;
  14171. +
  14172. + *.$libext)
  14173. + # An archive.
  14174. + deplibs="$deplibs $arg"
  14175. + old_deplibs="$old_deplibs $arg"
  14176. + continue
  14177. ;;
  14178. *.la)
  14179. # A libtool-controlled library.
  14180. - dlname=
  14181. - libdir=
  14182. - library_names=
  14183. - old_library=
  14184. -
  14185. - # Check to see that this really is a libtool archive.
  14186. - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  14187. + if test "$prev" = dlfiles; then
  14188. + # This library was specified with -dlopen.
  14189. + dlfiles="$dlfiles $arg"
  14190. + prev=
  14191. + elif test "$prev" = dlprefiles; then
  14192. + # The library was specified with -dlpreopen.
  14193. + dlprefiles="$dlprefiles $arg"
  14194. + prev=
  14195. else
  14196. - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
  14197. - exit 1
  14198. + deplibs="$deplibs $arg"
  14199. fi
  14200. + continue
  14201. + ;;
  14202. - # If the library was installed with an old release of libtool,
  14203. - # it will not redefine variable installed.
  14204. - installed=yes
  14205. -
  14206. - # Read the .la file
  14207. - # If there is no directory component, then add one.
  14208. - case "$arg" in
  14209. - */* | *\\*) . $arg ;;
  14210. - *) . ./$arg ;;
  14211. + # Some other compiler argument.
  14212. + *)
  14213. + # Unknown arguments in both finalize_command and compile_command need
  14214. + # to be aesthetically quoted because they are evaled later.
  14215. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  14216. + case $arg in
  14217. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  14218. + arg="\"$arg\""
  14219. + ;;
  14220. esac
  14221. + ;;
  14222. + esac # arg
  14223. - # Get the name of the library we link against.
  14224. - linklib=
  14225. - for l in $old_library $library_names; do
  14226. - linklib="$l"
  14227. - done
  14228. -
  14229. - if test -z "$linklib"; then
  14230. - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
  14231. - exit 1
  14232. - fi
  14233. -
  14234. - # Find the relevant object directory and library name.
  14235. - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
  14236. -
  14237. - if test "X$installed" = Xyes; then
  14238. - dir="$libdir"
  14239. - else
  14240. - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  14241. - if test "X$dir" = "X$arg"; then
  14242. - dir="$objdir"
  14243. - else
  14244. - dir="$dir/$objdir"
  14245. - fi
  14246. - fi
  14247. + # Now actually substitute the argument into the commands.
  14248. + if test -n "$arg"; then
  14249. + compile_command="$compile_command $arg"
  14250. + finalize_command="$finalize_command $arg"
  14251. + fi
  14252. + done # argument parsing loop
  14253. - if test -n "$dependency_libs"; then
  14254. - # Extract -R and -L from dependency_libs
  14255. - temp_deplibs=
  14256. - for deplib in $dependency_libs; do
  14257. - case "$deplib" in
  14258. - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  14259. - case " $rpath $xrpath " in
  14260. - *" $temp_xrpath "*) ;;
  14261. - *) xrpath="$xrpath $temp_xrpath";;
  14262. - esac;;
  14263. - -L*) case "$compile_command $temp_deplibs " in
  14264. - *" $deplib "*) ;;
  14265. - *) temp_deplibs="$temp_deplibs $deplib";;
  14266. - esac
  14267. - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  14268. - case " $lib_search_path " in
  14269. - *" $temp_dir "*) ;;
  14270. - *) lib_search_path="$lib_search_path $temp_dir";;
  14271. - esac
  14272. - ;;
  14273. - *) temp_deplibs="$temp_deplibs $deplib";;
  14274. - esac
  14275. - done
  14276. - dependency_libs="$temp_deplibs"
  14277. - fi
  14278. + if test -n "$prev"; then
  14279. + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  14280. + $echo "$help" 1>&2
  14281. + exit 1
  14282. + fi
  14283. - if test -z "$libdir"; then
  14284. - # It is a libtool convenience library, so add in its objects.
  14285. - convenience="$convenience $dir/$old_library"
  14286. - old_convenience="$old_convenience $dir/$old_library"
  14287. - deplibs="$deplibs$dependency_libs"
  14288. - compile_command="$compile_command $dir/$old_library$dependency_libs"
  14289. - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
  14290. - continue
  14291. - fi
  14292. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  14293. + eval arg=\"$export_dynamic_flag_spec\"
  14294. + compile_command="$compile_command $arg"
  14295. + finalize_command="$finalize_command $arg"
  14296. + fi
  14297. - # This library was specified with -dlopen.
  14298. - if test "$prev" = dlfiles; then
  14299. - dlfiles="$dlfiles $arg"
  14300. - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
  14301. - # If there is no dlname, no dlopen support or we're linking statically,
  14302. - # we need to preload.
  14303. - prev=dlprefiles
  14304. - else
  14305. - # We should not create a dependency on this library, but we
  14306. - # may need any libraries it requires.
  14307. - compile_command="$compile_command$dependency_libs"
  14308. - finalize_command="$finalize_command$dependency_libs"
  14309. - prev=
  14310. - continue
  14311. - fi
  14312. - fi
  14313. + # calculate the name of the file, without its directory
  14314. + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  14315. + libobjs_save="$libobjs"
  14316. - # The library was specified with -dlpreopen.
  14317. - if test "$prev" = dlprefiles; then
  14318. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  14319. - # are required to link).
  14320. - if test -n "$old_library"; then
  14321. - dlprefiles="$dlprefiles $dir/$old_library"
  14322. - else
  14323. - dlprefiles="$dlprefiles $dir/$linklib"
  14324. - fi
  14325. - prev=
  14326. - fi
  14327. + if test -n "$shlibpath_var"; then
  14328. + # get the directories listed in $shlibpath_var
  14329. + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  14330. + else
  14331. + shlib_search_path=
  14332. + fi
  14333. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  14334. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  14335. - if test -n "$library_names" &&
  14336. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  14337. - link_against_libtool_libs="$link_against_libtool_libs $arg"
  14338. - if test -n "$shlibpath_var"; then
  14339. - # Make sure the rpath contains only unique directories.
  14340. - case "$temp_rpath " in
  14341. - *" $dir "*) ;;
  14342. - *) temp_rpath="$temp_rpath $dir" ;;
  14343. - esac
  14344. - fi
  14345. + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  14346. + if test "X$output_objdir" = "X$output"; then
  14347. + output_objdir="$objdir"
  14348. + else
  14349. + output_objdir="$output_objdir/$objdir"
  14350. + fi
  14351. + # Create the object directory.
  14352. + if test ! -d $output_objdir; then
  14353. + $show "$mkdir $output_objdir"
  14354. + $run $mkdir $output_objdir
  14355. + status=$?
  14356. + if test $status -ne 0 && test ! -d $output_objdir; then
  14357. + exit $status
  14358. + fi
  14359. + fi
  14360. - # We need an absolute path.
  14361. - case "$dir" in
  14362. - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  14363. - *)
  14364. - absdir=`cd "$dir" && pwd`
  14365. - if test -z "$absdir"; then
  14366. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  14367. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  14368. - absdir="$dir"
  14369. - fi
  14370. - ;;
  14371. - esac
  14372. -
  14373. - # This is the magic to use -rpath.
  14374. - # Skip directories that are in the system default run-time
  14375. - # search path, unless they have been requested with -R.
  14376. - case " $sys_lib_dlsearch_path " in
  14377. - *" $absdir "*) ;;
  14378. - *)
  14379. - case "$compile_rpath " in
  14380. - *" $absdir "*) ;;
  14381. - *) compile_rpath="$compile_rpath $absdir"
  14382. - esac
  14383. - ;;
  14384. - esac
  14385. + # Determine the type of output
  14386. + case $output in
  14387. + "")
  14388. + $echo "$modename: you must specify an output file" 1>&2
  14389. + $echo "$help" 1>&2
  14390. + exit 1
  14391. + ;;
  14392. + *.$libext) linkmode=oldlib ;;
  14393. + *.lo | *.$objext) linkmode=obj ;;
  14394. + *.la) linkmode=lib ;;
  14395. + *) linkmode=prog ;; # Anything else should be a program.
  14396. + esac
  14397. - case " $sys_lib_dlsearch_path " in
  14398. - *" $libdir "*) ;;
  14399. + specialdeplibs=
  14400. + libs=
  14401. + # Find all interdependent deplibs by searching for libraries
  14402. + # that are linked more than once (e.g. -la -lb -la)
  14403. + for deplib in $deplibs; do
  14404. + if test "X$duplicate_deps" = "Xyes" ; then
  14405. + case "$libs " in
  14406. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  14407. + esac
  14408. + fi
  14409. + libs="$libs $deplib"
  14410. + done
  14411. + deplibs=
  14412. + newdependency_libs=
  14413. + newlib_search_path=
  14414. + need_relink=no # whether we're linking any uninstalled libtool libraries
  14415. + notinst_deplibs= # not-installed libtool libraries
  14416. + notinst_path= # paths that contain not-installed libtool libraries
  14417. + case $linkmode in
  14418. + lib)
  14419. + passes="conv link"
  14420. + for file in $dlfiles $dlprefiles; do
  14421. + case $file in
  14422. + *.la) ;;
  14423. *)
  14424. - case "$finalize_rpath " in
  14425. - *" $libdir "*) ;;
  14426. - *) finalize_rpath="$finalize_rpath $libdir"
  14427. - esac
  14428. + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  14429. + exit 1
  14430. ;;
  14431. esac
  14432. -
  14433. - lib_linked=yes
  14434. - case "$hardcode_action" in
  14435. - immediate | unsupported)
  14436. - if test "$hardcode_direct" = no; then
  14437. - compile_command="$compile_command $dir/$linklib"
  14438. - deplibs="$deplibs $dir/$linklib"
  14439. - case "$host" in
  14440. - *-*-cygwin* | *-*-mingw* | *-*-os2*)
  14441. - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
  14442. - if test -n "$dllsearchpath"; then
  14443. - dllsearchpath="$dllsearchpath:$dllsearchdir"
  14444. - else
  14445. - dllsearchpath="$dllsearchdir"
  14446. - fi
  14447. - ;;
  14448. - esac
  14449. - elif test "$hardcode_minus_L" = no; then
  14450. - case "$host" in
  14451. - *-*-sunos*)
  14452. - compile_shlibpath="$compile_shlibpath$dir:"
  14453. - ;;
  14454. - esac
  14455. - case "$compile_command " in
  14456. - *" -L$dir "*) ;;
  14457. - *) compile_command="$compile_command -L$dir";;
  14458. - esac
  14459. - compile_command="$compile_command -l$name"
  14460. - deplibs="$deplibs -L$dir -l$name"
  14461. - elif test "$hardcode_shlibpath_var" = no; then
  14462. - case ":$compile_shlibpath:" in
  14463. - *":$dir:"*) ;;
  14464. - *) compile_shlibpath="$compile_shlibpath$dir:";;
  14465. - esac
  14466. - compile_command="$compile_command -l$name"
  14467. - deplibs="$deplibs -l$name"
  14468. + done
  14469. + ;;
  14470. + prog)
  14471. + compile_deplibs=
  14472. + finalize_deplibs=
  14473. + alldeplibs=no
  14474. + newdlfiles=
  14475. + newdlprefiles=
  14476. + passes="conv scan dlopen dlpreopen link"
  14477. + ;;
  14478. + *) passes="conv"
  14479. + ;;
  14480. + esac
  14481. + for pass in $passes; do
  14482. + if test $linkmode = prog; then
  14483. + # Determine which files to process
  14484. + case $pass in
  14485. + dlopen)
  14486. + libs="$dlfiles"
  14487. + save_deplibs="$deplibs" # Collect dlpreopened libraries
  14488. + deplibs=
  14489. + ;;
  14490. + dlpreopen) libs="$dlprefiles" ;;
  14491. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  14492. + esac
  14493. + fi
  14494. + for deplib in $libs; do
  14495. + lib=
  14496. + found=no
  14497. + case $deplib in
  14498. + -l*)
  14499. + if test $linkmode = oldlib && test $linkmode = obj; then
  14500. + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
  14501. + continue
  14502. + fi
  14503. + if test $pass = conv; then
  14504. + deplibs="$deplib $deplibs"
  14505. + continue
  14506. + fi
  14507. + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  14508. + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  14509. + # Search the libtool library
  14510. + lib="$searchdir/lib${name}.la"
  14511. + if test -f "$lib"; then
  14512. + found=yes
  14513. + break
  14514. + fi
  14515. + done
  14516. + if test "$found" != yes; then
  14517. + # deplib doesn't seem to be a libtool library
  14518. + if test "$linkmode,$pass" = "prog,link"; then
  14519. + compile_deplibs="$deplib $compile_deplibs"
  14520. + finalize_deplibs="$deplib $finalize_deplibs"
  14521. else
  14522. - lib_linked=no
  14523. + deplibs="$deplib $deplibs"
  14524. + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
  14525. fi
  14526. + continue
  14527. + fi
  14528. + ;; # -l
  14529. + -L*)
  14530. + case $linkmode in
  14531. + lib)
  14532. + deplibs="$deplib $deplibs"
  14533. + test $pass = conv && continue
  14534. + newdependency_libs="$deplib $newdependency_libs"
  14535. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  14536. ;;
  14537. -
  14538. - relink)
  14539. - if test "$hardcode_direct" = yes; then
  14540. - compile_command="$compile_command $absdir/$linklib"
  14541. - deplibs="$deplibs $absdir/$linklib"
  14542. - elif test "$hardcode_minus_L" = yes; then
  14543. - case "$compile_command " in
  14544. - *" -L$absdir "*) ;;
  14545. - *) compile_command="$compile_command -L$absdir";;
  14546. - esac
  14547. - compile_command="$compile_command -l$name"
  14548. - deplibs="$deplibs -L$absdir -l$name"
  14549. - elif test "$hardcode_shlibpath_var" = yes; then
  14550. - case ":$compile_shlibpath:" in
  14551. - *":$absdir:"*) ;;
  14552. - *) compile_shlibpath="$compile_shlibpath$absdir:";;
  14553. - esac
  14554. - compile_command="$compile_command -l$name"
  14555. - deplibs="$deplibs -l$name"
  14556. + prog)
  14557. + if test $pass = conv; then
  14558. + deplibs="$deplib $deplibs"
  14559. + continue
  14560. + fi
  14561. + if test $pass = scan; then
  14562. + deplibs="$deplib $deplibs"
  14563. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  14564. else
  14565. - lib_linked=no
  14566. + compile_deplibs="$deplib $compile_deplibs"
  14567. + finalize_deplibs="$deplib $finalize_deplibs"
  14568. fi
  14569. ;;
  14570. -
  14571. *)
  14572. - lib_linked=no
  14573. + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
  14574. ;;
  14575. - esac
  14576. + esac # linkmode
  14577. + continue
  14578. + ;; # -L
  14579. + -R*)
  14580. + if test $pass = link; then
  14581. + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  14582. + # Make sure the xrpath contains only unique directories.
  14583. + case "$xrpath " in
  14584. + *" $dir "*) ;;
  14585. + *) xrpath="$xrpath $dir" ;;
  14586. + esac
  14587. + fi
  14588. + deplibs="$deplib $deplibs"
  14589. + continue
  14590. + ;;
  14591. + *.la) lib="$deplib" ;;
  14592. + *.$libext)
  14593. + if test $pass = conv; then
  14594. + deplibs="$deplib $deplibs"
  14595. + continue
  14596. + fi
  14597. + case $linkmode in
  14598. + lib)
  14599. + if test "$deplibs_check_method" != pass_all; then
  14600. + echo
  14601. + echo "*** Warning: Trying to link with static lib archive $deplib."
  14602. + echo "*** I have the capability to make that library automatically link in when"
  14603. + echo "*** you link to this library. But I can only do this if you have a"
  14604. + echo "*** shared version of the library, which you do not appear to have"
  14605. + echo "*** because the file extensions .$libext of this argument makes me believe"
  14606. + echo "*** that it is just a static archive that I should not used here."
  14607. + else
  14608. + echo
  14609. + echo "*** Warning: Linking the shared library $output against the"
  14610. + echo "*** static library $deplib is not portable!"
  14611. + deplibs="$deplib $deplibs"
  14612. + fi
  14613. + continue
  14614. + ;;
  14615. + prog)
  14616. + if test $pass != link; then
  14617. + deplibs="$deplib $deplibs"
  14618. + else
  14619. + compile_deplibs="$deplib $compile_deplibs"
  14620. + finalize_deplibs="$deplib $finalize_deplibs"
  14621. + fi
  14622. + continue
  14623. + ;;
  14624. + esac # linkmode
  14625. + ;; # *.$libext
  14626. + *.lo | *.$objext)
  14627. + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  14628. + # If there is no dlopen support or we're linking statically,
  14629. + # we need to preload.
  14630. + newdlprefiles="$newdlprefiles $deplib"
  14631. + compile_deplibs="$deplib $compile_deplibs"
  14632. + finalize_deplibs="$deplib $finalize_deplibs"
  14633. + else
  14634. + newdlfiles="$newdlfiles $deplib"
  14635. + fi
  14636. + continue
  14637. + ;;
  14638. + %DEPLIBS%)
  14639. + alldeplibs=yes
  14640. + continue
  14641. + ;;
  14642. + esac # case $deplib
  14643. + if test $found = yes || test -f "$lib"; then :
  14644. + else
  14645. + $echo "$modename: cannot find the library \`$lib'" 1>&2
  14646. + exit 1
  14647. + fi
  14648. +
  14649. + # Check to see that this really is a libtool archive.
  14650. + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  14651. + else
  14652. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  14653. + exit 1
  14654. + fi
  14655. +
  14656. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  14657. + test "X$ladir" = "X$lib" && ladir="."
  14658. +
  14659. + dlname=
  14660. + dlopen=
  14661. + dlpreopen=
  14662. + libdir=
  14663. + library_names=
  14664. + old_library=
  14665. + # If the library was installed with an old release of libtool,
  14666. + # it will not redefine variable installed.
  14667. + installed=yes
  14668. +
  14669. + # Read the .la file
  14670. + case $lib in
  14671. + */* | *\\*) . $lib ;;
  14672. + *) . ./$lib ;;
  14673. + esac
  14674. +
  14675. + if test "$linkmode,$pass" = "lib,link" ||
  14676. + test "$linkmode,$pass" = "prog,scan" ||
  14677. + { test $linkmode = oldlib && test $linkmode = obj; }; then
  14678. + # Add dl[pre]opened files of deplib
  14679. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  14680. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  14681. + fi
  14682. - if test "$lib_linked" != yes; then
  14683. - $echo "$modename: configuration error: unsupported hardcode properties"
  14684. + if test $pass = conv; then
  14685. + # Only check for convenience libraries
  14686. + deplibs="$lib $deplibs"
  14687. + if test -z "$libdir"; then
  14688. + if test -z "$old_library"; then
  14689. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  14690. + exit 1
  14691. + fi
  14692. + # It is a libtool convenience library, so add in its objects.
  14693. + convenience="$convenience $ladir/$objdir/$old_library"
  14694. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  14695. + tmp_libs=
  14696. + for deplib in $dependency_libs; do
  14697. + deplibs="$deplib $deplibs"
  14698. + if test "X$duplicate_deps" = "Xyes" ; then
  14699. + case "$tmp_libs " in
  14700. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  14701. + esac
  14702. + fi
  14703. + tmp_libs="$tmp_libs $deplib"
  14704. + done
  14705. + elif test $linkmode != prog && test $linkmode != lib; then
  14706. + $echo "$modename: \`$lib' is not a convenience library" 1>&2
  14707. exit 1
  14708. fi
  14709. + continue
  14710. + fi # $pass = conv
  14711. - # Finalize command for both is simple: just hardcode it.
  14712. - if test "$hardcode_direct" = yes; then
  14713. - finalize_command="$finalize_command $libdir/$linklib"
  14714. - elif test "$hardcode_minus_L" = yes; then
  14715. - case "$finalize_command " in
  14716. - *" -L$libdir "*) ;;
  14717. - *) finalize_command="$finalize_command -L$libdir";;
  14718. - esac
  14719. - finalize_command="$finalize_command -l$name"
  14720. - elif test "$hardcode_shlibpath_var" = yes; then
  14721. - case ":$finalize_shlibpath:" in
  14722. - *":$libdir:"*) ;;
  14723. - *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
  14724. - esac
  14725. - finalize_command="$finalize_command -l$name"
  14726. + # Get the name of the library we link against.
  14727. + linklib=
  14728. + for l in $old_library $library_names; do
  14729. + linklib="$l"
  14730. + done
  14731. + if test -z "$linklib"; then
  14732. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  14733. + exit 1
  14734. + fi
  14735. +
  14736. + # This library was specified with -dlopen.
  14737. + if test $pass = dlopen; then
  14738. + if test -z "$libdir"; then
  14739. + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  14740. + exit 1
  14741. + fi
  14742. + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  14743. + # If there is no dlname, no dlopen support or we're linking
  14744. + # statically, we need to preload.
  14745. + dlprefiles="$dlprefiles $lib"
  14746. else
  14747. - # We cannot seem to hardcode it, guess we'll fake it.
  14748. - case "$finalize_command " in
  14749. - *" -L$dir "*) ;;
  14750. - *) finalize_command="$finalize_command -L$libdir";;
  14751. - esac
  14752. - finalize_command="$finalize_command -l$name"
  14753. + newdlfiles="$newdlfiles $lib"
  14754. + fi
  14755. + continue
  14756. + fi # $pass = dlopen
  14757. +
  14758. + # We need an absolute path.
  14759. + case $ladir in
  14760. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  14761. + *)
  14762. + abs_ladir=`cd "$ladir" && pwd`
  14763. + if test -z "$abs_ladir"; then
  14764. + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  14765. + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  14766. + abs_ladir="$ladir"
  14767. + fi
  14768. + ;;
  14769. + esac
  14770. + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  14771. +
  14772. + # Find the relevant object directory and library name.
  14773. + if test "X$installed" = Xyes; then
  14774. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  14775. + $echo "$modename: warning: library \`$lib' was moved." 1>&2
  14776. + dir="$ladir"
  14777. + absdir="$abs_ladir"
  14778. + libdir="$abs_ladir"
  14779. + else
  14780. + dir="$libdir"
  14781. + absdir="$libdir"
  14782. fi
  14783. else
  14784. - # Transform directly to old archives if we don't build new libraries.
  14785. - if test -n "$pic_flag" && test -z "$old_library"; then
  14786. - $echo "$modename: cannot find static library for \`$arg'" 1>&2
  14787. + dir="$ladir/$objdir"
  14788. + absdir="$abs_ladir/$objdir"
  14789. + # Remove this search path later
  14790. + notinst_path="$notinst_path $abs_ladir"
  14791. + fi # $installed = yes
  14792. + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  14793. +
  14794. + # This library was specified with -dlpreopen.
  14795. + if test $pass = dlpreopen; then
  14796. + if test -z "$libdir"; then
  14797. + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  14798. exit 1
  14799. fi
  14800. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  14801. + # are required to link).
  14802. + if test -n "$old_library"; then
  14803. + newdlprefiles="$newdlprefiles $dir/$old_library"
  14804. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  14805. + elif test -n "$dlname"; then
  14806. + newdlprefiles="$newdlprefiles $dir/$dlname"
  14807. + else
  14808. + newdlprefiles="$newdlprefiles $dir/$linklib"
  14809. + fi
  14810. + fi # $pass = dlpreopen
  14811. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  14812. - # is not unsupported. This is valid on all known static and
  14813. - # shared platforms.
  14814. - if test "$hardcode_direct" != unsupported; then
  14815. - test -n "$old_library" && linklib="$old_library"
  14816. - compile_command="$compile_command $dir/$linklib"
  14817. - finalize_command="$finalize_command $dir/$linklib"
  14818. + if test -z "$libdir"; then
  14819. + # Link the convenience library
  14820. + if test $linkmode = lib; then
  14821. + deplibs="$dir/$old_library $deplibs"
  14822. + elif test "$linkmode,$pass" = "prog,link"; then
  14823. + compile_deplibs="$dir/$old_library $compile_deplibs"
  14824. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  14825. else
  14826. - case "$compile_command " in
  14827. - *" -L$dir "*) ;;
  14828. - *) compile_command="$compile_command -L$dir";;
  14829. + deplibs="$lib $deplibs"
  14830. + fi
  14831. + continue
  14832. + fi
  14833. +
  14834. + if test $linkmode = prog && test $pass != link; then
  14835. + newlib_search_path="$newlib_search_path $ladir"
  14836. + deplibs="$lib $deplibs"
  14837. +
  14838. + linkalldeplibs=no
  14839. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  14840. + test "$build_libtool_libs" = no; then
  14841. + linkalldeplibs=yes
  14842. + fi
  14843. +
  14844. + tmp_libs=
  14845. + for deplib in $dependency_libs; do
  14846. + case $deplib in
  14847. + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  14848. esac
  14849. - compile_command="$compile_command -l$name"
  14850. - case "$finalize_command " in
  14851. - *" -L$dir "*) ;;
  14852. - *) finalize_command="$finalize_command -L$dir";;
  14853. + # Need to link against all dependency_libs?
  14854. + if test $linkalldeplibs = yes; then
  14855. + deplibs="$deplib $deplibs"
  14856. + else
  14857. + # Need to hardcode shared library paths
  14858. + # or/and link against static libraries
  14859. + newdependency_libs="$deplib $newdependency_libs"
  14860. + fi
  14861. + if test "X$duplicate_deps" = "Xyes" ; then
  14862. + case "$tmp_libs " in
  14863. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  14864. + esac
  14865. + fi
  14866. + tmp_libs="$tmp_libs $deplib"
  14867. + done # for deplib
  14868. + continue
  14869. + fi # $linkmode = prog...
  14870. +
  14871. + link_static=no # Whether the deplib will be linked statically
  14872. + if test -n "$library_names" &&
  14873. + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  14874. + # Link against this shared library
  14875. +
  14876. + if test "$linkmode,$pass" = "prog,link" ||
  14877. + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
  14878. + # Hardcode the library path.
  14879. + # Skip directories that are in the system default run-time
  14880. + # search path.
  14881. + case " $sys_lib_dlsearch_path " in
  14882. + *" $absdir "*) ;;
  14883. + *)
  14884. + case "$compile_rpath " in
  14885. + *" $absdir "*) ;;
  14886. + *) compile_rpath="$compile_rpath $absdir"
  14887. + esac
  14888. + ;;
  14889. esac
  14890. - finalize_command="$finalize_command -l$name"
  14891. + case " $sys_lib_dlsearch_path " in
  14892. + *" $libdir "*) ;;
  14893. + *)
  14894. + case "$finalize_rpath " in
  14895. + *" $libdir "*) ;;
  14896. + *) finalize_rpath="$finalize_rpath $libdir"
  14897. + esac
  14898. + ;;
  14899. + esac
  14900. + if test $linkmode = prog; then
  14901. + # We need to hardcode the library path
  14902. + if test -n "$shlibpath_var"; then
  14903. + # Make sure the rpath contains only unique directories.
  14904. + case "$temp_rpath " in
  14905. + *" $dir "*) ;;
  14906. + *" $absdir "*) ;;
  14907. + *) temp_rpath="$temp_rpath $dir" ;;
  14908. + esac
  14909. + fi
  14910. + fi
  14911. + fi # $linkmode,$pass = prog,link...
  14912. +
  14913. + if test "$alldeplibs" = yes &&
  14914. + { test "$deplibs_check_method" = pass_all ||
  14915. + { test "$build_libtool_libs" = yes &&
  14916. + test -n "$library_names"; }; }; then
  14917. + # We only need to search for static libraries
  14918. + continue
  14919. fi
  14920. - fi
  14921. - # Add in any libraries that this one depends upon.
  14922. - compile_command="$compile_command$dependency_libs"
  14923. - finalize_command="$finalize_command$dependency_libs"
  14924. - continue
  14925. - ;;
  14926. + if test "$installed" = no; then
  14927. + notinst_deplibs="$notinst_deplibs $lib"
  14928. + need_relink=yes
  14929. + fi
  14930. +
  14931. + if test -n "$old_archive_from_expsyms_cmds"; then
  14932. + # figure out the soname
  14933. + set dummy $library_names
  14934. + realname="$2"
  14935. + shift; shift
  14936. + libname=`eval \\$echo \"$libname_spec\"`
  14937. + # use dlname if we got it. it's perfectly good, no?
  14938. + if test -n "$dlname"; then
  14939. + soname="$dlname"
  14940. + elif test -n "$soname_spec"; then
  14941. + # bleh windows
  14942. + case $host in
  14943. + *cygwin*)
  14944. + major=`expr $current - $age`
  14945. + versuffix="-$major"
  14946. + ;;
  14947. + esac
  14948. + eval soname=\"$soname_spec\"
  14949. + else
  14950. + soname="$realname"
  14951. + fi
  14952. - # Some other compiler argument.
  14953. - *)
  14954. - # Unknown arguments in both finalize_command and compile_command need
  14955. - # to be aesthetically quoted because they are evaled later.
  14956. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  14957. - case "$arg" in
  14958. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  14959. - arg="\"$arg\""
  14960. - ;;
  14961. - esac
  14962. - ;;
  14963. - esac
  14964. + # Make a new name for the extract_expsyms_cmds to use
  14965. + soroot="$soname"
  14966. + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
  14967. + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  14968. - # Now actually substitute the argument into the commands.
  14969. - if test -n "$arg"; then
  14970. - compile_command="$compile_command $arg"
  14971. - finalize_command="$finalize_command $arg"
  14972. - fi
  14973. - done
  14974. + # If the library has no export list, then create one now
  14975. + if test -f "$output_objdir/$soname-def"; then :
  14976. + else
  14977. + $show "extracting exported symbol list from \`$soname'"
  14978. + save_ifs="$IFS"; IFS='~'
  14979. + eval cmds=\"$extract_expsyms_cmds\"
  14980. + for cmd in $cmds; do
  14981. + IFS="$save_ifs"
  14982. + $show "$cmd"
  14983. + $run eval "$cmd" || exit $?
  14984. + done
  14985. + IFS="$save_ifs"
  14986. + fi
  14987. - if test -n "$prev"; then
  14988. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  14989. - $echo "$help" 1>&2
  14990. - exit 1
  14991. - fi
  14992. + # Create $newlib
  14993. + if test -f "$output_objdir/$newlib"; then :; else
  14994. + $show "generating import library for \`$soname'"
  14995. + save_ifs="$IFS"; IFS='~'
  14996. + eval cmds=\"$old_archive_from_expsyms_cmds\"
  14997. + for cmd in $cmds; do
  14998. + IFS="$save_ifs"
  14999. + $show "$cmd"
  15000. + $run eval "$cmd" || exit $?
  15001. + done
  15002. + IFS="$save_ifs"
  15003. + fi
  15004. + # make sure the library variables are pointing to the new library
  15005. + dir=$output_objdir
  15006. + linklib=$newlib
  15007. + fi # test -n $old_archive_from_expsyms_cmds
  15008. +
  15009. + if test $linkmode = prog || test "$mode" != relink; then
  15010. + add_shlibpath=
  15011. + add_dir=
  15012. + add=
  15013. + lib_linked=yes
  15014. + case $hardcode_action in
  15015. + immediate | unsupported)
  15016. + if test "$hardcode_direct" = no; then
  15017. + add="$dir/$linklib"
  15018. + elif test "$hardcode_minus_L" = no; then
  15019. + case $host in
  15020. + *-*-sunos*) add_shlibpath="$dir" ;;
  15021. + esac
  15022. + add_dir="-L$dir"
  15023. + add="-l$name"
  15024. + elif test "$hardcode_shlibpath_var" = no; then
  15025. + add_shlibpath="$dir"
  15026. + add="-l$name"
  15027. + else
  15028. + lib_linked=no
  15029. + fi
  15030. + ;;
  15031. + relink)
  15032. + if test "$hardcode_direct" = yes; then
  15033. + add="$dir/$linklib"
  15034. + elif test "$hardcode_minus_L" = yes; then
  15035. + add_dir="-L$dir"
  15036. + # Try looking first in the location we're being installed to.
  15037. + if test -n "$inst_prefix_dir"; then
  15038. + case "$libdir" in
  15039. + [\/]*)
  15040. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  15041. + ;;
  15042. + esac
  15043. + fi
  15044. + add="-l$name"
  15045. + elif test "$hardcode_shlibpath_var" = yes; then
  15046. + add_shlibpath="$dir"
  15047. + add="-l$name"
  15048. + else
  15049. + lib_linked=no
  15050. + fi
  15051. + ;;
  15052. + *) lib_linked=no ;;
  15053. + esac
  15054. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  15055. - eval arg=\"$export_dynamic_flag_spec\"
  15056. - compile_command="$compile_command $arg"
  15057. - finalize_command="$finalize_command $arg"
  15058. - fi
  15059. + if test "$lib_linked" != yes; then
  15060. + $echo "$modename: configuration error: unsupported hardcode properties"
  15061. + exit 1
  15062. + fi
  15063. - oldlibs=
  15064. - # calculate the name of the file, without its directory
  15065. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  15066. - libobjs_save="$libobjs"
  15067. + if test -n "$add_shlibpath"; then
  15068. + case :$compile_shlibpath: in
  15069. + *":$add_shlibpath:"*) ;;
  15070. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  15071. + esac
  15072. + fi
  15073. + if test $linkmode = prog; then
  15074. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  15075. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  15076. + else
  15077. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  15078. + test -n "$add" && deplibs="$add $deplibs"
  15079. + if test "$hardcode_direct" != yes && \
  15080. + test "$hardcode_minus_L" != yes && \
  15081. + test "$hardcode_shlibpath_var" = yes; then
  15082. + case :$finalize_shlibpath: in
  15083. + *":$libdir:"*) ;;
  15084. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  15085. + esac
  15086. + fi
  15087. + fi
  15088. + fi
  15089. - case "$output" in
  15090. - "")
  15091. - $echo "$modename: you must specify an output file" 1>&2
  15092. - $echo "$help" 1>&2
  15093. - exit 1
  15094. - ;;
  15095. + if test $linkmode = prog || test "$mode" = relink; then
  15096. + add_shlibpath=
  15097. + add_dir=
  15098. + add=
  15099. + # Finalize command for both is simple: just hardcode it.
  15100. + if test "$hardcode_direct" = yes; then
  15101. + add="$libdir/$linklib"
  15102. + elif test "$hardcode_minus_L" = yes; then
  15103. + add_dir="-L$libdir"
  15104. + add="-l$name"
  15105. + elif test "$hardcode_shlibpath_var" = yes; then
  15106. + case :$finalize_shlibpath: in
  15107. + *":$libdir:"*) ;;
  15108. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  15109. + esac
  15110. + add="-l$name"
  15111. + else
  15112. + # We cannot seem to hardcode it, guess we'll fake it.
  15113. + add_dir="-L$libdir"
  15114. + # Try looking first in the location we're being installed to.
  15115. + if test -n "$inst_prefix_dir"; then
  15116. + case "$libdir" in
  15117. + [\/]*)
  15118. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  15119. + ;;
  15120. + esac
  15121. + fi
  15122. + add="-l$name"
  15123. + fi
  15124. - *.a | *.lib)
  15125. - if test -n "$link_against_libtool_libs"; then
  15126. - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
  15127. - exit 1
  15128. + if test $linkmode = prog; then
  15129. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  15130. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  15131. + else
  15132. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  15133. + test -n "$add" && deplibs="$add $deplibs"
  15134. + fi
  15135. + fi
  15136. + elif test $linkmode = prog; then
  15137. + if test "$alldeplibs" = yes &&
  15138. + { test "$deplibs_check_method" = pass_all ||
  15139. + { test "$build_libtool_libs" = yes &&
  15140. + test -n "$library_names"; }; }; then
  15141. + # We only need to search for static libraries
  15142. + continue
  15143. + fi
  15144. +
  15145. + # Try to link the static library
  15146. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  15147. + # is not unsupported. This is valid on all known static and
  15148. + # shared platforms.
  15149. + if test "$hardcode_direct" != unsupported; then
  15150. + test -n "$old_library" && linklib="$old_library"
  15151. + compile_deplibs="$dir/$linklib $compile_deplibs"
  15152. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  15153. + else
  15154. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  15155. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  15156. + fi
  15157. + elif test "$build_libtool_libs" = yes; then
  15158. + # Not a shared library
  15159. + if test "$deplibs_check_method" != pass_all; then
  15160. + # We're trying link a shared library against a static one
  15161. + # but the system doesn't support it.
  15162. +
  15163. + # Just print a warning and add the library to dependency_libs so
  15164. + # that the program can be linked against the static library.
  15165. + echo
  15166. + echo "*** Warning: This system can not link to static lib archive $lib."
  15167. + echo "*** I have the capability to make that library automatically link in when"
  15168. + echo "*** you link to this library. But I can only do this if you have a"
  15169. + echo "*** shared version of the library, which you do not appear to have."
  15170. + if test "$module" = yes; then
  15171. + echo "*** But as you try to build a module library, libtool will still create "
  15172. + echo "*** a static module, that should work as long as the dlopening application"
  15173. + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  15174. + if test -z "$global_symbol_pipe"; then
  15175. + echo
  15176. + echo "*** However, this would only work if libtool was able to extract symbol"
  15177. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  15178. + echo "*** not find such a program. So, this module is probably useless."
  15179. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  15180. + fi
  15181. + if test "$build_old_libs" = no; then
  15182. + build_libtool_libs=module
  15183. + build_old_libs=yes
  15184. + else
  15185. + build_libtool_libs=no
  15186. + fi
  15187. + fi
  15188. + else
  15189. + convenience="$convenience $dir/$old_library"
  15190. + old_convenience="$old_convenience $dir/$old_library"
  15191. + deplibs="$dir/$old_library $deplibs"
  15192. + link_static=yes
  15193. + fi
  15194. + fi # link shared/static library?
  15195. +
  15196. + if test $linkmode = lib; then
  15197. + if test -n "$dependency_libs" &&
  15198. + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
  15199. + test $link_static = yes; }; then
  15200. + # Extract -R from dependency_libs
  15201. + temp_deplibs=
  15202. + for libdir in $dependency_libs; do
  15203. + case $libdir in
  15204. + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  15205. + case " $xrpath " in
  15206. + *" $temp_xrpath "*) ;;
  15207. + *) xrpath="$xrpath $temp_xrpath";;
  15208. + esac;;
  15209. + *) temp_deplibs="$temp_deplibs $libdir";;
  15210. + esac
  15211. + done
  15212. + dependency_libs="$temp_deplibs"
  15213. + fi
  15214. +
  15215. + newlib_search_path="$newlib_search_path $absdir"
  15216. + # Link against this library
  15217. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  15218. + # ... and its dependency_libs
  15219. + tmp_libs=
  15220. + for deplib in $dependency_libs; do
  15221. + newdependency_libs="$deplib $newdependency_libs"
  15222. + if test "X$duplicate_deps" = "Xyes" ; then
  15223. + case "$tmp_libs " in
  15224. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  15225. + esac
  15226. + fi
  15227. + tmp_libs="$tmp_libs $deplib"
  15228. + done
  15229. +
  15230. + if test $link_all_deplibs != no; then
  15231. + # Add the search paths of all dependency libraries
  15232. + for deplib in $dependency_libs; do
  15233. + case $deplib in
  15234. + -L*) path="$deplib" ;;
  15235. + *.la)
  15236. + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  15237. + test "X$dir" = "X$deplib" && dir="."
  15238. + # We need an absolute path.
  15239. + case $dir in
  15240. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  15241. + *)
  15242. + absdir=`cd "$dir" && pwd`
  15243. + if test -z "$absdir"; then
  15244. + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  15245. + absdir="$dir"
  15246. + fi
  15247. + ;;
  15248. + esac
  15249. + if grep "^installed=no" $deplib > /dev/null; then
  15250. + path="-L$absdir/$objdir"
  15251. + else
  15252. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  15253. + if test -z "$libdir"; then
  15254. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  15255. + exit 1
  15256. + fi
  15257. + if test "$absdir" != "$libdir"; then
  15258. + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  15259. + fi
  15260. + path="-L$absdir"
  15261. + fi
  15262. + ;;
  15263. + *) continue ;;
  15264. + esac
  15265. + case " $deplibs " in
  15266. + *" $path "*) ;;
  15267. + *) deplibs="$deplibs $path" ;;
  15268. + esac
  15269. + done
  15270. + fi # link_all_deplibs != no
  15271. + fi # linkmode = lib
  15272. + done # for deplib in $libs
  15273. + if test $pass = dlpreopen; then
  15274. + # Link the dlpreopened libraries before other libraries
  15275. + for deplib in $save_deplibs; do
  15276. + deplibs="$deplib $deplibs"
  15277. + done
  15278. fi
  15279. + if test $pass != dlopen; then
  15280. + test $pass != scan && dependency_libs="$newdependency_libs"
  15281. + if test $pass != conv; then
  15282. + # Make sure lib_search_path contains only unique directories.
  15283. + lib_search_path=
  15284. + for dir in $newlib_search_path; do
  15285. + case "$lib_search_path " in
  15286. + *" $dir "*) ;;
  15287. + *) lib_search_path="$lib_search_path $dir" ;;
  15288. + esac
  15289. + done
  15290. + newlib_search_path=
  15291. + fi
  15292. - if test -n "$deplibs"; then
  15293. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  15294. + if test "$linkmode,$pass" != "prog,link"; then
  15295. + vars="deplibs"
  15296. + else
  15297. + vars="compile_deplibs finalize_deplibs"
  15298. + fi
  15299. + for var in $vars dependency_libs; do
  15300. + # Add libraries to $var in reverse order
  15301. + eval tmp_libs=\"\$$var\"
  15302. + new_libs=
  15303. + for deplib in $tmp_libs; do
  15304. + case $deplib in
  15305. + -L*) new_libs="$deplib $new_libs" ;;
  15306. + *)
  15307. + case " $specialdeplibs " in
  15308. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  15309. + *)
  15310. + case " $new_libs " in
  15311. + *" $deplib "*) ;;
  15312. + *) new_libs="$deplib $new_libs" ;;
  15313. + esac
  15314. + ;;
  15315. + esac
  15316. + ;;
  15317. + esac
  15318. + done
  15319. + tmp_libs=
  15320. + for deplib in $new_libs; do
  15321. + case $deplib in
  15322. + -L*)
  15323. + case " $tmp_libs " in
  15324. + *" $deplib "*) ;;
  15325. + *) tmp_libs="$tmp_libs $deplib" ;;
  15326. + esac
  15327. + ;;
  15328. + *) tmp_libs="$tmp_libs $deplib" ;;
  15329. + esac
  15330. + done
  15331. + eval $var=\"$tmp_libs\"
  15332. + done # for var
  15333. fi
  15334. + if test "$pass" = "conv" &&
  15335. + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
  15336. + libs="$deplibs" # reset libs
  15337. + deplibs=
  15338. + fi
  15339. + done # for pass
  15340. + if test $linkmode = prog; then
  15341. + dlfiles="$newdlfiles"
  15342. + dlprefiles="$newdlprefiles"
  15343. + fi
  15344. + case $linkmode in
  15345. + oldlib)
  15346. if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  15347. $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  15348. fi
  15349. @@ -1566,11 +2179,12 @@
  15350. # Now set the variables for building old libraries.
  15351. build_libtool_libs=no
  15352. oldlibs="$output"
  15353. + objs="$objs$old_deplibs"
  15354. ;;
  15355. - *.la)
  15356. + lib)
  15357. # Make sure we only generate libraries of the form `libNAME.la'.
  15358. - case "$outputname" in
  15359. + case $outputname in
  15360. lib*)
  15361. name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  15362. eval libname=\"$libname_spec\"
  15363. @@ -1591,26 +2205,20 @@
  15364. ;;
  15365. esac
  15366. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  15367. - if test "X$output_objdir" = "X$output"; then
  15368. - output_objdir="$objdir"
  15369. - else
  15370. - output_objdir="$output_objdir/$objdir"
  15371. - fi
  15372. -
  15373. if test -n "$objs"; then
  15374. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
  15375. - exit 1
  15376. - fi
  15377. -
  15378. - # How the heck are we supposed to write a wrapper for a shared library?
  15379. - if test -n "$link_against_libtool_libs"; then
  15380. - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
  15381. - exit 1
  15382. + if test "$deplibs_check_method" != pass_all; then
  15383. + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  15384. + exit 1
  15385. + else
  15386. + echo
  15387. + echo "*** Warning: Linking the shared library $output against the non-libtool"
  15388. + echo "*** objects $objs is not portable!"
  15389. + libobjs="$libobjs $objs"
  15390. + fi
  15391. fi
  15392. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  15393. - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
  15394. + if test "$dlself" != no; then
  15395. + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  15396. fi
  15397. set dummy $rpath
  15398. @@ -1628,7 +2236,6 @@
  15399. build_libtool_libs=convenience
  15400. build_old_libs=yes
  15401. fi
  15402. - dependency_libs="$deplibs"
  15403. if test -n "$vinfo"; then
  15404. $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
  15405. @@ -1640,7 +2247,7 @@
  15406. else
  15407. # Parse the version information argument.
  15408. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
  15409. + save_ifs="$IFS"; IFS=':'
  15410. set dummy $vinfo 0 0 0
  15411. IFS="$save_ifs"
  15412. @@ -1655,8 +2262,8 @@
  15413. age="$4"
  15414. # Check that each of the things are valid numbers.
  15415. - case "$current" in
  15416. - 0 | [1-9] | [1-9][0-9]*) ;;
  15417. + case $current in
  15418. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  15419. *)
  15420. $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  15421. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  15422. @@ -1664,8 +2271,8 @@
  15423. ;;
  15424. esac
  15425. - case "$revision" in
  15426. - 0 | [1-9] | [1-9][0-9]*) ;;
  15427. + case $revision in
  15428. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  15429. *)
  15430. $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  15431. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  15432. @@ -1673,8 +2280,8 @@
  15433. ;;
  15434. esac
  15435. - case "$age" in
  15436. - 0 | [1-9] | [1-9][0-9]*) ;;
  15437. + case $age in
  15438. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  15439. *)
  15440. $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  15441. $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  15442. @@ -1692,21 +2299,49 @@
  15443. major=
  15444. versuffix=
  15445. verstring=
  15446. - case "$version_type" in
  15447. + case $version_type in
  15448. none) ;;
  15449. - irix)
  15450. + darwin)
  15451. + # Like Linux, but with the current version available in
  15452. + # verstring for coding it into the library header
  15453. + major=.`expr $current - $age`
  15454. + versuffix="$major.$age.$revision"
  15455. + # Darwin ld doesn't like 0 for these options...
  15456. + minor_current=`expr $current + 1`
  15457. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  15458. + ;;
  15459. +
  15460. + freebsd-aout)
  15461. + major=".$current"
  15462. + versuffix=".$current.$revision";
  15463. + ;;
  15464. +
  15465. + freebsd-elf)
  15466. + major=".$current"
  15467. + versuffix=".$current";
  15468. + ;;
  15469. +
  15470. + irix | nonstopux)
  15471. major=`expr $current - $age + 1`
  15472. - versuffix="$major.$revision"
  15473. - verstring="sgi$major.$revision"
  15474. +
  15475. + case $version_type in
  15476. + nonstopux) verstring_prefix=nonstopux ;;
  15477. + *) verstring_prefix=sgi ;;
  15478. + esac
  15479. + verstring="$verstring_prefix$major.$revision"
  15480. # Add in all the interfaces that we are compatible with.
  15481. loop=$revision
  15482. while test $loop != 0; do
  15483. iface=`expr $revision - $loop`
  15484. loop=`expr $loop - 1`
  15485. - verstring="sgi$major.$iface:$verstring"
  15486. + verstring="$verstring_prefix$major.$iface:$verstring"
  15487. done
  15488. +
  15489. + # Before this point, $major must not contain `.'.
  15490. + major=.$major
  15491. + versuffix="$major.$revision"
  15492. ;;
  15493. linux)
  15494. @@ -1715,7 +2350,7 @@
  15495. ;;
  15496. osf)
  15497. - major=`expr $current - $age`
  15498. + major=.`expr $current - $age`
  15499. versuffix=".$current.$age.$revision"
  15500. verstring="$current.$age.$revision"
  15501. @@ -1736,21 +2371,11 @@
  15502. versuffix=".$current.$revision"
  15503. ;;
  15504. - freebsd-aout)
  15505. - major=".$current"
  15506. - versuffix=".$current.$revision";
  15507. - ;;
  15508. -
  15509. - freebsd-elf)
  15510. - major=".$current"
  15511. - versuffix=".$current";
  15512. - ;;
  15513. -
  15514. windows)
  15515. - # Like Linux, but with '-' rather than '.', since we only
  15516. - # want one extension on Windows 95.
  15517. + # Use '-' rather than '.', since we only want one
  15518. + # extension on DOS 8.3 filesystems.
  15519. major=`expr $current - $age`
  15520. - versuffix="-$major-$age-$revision"
  15521. + versuffix="-$major"
  15522. ;;
  15523. *)
  15524. @@ -1764,6 +2389,16 @@
  15525. if test -z "$vinfo" && test -n "$release"; then
  15526. major=
  15527. verstring="0.0"
  15528. + case $version_type in
  15529. + darwin)
  15530. + # we can't check for "0.0" in archive_cmds due to quoting
  15531. + # problems, so we reset it completely
  15532. + verstring=""
  15533. + ;;
  15534. + *)
  15535. + verstring="0.0"
  15536. + ;;
  15537. + esac
  15538. if test "$need_version" = no; then
  15539. versuffix=
  15540. else
  15541. @@ -1777,7 +2412,7 @@
  15542. versuffix=
  15543. verstring=""
  15544. fi
  15545. -
  15546. +
  15547. # Check to see if the archive will have undefined symbols.
  15548. if test "$allow_undefined" = yes; then
  15549. if test "$allow_undefined_flag" = unsupported; then
  15550. @@ -1785,34 +2420,16 @@
  15551. build_libtool_libs=no
  15552. build_old_libs=yes
  15553. fi
  15554. - else
  15555. - # Don't allow undefined symbols.
  15556. - allow_undefined_flag="$no_undefined_flag"
  15557. - fi
  15558. -
  15559. - dependency_libs="$deplibs"
  15560. - case "$host" in
  15561. - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  15562. - # these systems don't actually have a c library (as such)!
  15563. - ;;
  15564. - *)
  15565. - # Add libc to deplibs on all other systems.
  15566. - deplibs="$deplibs -lc"
  15567. - ;;
  15568. - esac
  15569. + else
  15570. + # Don't allow undefined symbols.
  15571. + allow_undefined_flag="$no_undefined_flag"
  15572. + fi
  15573. fi
  15574. - # Create the output directory, or remove our outputs if we need to.
  15575. - if test -d $output_objdir; then
  15576. + if test "$mode" != relink; then
  15577. + # Remove our outputs.
  15578. $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
  15579. $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
  15580. - else
  15581. - $show "$mkdir $output_objdir"
  15582. - $run $mkdir $output_objdir
  15583. - status=$?
  15584. - if test $status -ne 0 && test ! -d $output_objdir; then
  15585. - exit $status
  15586. - fi
  15587. fi
  15588. # Now set the variables for building old libraries.
  15589. @@ -1823,7 +2440,73 @@
  15590. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  15591. fi
  15592. + # Eliminate all temporary directories.
  15593. + for path in $notinst_path; do
  15594. + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  15595. + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  15596. + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  15597. + done
  15598. +
  15599. + if test -n "$xrpath"; then
  15600. + # If the user specified any rpath flags, then add them.
  15601. + temp_xrpath=
  15602. + for libdir in $xrpath; do
  15603. + temp_xrpath="$temp_xrpath -R$libdir"
  15604. + case "$finalize_rpath " in
  15605. + *" $libdir "*) ;;
  15606. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  15607. + esac
  15608. + done
  15609. + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
  15610. + dependency_libs="$temp_xrpath $dependency_libs"
  15611. + fi
  15612. + fi
  15613. +
  15614. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  15615. + old_dlfiles="$dlfiles"
  15616. + dlfiles=
  15617. + for lib in $old_dlfiles; do
  15618. + case " $dlprefiles $dlfiles " in
  15619. + *" $lib "*) ;;
  15620. + *) dlfiles="$dlfiles $lib" ;;
  15621. + esac
  15622. + done
  15623. +
  15624. + # Make sure dlprefiles contains only unique files
  15625. + old_dlprefiles="$dlprefiles"
  15626. + dlprefiles=
  15627. + for lib in $old_dlprefiles; do
  15628. + case "$dlprefiles " in
  15629. + *" $lib "*) ;;
  15630. + *) dlprefiles="$dlprefiles $lib" ;;
  15631. + esac
  15632. + done
  15633. +
  15634. if test "$build_libtool_libs" = yes; then
  15635. + if test -n "$rpath"; then
  15636. + case $host in
  15637. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  15638. + # these systems don't actually have a c library (as such)!
  15639. + ;;
  15640. + *-*-rhapsody* | *-*-darwin1.[012])
  15641. + # Rhapsody C library is in the System framework
  15642. + deplibs="$deplibs -framework System"
  15643. + ;;
  15644. + *-*-netbsd*)
  15645. + # Don't link with libc until the a.out ld.so is fixed.
  15646. + ;;
  15647. + *-*-openbsd* | *-*-freebsd*)
  15648. + # Do not include libc due to us having libc/libc_r.
  15649. + ;;
  15650. + *)
  15651. + # Add libc to deplibs on all other systems if necessary.
  15652. + if test $build_libtool_need_lc = "yes"; then
  15653. + deplibs="$deplibs -lc"
  15654. + fi
  15655. + ;;
  15656. + esac
  15657. + fi
  15658. +
  15659. # Transform deplibs into only deplibs that can be linked in shared.
  15660. name_save=$name
  15661. libname_save=$libname
  15662. @@ -1838,7 +2521,7 @@
  15663. major=""
  15664. newdeplibs=
  15665. droppeddeps=no
  15666. - case "$deplibs_check_method" in
  15667. + case $deplibs_check_method in
  15668. pass_all)
  15669. # Don't check for shared/static. Everything works.
  15670. # This might be a little naive. We might want to check
  15671. @@ -1863,7 +2546,7 @@
  15672. for i in $deplibs; do
  15673. name="`expr $i : '-l\(.*\)'`"
  15674. # If $name is empty we are operating on a -L argument.
  15675. - if test "$name" != "" ; then
  15676. + if test -n "$name" && test "$name" != "0"; then
  15677. libname=`eval \\$echo \"$libname_spec\"`
  15678. deplib_matches=`eval \\$echo \"$library_names_spec\"`
  15679. set dummy $deplib_matches
  15680. @@ -1873,22 +2556,24 @@
  15681. else
  15682. droppeddeps=yes
  15683. echo
  15684. - echo "*** Warning: This library needs some functionality provided by $i."
  15685. + echo "*** Warning: dynamic linker does not accept needed library $i."
  15686. echo "*** I have the capability to make that library automatically link in when"
  15687. echo "*** you link to this library. But I can only do this if you have a"
  15688. - echo "*** shared version of the library, which you do not appear to have."
  15689. + echo "*** shared version of the library, which I believe you do not have"
  15690. + echo "*** because a test_compile did reveal that the linker did not use it for"
  15691. + echo "*** its dynamic dependency list that programs get resolved with at runtime."
  15692. fi
  15693. else
  15694. newdeplibs="$newdeplibs $i"
  15695. fi
  15696. done
  15697. else
  15698. - # Error occured in the first compile. Let's try to salvage the situation:
  15699. - # Compile a seperate program for each library.
  15700. + # Error occured in the first compile. Let's try to salvage
  15701. + # the situation: Compile a separate program for each library.
  15702. for i in $deplibs; do
  15703. name="`expr $i : '-l\(.*\)'`"
  15704. # If $name is empty we are operating on a -L argument.
  15705. - if test "$name" != "" ; then
  15706. + if test -n "$name" && test "$name" != "0"; then
  15707. $rm conftest
  15708. $CC -o conftest conftest.c $i
  15709. # Did it work?
  15710. @@ -1903,10 +2588,12 @@
  15711. else
  15712. droppeddeps=yes
  15713. echo
  15714. - echo "*** Warning: This library needs some functionality provided by $i."
  15715. + echo "*** Warning: dynamic linker does not accept needed library $i."
  15716. echo "*** I have the capability to make that library automatically link in when"
  15717. echo "*** you link to this library. But I can only do this if you have a"
  15718. - echo "*** shared version of the library, which you do not appear to have."
  15719. + echo "*** shared version of the library, which you do not appear to have"
  15720. + echo "*** because a test_compile did reveal that the linker did not use this one"
  15721. + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  15722. fi
  15723. else
  15724. droppeddeps=yes
  15725. @@ -1924,19 +2611,19 @@
  15726. ;;
  15727. file_magic*)
  15728. set dummy $deplibs_check_method
  15729. - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
  15730. + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  15731. for a_deplib in $deplibs; do
  15732. name="`expr $a_deplib : '-l\(.*\)'`"
  15733. # If $name is empty we are operating on a -L argument.
  15734. - if test "$name" != "" ; then
  15735. + if test -n "$name" && test "$name" != "0"; then
  15736. libname=`eval \\$echo \"$libname_spec\"`
  15737. - for i in $lib_search_path; do
  15738. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  15739. potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  15740. for potent_lib in $potential_libs; do
  15741. # Follow soft links.
  15742. if ls -lLd "$potent_lib" 2>/dev/null \
  15743. | grep " -> " >/dev/null; then
  15744. - continue
  15745. + continue
  15746. fi
  15747. # The statement above tries to avoid entering an
  15748. # endless loop below, in case of cyclic links.
  15749. @@ -1945,14 +2632,14 @@
  15750. # but so what?
  15751. potlib="$potent_lib"
  15752. while test -h "$potlib" 2>/dev/null; do
  15753. - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  15754. - case "$potliblink" in
  15755. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  15756. + case $potliblink in
  15757. [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  15758. *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  15759. esac
  15760. done
  15761. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  15762. - | sed 10q \
  15763. + | ${SED} 10q \
  15764. | egrep "$file_magic_regex" > /dev/null; then
  15765. newdeplibs="$newdeplibs $a_deplib"
  15766. a_deplib=""
  15767. @@ -1963,10 +2650,59 @@
  15768. if test -n "$a_deplib" ; then
  15769. droppeddeps=yes
  15770. echo
  15771. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  15772. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  15773. + echo "*** I have the capability to make that library automatically link in when"
  15774. + echo "*** you link to this library. But I can only do this if you have a"
  15775. + echo "*** shared version of the library, which you do not appear to have"
  15776. + echo "*** because I did check the linker path looking for a file starting"
  15777. + if test -z "$potlib" ; then
  15778. + echo "*** with $libname but no candidates were found. (...for file magic test)"
  15779. + else
  15780. + echo "*** with $libname and none of the candidates passed a file format test"
  15781. + echo "*** using a file magic. Last file checked: $potlib"
  15782. + fi
  15783. + fi
  15784. + else
  15785. + # Add a -L argument.
  15786. + newdeplibs="$newdeplibs $a_deplib"
  15787. + fi
  15788. + done # Gone through all deplibs.
  15789. + ;;
  15790. + match_pattern*)
  15791. + set dummy $deplibs_check_method
  15792. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  15793. + for a_deplib in $deplibs; do
  15794. + name="`expr $a_deplib : '-l\(.*\)'`"
  15795. + # If $name is empty we are operating on a -L argument.
  15796. + if test -n "$name" && test "$name" != "0"; then
  15797. + libname=`eval \\$echo \"$libname_spec\"`
  15798. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  15799. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  15800. + for potent_lib in $potential_libs; do
  15801. + potlib="$potent_lib" # see symlink-check below in file_magic test
  15802. + if eval echo \"$potent_lib\" 2>/dev/null \
  15803. + | ${SED} 10q \
  15804. + | egrep "$match_pattern_regex" > /dev/null; then
  15805. + newdeplibs="$newdeplibs $a_deplib"
  15806. + a_deplib=""
  15807. + break 2
  15808. + fi
  15809. + done
  15810. + done
  15811. + if test -n "$a_deplib" ; then
  15812. + droppeddeps=yes
  15813. + echo
  15814. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  15815. echo "*** I have the capability to make that library automatically link in when"
  15816. echo "*** you link to this library. But I can only do this if you have a"
  15817. - echo "*** shared version of the library, which you do not appear to have."
  15818. + echo "*** shared version of the library, which you do not appear to have"
  15819. + echo "*** because I did check the linker path looking for a file starting"
  15820. + if test -z "$potlib" ; then
  15821. + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  15822. + else
  15823. + echo "*** with $libname and none of the candidates passed a file format test"
  15824. + echo "*** using a regex pattern. Last file checked: $potlib"
  15825. + fi
  15826. fi
  15827. else
  15828. # Add a -L argument.
  15829. @@ -1996,6 +2732,13 @@
  15830. libname=$libname_save
  15831. name=$name_save
  15832. + case $host in
  15833. + *-*-rhapsody* | *-*-darwin1.[012])
  15834. + # On Rhapsody replace the C library is the System framework
  15835. + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  15836. + ;;
  15837. + esac
  15838. +
  15839. if test "$droppeddeps" = yes; then
  15840. if test "$module" = yes; then
  15841. echo
  15842. @@ -2021,6 +2764,21 @@
  15843. echo "*** The inter-library dependencies that have been dropped here will be"
  15844. echo "*** automatically added whenever a program is linked with this library"
  15845. echo "*** or is declared to -dlopen it."
  15846. +
  15847. + if test $allow_undefined = no; then
  15848. + echo
  15849. + echo "*** Since this library must not contain undefined symbols,"
  15850. + echo "*** because either the platform does not support them or"
  15851. + echo "*** it was explicitly requested with -no-undefined,"
  15852. + echo "*** libtool will only create a static version of it."
  15853. + if test "$build_old_libs" = no; then
  15854. + oldlibs="$output_objdir/$libname.$libext"
  15855. + build_libtool_libs=module
  15856. + build_old_libs=yes
  15857. + else
  15858. + build_libtool_libs=no
  15859. + fi
  15860. + fi
  15861. fi
  15862. fi
  15863. # Done checking deplibs!
  15864. @@ -2031,9 +2789,64 @@
  15865. library_names=
  15866. old_library=
  15867. dlname=
  15868. -
  15869. +
  15870. # Test again, we may have decided not to build it any more
  15871. if test "$build_libtool_libs" = yes; then
  15872. + if test $hardcode_into_libs = yes; then
  15873. + # Hardcode the library paths
  15874. + hardcode_libdirs=
  15875. + dep_rpath=
  15876. + rpath="$finalize_rpath"
  15877. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  15878. + for libdir in $rpath; do
  15879. + if test -n "$hardcode_libdir_flag_spec"; then
  15880. + if test -n "$hardcode_libdir_separator"; then
  15881. + if test -z "$hardcode_libdirs"; then
  15882. + hardcode_libdirs="$libdir"
  15883. + else
  15884. + # Just accumulate the unique libdirs.
  15885. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  15886. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  15887. + ;;
  15888. + *)
  15889. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  15890. + ;;
  15891. + esac
  15892. + fi
  15893. + else
  15894. + eval flag=\"$hardcode_libdir_flag_spec\"
  15895. + dep_rpath="$dep_rpath $flag"
  15896. + fi
  15897. + elif test -n "$runpath_var"; then
  15898. + case "$perm_rpath " in
  15899. + *" $libdir "*) ;;
  15900. + *) perm_rpath="$perm_rpath $libdir" ;;
  15901. + esac
  15902. + fi
  15903. + done
  15904. + # Substitute the hardcoded libdirs into the rpath.
  15905. + if test -n "$hardcode_libdir_separator" &&
  15906. + test -n "$hardcode_libdirs"; then
  15907. + libdir="$hardcode_libdirs"
  15908. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  15909. + fi
  15910. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  15911. + # We should set the runpath_var.
  15912. + rpath=
  15913. + for dir in $perm_rpath; do
  15914. + rpath="$rpath$dir:"
  15915. + done
  15916. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  15917. + fi
  15918. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  15919. + fi
  15920. +
  15921. + shlibpath="$finalize_shlibpath"
  15922. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  15923. + if test -n "$shlibpath"; then
  15924. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  15925. + fi
  15926. +
  15927. # Get the real and link names of the library.
  15928. eval library_names=\"$library_names_spec\"
  15929. set dummy $library_names
  15930. @@ -2045,6 +2858,7 @@
  15931. else
  15932. soname="$realname"
  15933. fi
  15934. + test -z "$dlname" && dlname=$soname
  15935. lib="$output_objdir/$realname"
  15936. for link
  15937. @@ -2079,7 +2893,7 @@
  15938. export_symbols="$output_objdir/$libname.exp"
  15939. $run $rm $export_symbols
  15940. eval cmds=\"$export_symbols_cmds\"
  15941. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  15942. + save_ifs="$IFS"; IFS='~'
  15943. for cmd in $cmds; do
  15944. IFS="$save_ifs"
  15945. $show "$cmd"
  15946. @@ -2116,7 +2930,7 @@
  15947. for xlib in $convenience; do
  15948. # Extract the objects.
  15949. - case "$xlib" in
  15950. + case $xlib in
  15951. [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  15952. *) xabs=`pwd`"/$xlib" ;;
  15953. esac
  15954. @@ -2141,16 +2955,32 @@
  15955. if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  15956. eval flag=\"$thread_safe_flag_spec\"
  15957. - linkopts="$linkopts $flag"
  15958. + linker_flags="$linker_flags $flag"
  15959. + fi
  15960. +
  15961. + # Make a backup of the uninstalled library when relinking
  15962. + if test "$mode" = relink; then
  15963. + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  15964. fi
  15965. # Do each of the archive commands.
  15966. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  15967. eval cmds=\"$archive_expsym_cmds\"
  15968. else
  15969. + save_deplibs="$deplibs"
  15970. + for conv in $convenience; do
  15971. + tmp_deplibs=
  15972. + for test_deplib in $deplibs; do
  15973. + if test "$test_deplib" != "$conv"; then
  15974. + tmp_deplibs="$tmp_deplibs $test_deplib"
  15975. + fi
  15976. + done
  15977. + deplibs="$tmp_deplibs"
  15978. + done
  15979. eval cmds=\"$archive_cmds\"
  15980. + deplibs="$save_deplibs"
  15981. fi
  15982. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  15983. + save_ifs="$IFS"; IFS='~'
  15984. for cmd in $cmds; do
  15985. IFS="$save_ifs"
  15986. $show "$cmd"
  15987. @@ -2158,6 +2988,12 @@
  15988. done
  15989. IFS="$save_ifs"
  15990. + # Restore the uninstalled library and exit
  15991. + if test "$mode" = relink; then
  15992. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  15993. + exit 0
  15994. + fi
  15995. +
  15996. # Create links to the real library.
  15997. for linkname in $linknames; do
  15998. if test "$realname" != "$linkname"; then
  15999. @@ -2174,12 +3010,7 @@
  16000. fi
  16001. ;;
  16002. - *.lo | *.o | *.obj)
  16003. - if test -n "$link_against_libtool_libs"; then
  16004. - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
  16005. - exit 1
  16006. - fi
  16007. -
  16008. + obj)
  16009. if test -n "$deplibs"; then
  16010. $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  16011. fi
  16012. @@ -2204,9 +3035,9 @@
  16013. $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  16014. fi
  16015. - case "$output" in
  16016. + case $output in
  16017. *.lo)
  16018. - if test -n "$objs"; then
  16019. + if test -n "$objs$old_deplibs"; then
  16020. $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  16021. exit 1
  16022. fi
  16023. @@ -2230,7 +3061,7 @@
  16024. gentop=
  16025. # reload_cmds runs $LD directly, so let us get rid of
  16026. # -Wl from whole_archive_flag_spec
  16027. - wl=
  16028. + wl=
  16029. if test -n "$convenience"; then
  16030. if test -n "$whole_archive_flag_spec"; then
  16031. @@ -2249,7 +3080,7 @@
  16032. for xlib in $convenience; do
  16033. # Extract the objects.
  16034. - case "$xlib" in
  16035. + case $xlib in
  16036. [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  16037. *) xabs=`pwd`"/$xlib" ;;
  16038. esac
  16039. @@ -2273,11 +3104,11 @@
  16040. fi
  16041. # Create the old-style object.
  16042. - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
  16043. + 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
  16044. output="$obj"
  16045. eval cmds=\"$reload_cmds\"
  16046. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16047. + save_ifs="$IFS"; IFS='~'
  16048. for cmd in $cmds; do
  16049. IFS="$save_ifs"
  16050. $show "$cmd"
  16051. @@ -2308,12 +3139,12 @@
  16052. exit 0
  16053. fi
  16054. - if test -n "$pic_flag"; then
  16055. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  16056. # Only do commands if we really have different PIC objects.
  16057. reload_objs="$libobjs $reload_conv_objs"
  16058. output="$libobj"
  16059. eval cmds=\"$reload_cmds\"
  16060. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16061. + save_ifs="$IFS"; IFS='~'
  16062. for cmd in $cmds; do
  16063. IFS="$save_ifs"
  16064. $show "$cmd"
  16065. @@ -2344,8 +3175,10 @@
  16066. exit 0
  16067. ;;
  16068. - # Anything else should be a program.
  16069. - *)
  16070. + prog)
  16071. + case $host in
  16072. + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  16073. + esac
  16074. if test -n "$vinfo"; then
  16075. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  16076. fi
  16077. @@ -2355,20 +3188,34 @@
  16078. fi
  16079. if test "$preload" = yes; then
  16080. - if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
  16081. + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  16082. test "$dlopen_self_static" = unknown; then
  16083. $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  16084. - fi
  16085. + fi
  16086. fi
  16087. -
  16088. +
  16089. + case $host in
  16090. + *-*-rhapsody* | *-*-darwin1.[012])
  16091. + # On Rhapsody replace the C library is the System framework
  16092. + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  16093. + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  16094. + case $host in
  16095. + *darwin*)
  16096. + # Don't allow lazy linking, it breaks C++ global constructors
  16097. + compile_command="$compile_command ${wl}-bind_at_load"
  16098. + finalize_command="$finalize_command ${wl}-bind_at_load"
  16099. + ;;
  16100. + esac
  16101. + ;;
  16102. + esac
  16103. +
  16104. + compile_command="$compile_command $compile_deplibs"
  16105. + finalize_command="$finalize_command $finalize_deplibs"
  16106. +
  16107. if test -n "$rpath$xrpath"; then
  16108. # If the user specified any rpath flags, then add them.
  16109. for libdir in $rpath $xrpath; do
  16110. # This is the magic to use -rpath.
  16111. - case "$compile_rpath " in
  16112. - *" $libdir "*) ;;
  16113. - *) compile_rpath="$compile_rpath $libdir" ;;
  16114. - esac
  16115. case "$finalize_rpath " in
  16116. *" $libdir "*) ;;
  16117. *) finalize_rpath="$finalize_rpath $libdir" ;;
  16118. @@ -2386,7 +3233,7 @@
  16119. hardcode_libdirs="$libdir"
  16120. else
  16121. # Just accumulate the unique libdirs.
  16122. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  16123. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  16124. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  16125. ;;
  16126. *)
  16127. @@ -2404,6 +3251,14 @@
  16128. *) perm_rpath="$perm_rpath $libdir" ;;
  16129. esac
  16130. fi
  16131. + case $host in
  16132. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  16133. + case :$dllsearchpath: in
  16134. + *":$libdir:"*) ;;
  16135. + *) dllsearchpath="$dllsearchpath:$libdir";;
  16136. + esac
  16137. + ;;
  16138. + esac
  16139. done
  16140. # Substitute the hardcoded libdirs into the rpath.
  16141. if test -n "$hardcode_libdir_separator" &&
  16142. @@ -2422,7 +3277,7 @@
  16143. hardcode_libdirs="$libdir"
  16144. else
  16145. # Just accumulate the unique libdirs.
  16146. - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
  16147. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  16148. *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  16149. ;;
  16150. *)
  16151. @@ -2449,23 +3304,6 @@
  16152. fi
  16153. finalize_rpath="$rpath"
  16154. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  16155. - if test "X$output_objdir" = "X$output"; then
  16156. - output_objdir="$objdir"
  16157. - else
  16158. - output_objdir="$output_objdir/$objdir"
  16159. - fi
  16160. -
  16161. - # Create the binary in the object directory, then wrap it.
  16162. - if test ! -d $output_objdir; then
  16163. - $show "$mkdir $output_objdir"
  16164. - $run $mkdir $output_objdir
  16165. - status=$?
  16166. - if test $status -ne 0 && test ! -d $output_objdir; then
  16167. - exit $status
  16168. - fi
  16169. - fi
  16170. -
  16171. if test -n "$libobjs" && test "$build_old_libs" = yes; then
  16172. # Transform all the library objects into standard objects.
  16173. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  16174. @@ -2482,7 +3320,7 @@
  16175. fi
  16176. if test -n "$dlsyms"; then
  16177. - case "$dlsyms" in
  16178. + case $dlsyms in
  16179. "") ;;
  16180. *.c)
  16181. # Discover the nlist of each of the dlfiles.
  16182. @@ -2514,7 +3352,7 @@
  16183. test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  16184. # Add our own program objects to the symbol list.
  16185. - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  16186. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  16187. for arg in $progfiles; do
  16188. $show "extracting global C symbols from \`$arg'"
  16189. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  16190. @@ -2524,7 +3362,7 @@
  16191. $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  16192. $run eval '$mv "$nlist"T "$nlist"'
  16193. fi
  16194. -
  16195. +
  16196. if test -n "$export_symbols_regex"; then
  16197. $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  16198. $run eval '$mv "$nlist"T "$nlist"'
  16199. @@ -2534,9 +3372,9 @@
  16200. if test -z "$export_symbols"; then
  16201. export_symbols="$output_objdir/$output.exp"
  16202. $run $rm $export_symbols
  16203. - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  16204. + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  16205. else
  16206. - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  16207. + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  16208. $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  16209. $run eval 'mv "$nlist"T "$nlist"'
  16210. fi
  16211. @@ -2544,7 +3382,7 @@
  16212. for arg in $dlprefiles; do
  16213. $show "extracting global C symbols from \`$arg'"
  16214. - name=`echo "$arg" | sed -e 's%^.*/%%'`
  16215. + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
  16216. $run eval 'echo ": $name " >> "$nlist"'
  16217. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  16218. done
  16219. @@ -2559,7 +3397,13 @@
  16220. fi
  16221. # Try sorting and uniquifying the output.
  16222. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
  16223. + if grep -v "^: " < "$nlist" |
  16224. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  16225. + sort -k 3
  16226. + else
  16227. + sort +2
  16228. + fi |
  16229. + uniq > "$nlist"S; then
  16230. :
  16231. else
  16232. grep -v "^: " < "$nlist" > "$nlist"S
  16233. @@ -2576,27 +3420,25 @@
  16234. #undef lt_preloaded_symbols
  16235. #if defined (__STDC__) && __STDC__
  16236. -# define lt_ptr_t void *
  16237. +# define lt_ptr void *
  16238. #else
  16239. -# define lt_ptr_t char *
  16240. +# define lt_ptr char *
  16241. # define const
  16242. #endif
  16243. /* The mapping between symbol names and symbols. */
  16244. const struct {
  16245. const char *name;
  16246. - lt_ptr_t address;
  16247. + lt_ptr address;
  16248. }
  16249. lt_preloaded_symbols[] =
  16250. {\
  16251. "
  16252. - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
  16253. - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
  16254. - < "$nlist" >> "$output_objdir/$dlsyms"
  16255. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  16256. $echo >> "$output_objdir/$dlsyms" "\
  16257. - {0, (lt_ptr_t) 0}
  16258. + {0, (lt_ptr) 0}
  16259. };
  16260. /* This works around a problem in FreeBSD linker */
  16261. @@ -2658,7 +3500,7 @@
  16262. finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  16263. fi
  16264. - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
  16265. + if test $need_relink = no || test "$build_libtool_libs" != yes; then
  16266. # Replace the output file specification.
  16267. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  16268. link_command="$compile_command$compile_rpath"
  16269. @@ -2667,7 +3509,7 @@
  16270. $show "$link_command"
  16271. $run eval "$link_command"
  16272. status=$?
  16273. -
  16274. +
  16275. # Delete the generated files.
  16276. if test -n "$dlsyms"; then
  16277. $show "$rm $output_objdir/${outputname}S.${objext}"
  16278. @@ -2681,7 +3523,7 @@
  16279. # We should set the shlibpath_var
  16280. rpath=
  16281. for dir in $temp_rpath; do
  16282. - case "$dir" in
  16283. + case $dir in
  16284. [\\/]* | [A-Za-z]:[\\/]*)
  16285. # Absolute path.
  16286. rpath="$rpath$dir:"
  16287. @@ -2723,11 +3565,24 @@
  16288. fi
  16289. fi
  16290. + if test "$no_install" = yes; then
  16291. + # We don't need to create a wrapper script.
  16292. + link_command="$compile_var$compile_command$compile_rpath"
  16293. + # Replace the output file specification.
  16294. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  16295. + # Delete the old output file.
  16296. + $run $rm $output
  16297. + # Link the executable and exit
  16298. + $show "$link_command"
  16299. + $run eval "$link_command" || exit $?
  16300. + exit 0
  16301. + fi
  16302. +
  16303. if test "$hardcode_action" = relink; then
  16304. # Fast installation is not supported
  16305. link_command="$compile_var$compile_command$compile_rpath"
  16306. relink_command="$finalize_var$finalize_command$finalize_rpath"
  16307. -
  16308. +
  16309. $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  16310. $echo "$modename: \`$output' will be relinked during installation" 1>&2
  16311. else
  16312. @@ -2747,7 +3602,7 @@
  16313. # Replace the output file specification.
  16314. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  16315. -
  16316. +
  16317. # Delete the old output files.
  16318. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  16319. @@ -2759,12 +3614,24 @@
  16320. # Quote the relink command for shipping.
  16321. if test -n "$relink_command"; then
  16322. + # Preserve any variables that may affect compiler behavior
  16323. + for var in $variables_saved_for_relink; do
  16324. + if eval test -z \"\${$var+set}\"; then
  16325. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  16326. + elif eval var_value=\$$var; test -z "$var_value"; then
  16327. + relink_command="$var=; export $var; $relink_command"
  16328. + else
  16329. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  16330. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  16331. + fi
  16332. + done
  16333. + relink_command="(cd `pwd`; $relink_command)"
  16334. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  16335. fi
  16336. # Quote $echo for shipping.
  16337. if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  16338. - case "$0" in
  16339. + case $0 in
  16340. [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  16341. *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  16342. esac
  16343. @@ -2778,7 +3645,12 @@
  16344. # win32 will think the script is a binary if it has
  16345. # a .exe suffix, so we strip it off here.
  16346. case $output in
  16347. - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
  16348. + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
  16349. + esac
  16350. + # test for cygwin because mv fails w/o .exe extensions
  16351. + case $host in
  16352. + *cygwin*) exeext=.exe ;;
  16353. + *) exeext= ;;
  16354. esac
  16355. $rm $output
  16356. trap "$rm $output; exit 1" 1 2 15
  16357. @@ -2797,7 +3669,7 @@
  16358. # Sed substitution that helps us do robust quoting. It backslashifies
  16359. # metacharacters that are still active within double-quoted strings.
  16360. -Xsed='sed -e 1s/^X//'
  16361. +Xsed="${SED}"' -e 1s/^X//'
  16362. sed_quote_subst='$sed_quote_subst'
  16363. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16364. @@ -2809,7 +3681,7 @@
  16365. # This environment variable determines our operation mode.
  16366. if test \"\$libtool_install_magic\" = \"$magic\"; then
  16367. # install mode needs the following variable:
  16368. - link_against_libtool_libs='$link_against_libtool_libs'
  16369. + notinst_deplibs='$notinst_deplibs'
  16370. else
  16371. # When we are sourced in execute mode, \$file and \$echo are already set.
  16372. if test \"\$libtool_execute_magic\" != \"$magic\"; then
  16373. @@ -2835,20 +3707,20 @@
  16374. test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  16375. # Follow symbolic links until we get to the real thisdir.
  16376. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
  16377. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  16378. while test -n \"\$file\"; do
  16379. destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  16380. # If there was a directory component, then change thisdir.
  16381. if test \"x\$destdir\" != \"x\$file\"; then
  16382. case \"\$destdir\" in
  16383. - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
  16384. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  16385. *) thisdir=\"\$thisdir/\$destdir\" ;;
  16386. esac
  16387. fi
  16388. file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  16389. - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
  16390. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  16391. done
  16392. # Try to get the absolute directory name.
  16393. @@ -2858,11 +3730,11 @@
  16394. if test "$fast_install" = yes; then
  16395. echo >> $output "\
  16396. - program=lt-'$outputname'
  16397. + program=lt-'$outputname'$exeext
  16398. progdir=\"\$thisdir/$objdir\"
  16399. -
  16400. +
  16401. if test ! -f \"\$progdir/\$program\" || \\
  16402. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
  16403. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  16404. test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  16405. file=\"\$\$-\$program\"
  16406. @@ -2877,8 +3749,9 @@
  16407. # relink executable if necessary
  16408. if test -n \"\$relink_command\"; then
  16409. - if (cd \"\$thisdir\" && eval \$relink_command); then :
  16410. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  16411. else
  16412. + $echo \"\$relink_command_output\" >&2
  16413. $rm \"\$progdir/\$file\"
  16414. exit 1
  16415. fi
  16416. @@ -2907,7 +3780,7 @@
  16417. $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  16418. # Some systems cannot cope with colon-terminated $shlibpath_var
  16419. - # The second colon is a workaround for a bug in BeOS R4 sed
  16420. + # The second colon is a workaround for a bug in BeOS R4 ${SED}
  16421. $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  16422. export $shlibpath_var
  16423. @@ -2927,13 +3800,21 @@
  16424. # Run the actual program with our arguments.
  16425. "
  16426. case $host in
  16427. - *-*-cygwin* | *-*-mingw | *-*-os2*)
  16428. - # win32 systems need to use the prog path for dll
  16429. - # lookup to work
  16430. + # win32 systems need to use the prog path for dll
  16431. + # lookup to work
  16432. + *-*-cygwin* | *-*-pw32*)
  16433. + $echo >> $output "\
  16434. + exec \$progdir/\$program \${1+\"\$@\"}
  16435. +"
  16436. + ;;
  16437. +
  16438. + # Backslashes separate directories on plain windows
  16439. + *-*-mingw | *-*-os2*)
  16440. $echo >> $output "\
  16441. exec \$progdir\\\\\$program \${1+\"\$@\"}
  16442. "
  16443. ;;
  16444. +
  16445. *)
  16446. $echo >> $output "\
  16447. # Export the path to the program.
  16448. @@ -2975,7 +3856,7 @@
  16449. oldobjs="$libobjs_save"
  16450. build_libtool_libs=no
  16451. else
  16452. - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
  16453. + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
  16454. fi
  16455. addlibs="$old_convenience"
  16456. fi
  16457. @@ -2991,11 +3872,11 @@
  16458. exit $status
  16459. fi
  16460. generated="$generated $gentop"
  16461. -
  16462. +
  16463. # Add in members from convenience archives.
  16464. for xlib in $addlibs; do
  16465. # Extract the objects.
  16466. - case "$xlib" in
  16467. + case $xlib in
  16468. [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  16469. *) xabs=`pwd`"/$xlib" ;;
  16470. esac
  16471. @@ -3041,7 +3922,7 @@
  16472. eval cmds=\"$old_archive_cmds\"
  16473. fi
  16474. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16475. + save_ifs="$IFS"; IFS='~'
  16476. for cmd in $cmds; do
  16477. IFS="$save_ifs"
  16478. $show "$cmd"
  16479. @@ -3056,19 +3937,26 @@
  16480. fi
  16481. # Now create the libtool archive.
  16482. - case "$output" in
  16483. + case $output in
  16484. *.la)
  16485. old_library=
  16486. test "$build_old_libs" = yes && old_library="$libname.$libext"
  16487. $show "creating $output"
  16488. - if test -n "$xrpath"; then
  16489. - temp_xrpath=
  16490. - for libdir in $xrpath; do
  16491. - temp_xrpath="$temp_xrpath -R$libdir"
  16492. - done
  16493. - dependency_libs="$temp_xrpath $dependency_libs"
  16494. - fi
  16495. + # Preserve any variables that may affect compiler behavior
  16496. + for var in $variables_saved_for_relink; do
  16497. + if eval test -z \"\${$var+set}\"; then
  16498. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  16499. + elif eval var_value=\$$var; test -z "$var_value"; then
  16500. + relink_command="$var=; export $var; $relink_command"
  16501. + else
  16502. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  16503. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  16504. + fi
  16505. + done
  16506. + # Quote the link command for shipping.
  16507. + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
  16508. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  16509. # Only create the output if not a dry run.
  16510. if test -z "$run"; then
  16511. @@ -3078,8 +3966,52 @@
  16512. break
  16513. fi
  16514. output="$output_objdir/$outputname"i
  16515. + # Replace all uninstalled libtool libraries with the installed ones
  16516. + newdependency_libs=
  16517. + for deplib in $dependency_libs; do
  16518. + case $deplib in
  16519. + *.la)
  16520. + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  16521. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  16522. + if test -z "$libdir"; then
  16523. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  16524. + exit 1
  16525. + fi
  16526. + newdependency_libs="$newdependency_libs $libdir/$name"
  16527. + ;;
  16528. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  16529. + esac
  16530. + done
  16531. + dependency_libs="$newdependency_libs"
  16532. + newdlfiles=
  16533. + for lib in $dlfiles; do
  16534. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  16535. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  16536. + if test -z "$libdir"; then
  16537. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  16538. + exit 1
  16539. + fi
  16540. + newdlfiles="$newdlfiles $libdir/$name"
  16541. + done
  16542. + dlfiles="$newdlfiles"
  16543. + newdlprefiles=
  16544. + for lib in $dlprefiles; do
  16545. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  16546. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  16547. + if test -z "$libdir"; then
  16548. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  16549. + exit 1
  16550. + fi
  16551. + newdlprefiles="$newdlprefiles $libdir/$name"
  16552. + done
  16553. + dlprefiles="$newdlprefiles"
  16554. fi
  16555. $rm $output
  16556. + # place dlname in correct position for cygwin
  16557. + tdlname=$dlname
  16558. + case $host,$output,$installed,$module,$dlname in
  16559. + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  16560. + esac
  16561. $echo > $output "\
  16562. # $outputname - a libtool library file
  16563. # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  16564. @@ -3088,7 +4020,7 @@
  16565. # It is necessary for linking the library.
  16566. # The name that we can dlopen(3).
  16567. -dlname='$dlname'
  16568. +dlname='$tdlname'
  16569. # Names of this library.
  16570. library_names='$library_names'
  16571. @@ -3107,16 +4039,23 @@
  16572. # Is this an already installed library?
  16573. installed=$installed
  16574. +# Files to dlopen/dlpreopen
  16575. +dlopen='$dlfiles'
  16576. +dlpreopen='$dlprefiles'
  16577. +
  16578. # Directory that this library needs to be installed in:
  16579. -libdir='$install_libdir'\
  16580. -"
  16581. +libdir='$install_libdir'"
  16582. + if test "$installed" = no && test $need_relink = yes; then
  16583. + $echo >> $output "\
  16584. +relink_command=\"$relink_command\""
  16585. + fi
  16586. done
  16587. fi
  16588. # Do a symbolic link so that the libtool archive can be found in
  16589. # LD_LIBRARY_PATH before the program is installed.
  16590. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  16591. - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
  16592. + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  16593. ;;
  16594. esac
  16595. exit 0
  16596. @@ -3128,10 +4067,12 @@
  16597. # There may be an optional sh(1) argument at the beginning of
  16598. # install_prog (especially on Windows NT).
  16599. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
  16600. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  16601. + # Allow the use of GNU shtool's install command.
  16602. + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  16603. # Aesthetically quote it.
  16604. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  16605. - case "$arg" in
  16606. + case $arg in
  16607. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  16608. arg="\"$arg\""
  16609. ;;
  16610. @@ -3147,7 +4088,7 @@
  16611. # The real first argument should be the name of the installation program.
  16612. # Aesthetically quote it.
  16613. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  16614. - case "$arg" in
  16615. + case $arg in
  16616. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  16617. arg="\"$arg\""
  16618. ;;
  16619. @@ -3170,7 +4111,7 @@
  16620. continue
  16621. fi
  16622. - case "$arg" in
  16623. + case $arg in
  16624. -d) isdir=yes ;;
  16625. -f) prev="-f" ;;
  16626. -g) prev="-g" ;;
  16627. @@ -3195,7 +4136,7 @@
  16628. # Aesthetically quote the argument.
  16629. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  16630. - case "$arg" in
  16631. + case $arg in
  16632. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  16633. arg="\"$arg\""
  16634. ;;
  16635. @@ -3246,11 +4187,11 @@
  16636. exit 1
  16637. fi
  16638. fi
  16639. - case "$destdir" in
  16640. + case $destdir in
  16641. [\\/]* | [A-Za-z]:[\\/]*) ;;
  16642. *)
  16643. for file in $files; do
  16644. - case "$file" in
  16645. + case $file in
  16646. *.lo) ;;
  16647. *)
  16648. $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  16649. @@ -3272,15 +4213,15 @@
  16650. for file in $files; do
  16651. # Do each installation.
  16652. - case "$file" in
  16653. - *.a | *.lib)
  16654. + case $file in
  16655. + *.$libext)
  16656. # Do the static libraries later.
  16657. staticlibs="$staticlibs $file"
  16658. ;;
  16659. *.la)
  16660. # Check to see that this really is a libtool archive.
  16661. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  16662. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  16663. else
  16664. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  16665. $echo "$help" 1>&2
  16666. @@ -3289,8 +4230,9 @@
  16667. library_names=
  16668. old_library=
  16669. + relink_command=
  16670. # If there is no directory component, then add one.
  16671. - case "$file" in
  16672. + case $file in
  16673. */* | *\\*) . $file ;;
  16674. *) . ./$file ;;
  16675. esac
  16676. @@ -3309,10 +4251,38 @@
  16677. esac
  16678. fi
  16679. - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
  16680. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  16681. test "X$dir" = "X$file/" && dir=
  16682. dir="$dir$objdir"
  16683. + if test -n "$relink_command"; then
  16684. + # Determine the prefix the user has applied to our future dir.
  16685. + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
  16686. +
  16687. + # Don't allow the user to place us outside of our expected
  16688. + # location b/c this prevents finding dependent libraries that
  16689. + # are installed to the same prefix.
  16690. + if test "$inst_prefix_dir" = "$destdir"; then
  16691. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  16692. + exit 1
  16693. + fi
  16694. +
  16695. + if test -n "$inst_prefix_dir"; then
  16696. + # Stick the inst_prefix_dir data into the link command.
  16697. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  16698. + else
  16699. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
  16700. + fi
  16701. +
  16702. + $echo "$modename: warning: relinking \`$file'" 1>&2
  16703. + $show "$relink_command"
  16704. + if $run eval "$relink_command"; then :
  16705. + else
  16706. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  16707. + exit 1
  16708. + fi
  16709. + fi
  16710. +
  16711. # See the names of the shared library.
  16712. set dummy $library_names
  16713. if test -n "$2"; then
  16714. @@ -3320,9 +4290,16 @@
  16715. shift
  16716. shift
  16717. + srcname="$realname"
  16718. + test -n "$relink_command" && srcname="$realname"T
  16719. +
  16720. # Install the shared library and build the symlinks.
  16721. - $show "$install_prog $dir/$realname $destdir/$realname"
  16722. - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
  16723. + $show "$install_prog $dir/$srcname $destdir/$realname"
  16724. + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  16725. + if test -n "$stripme" && test -n "$striplib"; then
  16726. + $show "$striplib $destdir/$realname"
  16727. + $run eval "$striplib $destdir/$realname" || exit $?
  16728. + fi
  16729. if test $# -gt 0; then
  16730. # Delete the old symlinks, and create new ones.
  16731. @@ -3338,7 +4315,7 @@
  16732. # Do each command in the postinstall commands.
  16733. lib="$destdir/$realname"
  16734. eval cmds=\"$postinstall_cmds\"
  16735. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16736. + save_ifs="$IFS"; IFS='~'
  16737. for cmd in $cmds; do
  16738. IFS="$save_ifs"
  16739. $show "$cmd"
  16740. @@ -3369,11 +4346,11 @@
  16741. fi
  16742. # Deduce the name of the destination old-style object file.
  16743. - case "$destfile" in
  16744. + case $destfile in
  16745. *.lo)
  16746. staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  16747. ;;
  16748. - *.o | *.obj)
  16749. + *.$objext)
  16750. staticdest="$destfile"
  16751. destfile=
  16752. ;;
  16753. @@ -3411,40 +4388,55 @@
  16754. fi
  16755. # Do a test to see if this is really a libtool program.
  16756. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  16757. - link_against_libtool_libs=
  16758. + case $host in
  16759. + *cygwin*|*mingw*)
  16760. + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
  16761. + ;;
  16762. + *)
  16763. + wrapper=$file
  16764. + ;;
  16765. + esac
  16766. + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  16767. + notinst_deplibs=
  16768. relink_command=
  16769. # If there is no directory component, then add one.
  16770. - case "$file" in
  16771. - */* | *\\*) . $file ;;
  16772. - *) . ./$file ;;
  16773. + case $file in
  16774. + */* | *\\*) . $wrapper ;;
  16775. + *) . ./$wrapper ;;
  16776. esac
  16777. # Check the variables that should have been set.
  16778. - if test -z "$link_against_libtool_libs"; then
  16779. - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
  16780. + if test -z "$notinst_deplibs"; then
  16781. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  16782. exit 1
  16783. fi
  16784. finalize=yes
  16785. - for lib in $link_against_libtool_libs; do
  16786. + for lib in $notinst_deplibs; do
  16787. # Check to see that each library is installed.
  16788. libdir=
  16789. if test -f "$lib"; then
  16790. # If there is no directory component, then add one.
  16791. - case "$lib" in
  16792. + case $lib in
  16793. */* | *\\*) . $lib ;;
  16794. *) . ./$lib ;;
  16795. esac
  16796. fi
  16797. - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
  16798. + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  16799. if test -n "$libdir" && test ! -f "$libfile"; then
  16800. $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  16801. finalize=no
  16802. fi
  16803. done
  16804. + relink_command=
  16805. + # If there is no directory component, then add one.
  16806. + case $file in
  16807. + */* | *\\*) . $wrapper ;;
  16808. + *) . ./$wrapper ;;
  16809. + esac
  16810. +
  16811. outputname=
  16812. if test "$fast_install" = no && test -n "$relink_command"; then
  16813. if test "$finalize" = yes && test -z "$run"; then
  16814. @@ -3456,6 +4448,7 @@
  16815. $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  16816. continue
  16817. fi
  16818. + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  16819. outputname="$tmpdir/$file"
  16820. # Replace the output file specification.
  16821. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  16822. @@ -3477,6 +4470,23 @@
  16823. fi
  16824. fi
  16825. + # remove .exe since cygwin /usr/bin/install will append another
  16826. + # one anyways
  16827. + case $install_prog,$host in
  16828. + /usr/bin/install*,*cygwin*)
  16829. + case $file:$destfile in
  16830. + *.exe:*.exe)
  16831. + # this is ok
  16832. + ;;
  16833. + *.exe:*)
  16834. + destfile=$destfile.exe
  16835. + ;;
  16836. + *:*.exe)
  16837. + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
  16838. + ;;
  16839. + esac
  16840. + ;;
  16841. + esac
  16842. $show "$install_prog$stripme $file $destfile"
  16843. $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  16844. test -n "$outputname" && ${rm}r "$tmpdir"
  16845. @@ -3493,9 +4503,14 @@
  16846. $show "$install_prog $file $oldlib"
  16847. $run eval "$install_prog \$file \$oldlib" || exit $?
  16848. + if test -n "$stripme" && test -n "$striplib"; then
  16849. + $show "$old_striplib $oldlib"
  16850. + $run eval "$old_striplib $oldlib" || exit $?
  16851. + fi
  16852. +
  16853. # Do each command in the postinstall commands.
  16854. eval cmds=\"$old_postinstall_cmds\"
  16855. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16856. + save_ifs="$IFS"; IFS='~'
  16857. for cmd in $cmds; do
  16858. IFS="$save_ifs"
  16859. $show "$cmd"
  16860. @@ -3511,11 +4526,10 @@
  16861. if test -n "$current_libdirs"; then
  16862. # Maybe just do a dry run.
  16863. test -n "$run" && current_libdirs=" -n$current_libdirs"
  16864. - exec $SHELL $0 --finish$current_libdirs
  16865. - exit 1
  16866. + exec_cmd='$SHELL $0 --finish$current_libdirs'
  16867. + else
  16868. + exit 0
  16869. fi
  16870. -
  16871. - exit 0
  16872. ;;
  16873. # libtool finish mode
  16874. @@ -3534,7 +4548,7 @@
  16875. if test -n "$finish_cmds"; then
  16876. # Do each command in the finish commands.
  16877. eval cmds=\"$finish_cmds\"
  16878. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  16879. + save_ifs="$IFS"; IFS='~'
  16880. for cmd in $cmds; do
  16881. IFS="$save_ifs"
  16882. $show "$cmd"
  16883. @@ -3553,7 +4567,7 @@
  16884. fi
  16885. # Exit here if they wanted silent mode.
  16886. - test "$show" = : && exit 0
  16887. + test "$show" = ":" && exit 0
  16888. echo "----------------------------------------------------------------------"
  16889. echo "Libraries have been installed in:"
  16890. @@ -3563,7 +4577,7 @@
  16891. echo
  16892. echo "If you ever happen to want to link against installed libraries"
  16893. echo "in a given directory, LIBDIR, you must either use libtool, and"
  16894. - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
  16895. + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  16896. echo "flag during linking and do at least one of the following:"
  16897. if test -n "$shlibpath_var"; then
  16898. echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  16899. @@ -3613,10 +4627,10 @@
  16900. fi
  16901. dir=
  16902. - case "$file" in
  16903. + case $file in
  16904. *.la)
  16905. # Check to see that this really is a libtool archive.
  16906. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  16907. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  16908. else
  16909. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  16910. $echo "$help" 1>&2
  16911. @@ -3628,7 +4642,7 @@
  16912. library_names=
  16913. # If there is no directory component, then add one.
  16914. - case "$file" in
  16915. + case $file in
  16916. */* | *\\*) . $file ;;
  16917. *) . ./$file ;;
  16918. esac
  16919. @@ -3683,13 +4697,13 @@
  16920. args=
  16921. for file
  16922. do
  16923. - case "$file" in
  16924. + case $file in
  16925. -*) ;;
  16926. *)
  16927. # Do a test to see if this is really a libtool program.
  16928. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  16929. + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  16930. # If there is no directory component, then add one.
  16931. - case "$file" in
  16932. + case $file in
  16933. */* | *\\*) . $file ;;
  16934. *) . ./$file ;;
  16935. esac
  16936. @@ -3706,8 +4720,8 @@
  16937. if test -z "$run"; then
  16938. if test -n "$shlibpath_var"; then
  16939. - # Export the shlibpath_var.
  16940. - eval "export $shlibpath_var"
  16941. + # Export the shlibpath_var.
  16942. + eval "export $shlibpath_var"
  16943. fi
  16944. # Restore saved enviroment variables
  16945. @@ -3718,31 +4732,35 @@
  16946. LANG="$save_LANG"; export LANG
  16947. fi
  16948. - # Now actually exec the command.
  16949. - eval "exec \$cmd$args"
  16950. -
  16951. - $echo "$modename: cannot exec \$cmd$args"
  16952. - exit 1
  16953. + # Now prepare to actually exec the command.
  16954. + exec_cmd="\$cmd$args"
  16955. else
  16956. # Display what would be done.
  16957. if test -n "$shlibpath_var"; then
  16958. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  16959. - $echo "export $shlibpath_var"
  16960. + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  16961. + $echo "export $shlibpath_var"
  16962. fi
  16963. $echo "$cmd$args"
  16964. exit 0
  16965. fi
  16966. ;;
  16967. - # libtool uninstall mode
  16968. - uninstall)
  16969. - modename="$modename: uninstall"
  16970. + # libtool clean and uninstall mode
  16971. + clean | uninstall)
  16972. + modename="$modename: $mode"
  16973. rm="$nonopt"
  16974. files=
  16975. + rmforce=
  16976. + exit_status=0
  16977. +
  16978. + # This variable tells wrapper scripts just to set variables rather
  16979. + # than running their programs.
  16980. + libtool_install_magic="$magic"
  16981. for arg
  16982. do
  16983. - case "$arg" in
  16984. + case $arg in
  16985. + -f) rm="$rm $arg"; rmforce=yes ;;
  16986. -*) rm="$rm $arg" ;;
  16987. *) files="$files $arg" ;;
  16988. esac
  16989. @@ -3754,53 +4772,86 @@
  16990. exit 1
  16991. fi
  16992. + rmdirs=
  16993. +
  16994. for file in $files; do
  16995. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  16996. - test "X$dir" = "X$file" && dir=.
  16997. + if test "X$dir" = "X$file"; then
  16998. + dir=.
  16999. + objdir="$objdir"
  17000. + else
  17001. + objdir="$dir/$objdir"
  17002. + fi
  17003. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  17004. + test $mode = uninstall && objdir="$dir"
  17005. +
  17006. + # Remember objdir for removal later, being careful to avoid duplicates
  17007. + if test $mode = clean; then
  17008. + case " $rmdirs " in
  17009. + *" $objdir "*) ;;
  17010. + *) rmdirs="$rmdirs $objdir" ;;
  17011. + esac
  17012. + fi
  17013. +
  17014. + # Don't error if the file doesn't exist and rm -f was used.
  17015. + if (test -L "$file") >/dev/null 2>&1 \
  17016. + || (test -h "$file") >/dev/null 2>&1 \
  17017. + || test -f "$file"; then
  17018. + :
  17019. + elif test -d "$file"; then
  17020. + exit_status=1
  17021. + continue
  17022. + elif test "$rmforce" = yes; then
  17023. + continue
  17024. + fi
  17025. rmfiles="$file"
  17026. - case "$name" in
  17027. + case $name in
  17028. *.la)
  17029. # Possibly a libtool archive, so verify it.
  17030. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  17031. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  17032. . $dir/$name
  17033. # Delete the libtool libraries and symlinks.
  17034. for n in $library_names; do
  17035. - rmfiles="$rmfiles $dir/$n"
  17036. + rmfiles="$rmfiles $objdir/$n"
  17037. done
  17038. - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
  17039. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  17040. + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  17041. - $show "$rm $rmfiles"
  17042. - $run $rm $rmfiles
  17043. -
  17044. - if test -n "$library_names"; then
  17045. - # Do each command in the postuninstall commands.
  17046. - eval cmds=\"$postuninstall_cmds\"
  17047. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  17048. - for cmd in $cmds; do
  17049. + if test $mode = uninstall; then
  17050. + if test -n "$library_names"; then
  17051. + # Do each command in the postuninstall commands.
  17052. + eval cmds=\"$postuninstall_cmds\"
  17053. + save_ifs="$IFS"; IFS='~'
  17054. + for cmd in $cmds; do
  17055. + IFS="$save_ifs"
  17056. + $show "$cmd"
  17057. + $run eval "$cmd"
  17058. + if test $? != 0 && test "$rmforce" != yes; then
  17059. + exit_status=1
  17060. + fi
  17061. + done
  17062. IFS="$save_ifs"
  17063. - $show "$cmd"
  17064. - $run eval "$cmd"
  17065. - done
  17066. - IFS="$save_ifs"
  17067. - fi
  17068. + fi
  17069. - if test -n "$old_library"; then
  17070. - # Do each command in the old_postuninstall commands.
  17071. - eval cmds=\"$old_postuninstall_cmds\"
  17072. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  17073. - for cmd in $cmds; do
  17074. + if test -n "$old_library"; then
  17075. + # Do each command in the old_postuninstall commands.
  17076. + eval cmds=\"$old_postuninstall_cmds\"
  17077. + save_ifs="$IFS"; IFS='~'
  17078. + for cmd in $cmds; do
  17079. + IFS="$save_ifs"
  17080. + $show "$cmd"
  17081. + $run eval "$cmd"
  17082. + if test $? != 0 && test "$rmforce" != yes; then
  17083. + exit_status=1
  17084. + fi
  17085. + done
  17086. IFS="$save_ifs"
  17087. - $show "$cmd"
  17088. - $run eval "$cmd"
  17089. - done
  17090. - IFS="$save_ifs"
  17091. + fi
  17092. + # FIXME: should reinstall the best remaining shared library.
  17093. fi
  17094. -
  17095. - # FIXME: should reinstall the best remaining shared library.
  17096. fi
  17097. ;;
  17098. @@ -3809,17 +4860,35 @@
  17099. oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
  17100. rmfiles="$rmfiles $dir/$oldobj"
  17101. fi
  17102. - $show "$rm $rmfiles"
  17103. - $run $rm $rmfiles
  17104. ;;
  17105. *)
  17106. - $show "$rm $rmfiles"
  17107. - $run $rm $rmfiles
  17108. + # Do a test to see if this is a libtool program.
  17109. + if test $mode = clean &&
  17110. + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  17111. + relink_command=
  17112. + . $dir/$file
  17113. +
  17114. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  17115. + if test "$fast_install" = yes && test -n "$relink_command"; then
  17116. + rmfiles="$rmfiles $objdir/lt-$name"
  17117. + fi
  17118. + fi
  17119. ;;
  17120. esac
  17121. + $show "$rm $rmfiles"
  17122. + $run $rm $rmfiles || exit_status=1
  17123. done
  17124. - exit 0
  17125. +
  17126. + # Try to remove the ${objdir}s in the directories where we deleted files
  17127. + for dir in $rmdirs; do
  17128. + if test -d "$dir"; then
  17129. + $show "rmdir $dir"
  17130. + $run rmdir $dir >/dev/null 2>&1
  17131. + fi
  17132. + done
  17133. +
  17134. + exit $exit_status
  17135. ;;
  17136. "")
  17137. @@ -3829,13 +4898,20 @@
  17138. ;;
  17139. esac
  17140. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  17141. - $echo "$generic_help" 1>&2
  17142. - exit 1
  17143. + if test -z "$exec_cmd"; then
  17144. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  17145. + $echo "$generic_help" 1>&2
  17146. + exit 1
  17147. + fi
  17148. fi # test -z "$show_help"
  17149. +if test -n "$exec_cmd"; then
  17150. + eval exec $exec_cmd
  17151. + exit 1
  17152. +fi
  17153. +
  17154. # We need to display help for each of the modes.
  17155. -case "$mode" in
  17156. +case $mode in
  17157. "") $echo \
  17158. "Usage: $modename [OPTION]... [MODE-ARG]...
  17159. @@ -3854,6 +4930,7 @@
  17160. MODE must be one of the following:
  17161. + clean remove files from the build directory
  17162. compile compile a source file into a libtool object
  17163. execute automatically set library path, then run a program
  17164. finish complete the installation of libtool libraries
  17165. @@ -3866,6 +4943,20 @@
  17166. exit 0
  17167. ;;
  17168. +clean)
  17169. + $echo \
  17170. +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  17171. +
  17172. +Remove files from the build directory.
  17173. +
  17174. +RM is the name of the program to use to delete files associated with each FILE
  17175. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  17176. +to RM.
  17177. +
  17178. +If FILE is a libtool library, object or program, all the files associated
  17179. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  17180. + ;;
  17181. +
  17182. compile)
  17183. $echo \
  17184. "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  17185. @@ -3875,6 +4966,8 @@
  17186. This mode accepts the following additional options:
  17187. -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  17188. + -prefer-pic try to building PIC objects only
  17189. + -prefer-non-pic try to building non-PIC objects only
  17190. -static always build a \`.o' file suitable for static linking
  17191. COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  17192. @@ -3954,6 +5047,8 @@
  17193. -LLIBDIR search LIBDIR for required installed libraries
  17194. -lNAME OUTPUT-FILE requires the installed library libNAME
  17195. -module build a library that can dlopened
  17196. + -no-fast-install disable the fast-install mode
  17197. + -no-install link a not-installable executable
  17198. -no-undefined declare that a library does not refer to external symbols
  17199. -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  17200. -release RELEASE specify package release information
  17201. --- glib1.2-1.2.10.orig/gmodule/Makefile.in
  17202. +++ glib1.2-1.2.10/gmodule/Makefile.in
  17203. @@ -1,6 +1,6 @@
  17204. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  17205. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  17206. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  17207. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  17208. # This Makefile.in is free software; the Free Software Foundation
  17209. # gives unlimited permission to copy and/or distribute it,
  17210. # with or without modifications, as long as this notice is preserved.
  17211. @@ -62,8 +62,10 @@
  17212. AS = @AS@
  17213. CC = @CC@
  17214. DLLTOOL = @DLLTOOL@
  17215. +ECHO = @ECHO@
  17216. ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
  17217. ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
  17218. +EXEEXT = @EXEEXT@
  17219. GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
  17220. GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
  17221. GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
  17222. @@ -88,8 +90,10 @@
  17223. MAINT = @MAINT@
  17224. MAKEINFO = @MAKEINFO@
  17225. OBJDUMP = @OBJDUMP@
  17226. +OBJEXT = @OBJEXT@
  17227. PACKAGE = @PACKAGE@
  17228. RANLIB = @RANLIB@
  17229. +STRIP = @STRIP@
  17230. VERSION = @VERSION@
  17231. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule -DG_LOG_DOMAIN=\"GModule\" @GLIB_DEBUG_FLAGS@
  17232. @@ -112,17 +116,17 @@
  17233. libgmodule_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
  17234. -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17235. +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17236. # we should really depend on $(libglib) for libgmodule.la, but libtool has a
  17237. # problem with this ;(
  17238. libgplugin_a_la_SOURCES = libgplugin_a.c
  17239. libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
  17240. -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17241. +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17242. libgplugin_b_la_SOURCES = libgplugin_b.c
  17243. libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
  17244. -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17245. +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17246. noinst_PROGRAMS = testgmodule
  17247. testgmodule_LDFLAGS = @G_MODULE_LDFLAGS@
  17248. @@ -143,10 +147,11 @@
  17249. libgplugin_a_la_OBJECTS = libgplugin_a.lo
  17250. libgplugin_b_la_DEPENDENCIES =
  17251. libgplugin_b_la_OBJECTS = libgplugin_b.lo
  17252. +noinst_PROGRAMS = testgmodule$(EXEEXT)
  17253. PROGRAMS = $(noinst_PROGRAMS)
  17254. testgmodule_SOURCES = testgmodule.c
  17255. -testgmodule_OBJECTS = testgmodule.o
  17256. +testgmodule_OBJECTS = testgmodule.$(OBJEXT)
  17257. testgmodule_DEPENDENCIES = libgmodule.la $(top_builddir)/libglib.la
  17258. CFLAGS = @CFLAGS@
  17259. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  17260. @@ -161,14 +166,14 @@
  17261. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  17262. -TAR = gtar
  17263. +TAR = tar
  17264. GZIP_ENV = --best
  17265. SOURCES = $(libgmodule_la_SOURCES) $(libgplugin_a_la_SOURCES) $(libgplugin_b_la_SOURCES) testgmodule.c
  17266. -OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.o
  17267. +OBJECTS = $(libgmodule_la_OBJECTS) $(libgplugin_a_la_OBJECTS) $(libgplugin_b_la_OBJECTS) testgmodule.$(OBJEXT)
  17268. all: all-redirect
  17269. .SUFFIXES:
  17270. -.SUFFIXES: .S .c .lo .o .s
  17271. +.SUFFIXES: .S .c .lo .o .obj .s
  17272. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  17273. cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gmodule/Makefile
  17274. @@ -197,6 +202,11 @@
  17275. .c.o:
  17276. $(COMPILE) -c $<
  17277. +# FIXME: We should only use cygpath when building on Windows,
  17278. +# and only if it is available.
  17279. +.c.obj:
  17280. + $(COMPILE) -c `cygpath -w $<`
  17281. +
  17282. .s.o:
  17283. $(COMPILE) -c $<
  17284. @@ -205,6 +215,7 @@
  17285. mostlyclean-compile:
  17286. -rm -f *.o core *.core
  17287. + -rm -f *.$(OBJEXT)
  17288. clean-compile:
  17289. @@ -250,8 +261,8 @@
  17290. maintainer-clean-noinstPROGRAMS:
  17291. -testgmodule: $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
  17292. - @rm -f testgmodule
  17293. +testgmodule$(EXEEXT): $(testgmodule_OBJECTS) $(testgmodule_DEPENDENCIES)
  17294. + @rm -f testgmodule$(EXEEXT)
  17295. $(LINK) $(testgmodule_LDFLAGS) $(testgmodule_OBJECTS) $(testgmodule_LDADD) $(LIBS)
  17296. install-glibincludeHEADERS: $(glibinclude_HEADERS)
  17297. @@ -287,7 +298,7 @@
  17298. awk ' { files[$$0] = 1; } \
  17299. END { for (i in files) print i; }'`; \
  17300. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  17301. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  17302. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  17303. mostlyclean-tags:
  17304. @@ -313,15 +324,6 @@
  17305. || cp -p $$d/$$file $(distdir)/$$file || :; \
  17306. fi; \
  17307. done
  17308. -gmodule.lo gmodule.o : gmodule.c gmodule.h ../glib.h ../glibconfig.h \
  17309. - gmoduleconf.h gmodule-dl.c
  17310. -libgplugin_a.lo libgplugin_a.o : libgplugin_a.c gmodule.h ../glib.h \
  17311. - ../glibconfig.h
  17312. -libgplugin_b.lo libgplugin_b.o : libgplugin_b.c gmodule.h ../glib.h \
  17313. - ../glibconfig.h
  17314. -testgmodule.o: testgmodule.c gmodule.h ../glib.h ../glibconfig.h \
  17315. - gmoduleconf.h
  17316. -
  17317. info-am:
  17318. info: info-am
  17319. dvi-am:
  17320. --- glib1.2-1.2.10.orig/gmodule/Makefile.am
  17321. +++ glib1.2-1.2.10/gmodule/Makefile.am
  17322. @@ -29,17 +29,17 @@
  17323. -release $(LT_RELEASE) \
  17324. -export-dynamic
  17325. -libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17326. +libgmodule_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17327. # we should really depend on $(libglib) for libgmodule.la, but libtool has a
  17328. # problem with this ;(
  17329. libgplugin_a_la_SOURCES = libgplugin_a.c
  17330. libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
  17331. -libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17332. +libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17333. libgplugin_b_la_SOURCES = libgplugin_b.c
  17334. libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
  17335. -libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
  17336. +libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ $(libglib)
  17337. noinst_PROGRAMS = testgmodule
  17338. testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
  17339. --- glib1.2-1.2.10.orig/gthread/Makefile.in
  17340. +++ glib1.2-1.2.10/gthread/Makefile.in
  17341. @@ -1,6 +1,6 @@
  17342. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  17343. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  17344. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  17345. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  17346. # This Makefile.in is free software; the Free Software Foundation
  17347. # gives unlimited permission to copy and/or distribute it,
  17348. # with or without modifications, as long as this notice is preserved.
  17349. @@ -62,8 +62,10 @@
  17350. AS = @AS@
  17351. CC = @CC@
  17352. DLLTOOL = @DLLTOOL@
  17353. +ECHO = @ECHO@
  17354. ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
  17355. ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
  17356. +EXEEXT = @EXEEXT@
  17357. GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
  17358. GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
  17359. GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
  17360. @@ -88,8 +90,10 @@
  17361. MAINT = @MAINT@
  17362. MAKEINFO = @MAKEINFO@
  17363. OBJDUMP = @OBJDUMP@
  17364. +OBJEXT = @OBJEXT@
  17365. PACKAGE = @PACKAGE@
  17366. RANLIB = @RANLIB@
  17367. +STRIP = @STRIP@
  17368. VERSION = @VERSION@
  17369. INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gthread -DG_LOG_DOMAIN=\"GThread\"
  17370. @@ -105,7 +109,7 @@
  17371. libgthread_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic
  17372. -libgthread_la_LIBADD = @G_THREAD_LIBS@
  17373. +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
  17374. noinst_PROGRAMS = testgthread
  17375. testgthread_LDADD = ../libglib.la libgthread.la
  17376. @@ -121,10 +125,11 @@
  17377. LIBS = @LIBS@
  17378. libgthread_la_DEPENDENCIES =
  17379. libgthread_la_OBJECTS = gthread.lo
  17380. +noinst_PROGRAMS = testgthread$(EXEEXT)
  17381. PROGRAMS = $(noinst_PROGRAMS)
  17382. testgthread_SOURCES = testgthread.c
  17383. -testgthread_OBJECTS = testgthread.o
  17384. +testgthread_OBJECTS = testgthread.$(OBJEXT)
  17385. testgthread_DEPENDENCIES = ../libglib.la libgthread.la
  17386. testgthread_LDFLAGS =
  17387. CFLAGS = @CFLAGS@
  17388. @@ -137,14 +142,14 @@
  17389. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  17390. -TAR = gtar
  17391. +TAR = tar
  17392. GZIP_ENV = --best
  17393. SOURCES = $(libgthread_la_SOURCES) testgthread.c
  17394. -OBJECTS = $(libgthread_la_OBJECTS) testgthread.o
  17395. +OBJECTS = $(libgthread_la_OBJECTS) testgthread.$(OBJEXT)
  17396. all: all-redirect
  17397. .SUFFIXES:
  17398. -.SUFFIXES: .S .c .lo .o .s
  17399. +.SUFFIXES: .S .c .lo .o .obj .s
  17400. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  17401. cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gthread/Makefile
  17402. @@ -181,6 +186,11 @@
  17403. .c.o:
  17404. $(COMPILE) -c $<
  17405. +# FIXME: We should only use cygpath when building on Windows,
  17406. +# and only if it is available.
  17407. +.c.obj:
  17408. + $(COMPILE) -c `cygpath -w $<`
  17409. +
  17410. .s.o:
  17411. $(COMPILE) -c $<
  17412. @@ -189,6 +199,7 @@
  17413. mostlyclean-compile:
  17414. -rm -f *.o core *.core
  17415. + -rm -f *.$(OBJEXT)
  17416. clean-compile:
  17417. @@ -228,8 +239,8 @@
  17418. maintainer-clean-noinstPROGRAMS:
  17419. -testgthread: $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
  17420. - @rm -f testgthread
  17421. +testgthread$(EXEEXT): $(testgthread_OBJECTS) $(testgthread_DEPENDENCIES)
  17422. + @rm -f testgthread$(EXEEXT)
  17423. $(LINK) $(testgthread_LDFLAGS) $(testgthread_OBJECTS) $(testgthread_LDADD) $(LIBS)
  17424. tags: TAGS
  17425. @@ -250,7 +261,7 @@
  17426. awk ' { files[$$0] = 1; } \
  17427. END { for (i in files) print i; }'`; \
  17428. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  17429. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  17430. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  17431. mostlyclean-tags:
  17432. @@ -276,11 +287,6 @@
  17433. || cp -p $$d/$$file $(distdir)/$$file || :; \
  17434. fi; \
  17435. done
  17436. -gthread.lo gthread.o : gthread.c ../config.h ../glib.h ../glibconfig.h \
  17437. - gthread-posix.c
  17438. -testgthread.o: testgthread.c ../config.h ../testglib.c ../glib.h \
  17439. - ../glibconfig.h
  17440. -
  17441. info-am:
  17442. info: info-am
  17443. dvi-am:
  17444. --- glib1.2-1.2.10.orig/gthread/Makefile.am
  17445. +++ glib1.2-1.2.10/gthread/Makefile.am
  17446. @@ -19,7 +19,7 @@
  17447. -release $(LT_RELEASE) \
  17448. -export-dynamic
  17449. -libgthread_la_LIBADD = @G_THREAD_LIBS@
  17450. +libgthread_la_LIBADD = @G_THREAD_LIBS@ $(libglib)
  17451. noinst_PROGRAMS = testgthread
  17452. testgthread_LDADD = ../libglib.la libgthread.la
  17453. --- glib1.2-1.2.10.orig/docs/Makefile.in
  17454. +++ glib1.2-1.2.10/docs/Makefile.in
  17455. @@ -1,6 +1,6 @@
  17456. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  17457. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  17458. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  17459. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  17460. # This Makefile.in is free software; the Free Software Foundation
  17461. # gives unlimited permission to copy and/or distribute it,
  17462. # with or without modifications, as long as this notice is preserved.
  17463. @@ -62,8 +62,10 @@
  17464. AS = @AS@
  17465. CC = @CC@
  17466. DLLTOOL = @DLLTOOL@
  17467. +ECHO = @ECHO@
  17468. ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
  17469. ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
  17470. +EXEEXT = @EXEEXT@
  17471. GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
  17472. GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
  17473. GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
  17474. @@ -88,8 +90,10 @@
  17475. MAINT = @MAINT@
  17476. MAKEINFO = @MAKEINFO@
  17477. OBJDUMP = @OBJDUMP@
  17478. +OBJEXT = @OBJEXT@
  17479. PACKAGE = @PACKAGE@
  17480. RANLIB = @RANLIB@
  17481. +STRIP = @STRIP@
  17482. VERSION = @VERSION@
  17483. info_TEXINFOS = glib.texi
  17484. @@ -114,7 +118,7 @@
  17485. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  17486. -TAR = gtar
  17487. +TAR = tar
  17488. GZIP_ENV = --best
  17489. all: all-redirect
  17490. .SUFFIXES:
  17491. @@ -208,7 +212,7 @@
  17492. else ii=; fi; \
  17493. list='$(INFO_DEPS)'; \
  17494. for file in $$list; do \
  17495. - test -z "$ii" \
  17496. + test -z "$$ii" \
  17497. || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
  17498. done
  17499. @$(NORMAL_UNINSTALL)
  17500. --- glib1.2-1.2.10.orig/tests/Makefile.in
  17501. +++ glib1.2-1.2.10/tests/Makefile.in
  17502. @@ -1,6 +1,6 @@
  17503. -# Makefile.in generated automatically by automake 1.4 from Makefile.am
  17504. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  17505. -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  17506. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  17507. # This Makefile.in is free software; the Free Software Foundation
  17508. # gives unlimited permission to copy and/or distribute it,
  17509. # with or without modifications, as long as this notice is preserved.
  17510. @@ -62,8 +62,10 @@
  17511. AS = @AS@
  17512. CC = @CC@
  17513. DLLTOOL = @DLLTOOL@
  17514. +ECHO = @ECHO@
  17515. ENABLE_MEM_CHECK = @ENABLE_MEM_CHECK@
  17516. ENABLE_MEM_PROFILE = @ENABLE_MEM_PROFILE@
  17517. +EXEEXT = @EXEEXT@
  17518. GLIB_BINARY_AGE = @GLIB_BINARY_AGE@
  17519. GLIB_DEBUG_FLAGS = @GLIB_DEBUG_FLAGS@
  17520. GLIB_INTERFACE_AGE = @GLIB_INTERFACE_AGE@
  17521. @@ -88,8 +90,10 @@
  17522. MAINT = @MAINT@
  17523. MAKEINFO = @MAKEINFO@
  17524. OBJDUMP = @OBJDUMP@
  17525. +OBJEXT = @OBJEXT@
  17526. PACKAGE = @PACKAGE@
  17527. RANLIB = @RANLIB@
  17528. +STRIP = @STRIP@
  17529. VERSION = @VERSION@
  17530. INCLUDES = -I$(top_srcdir)
  17531. @@ -116,6 +120,10 @@
  17532. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  17533. CONFIG_HEADER = ../config.h
  17534. CONFIG_CLEAN_FILES =
  17535. +noinst_PROGRAMS = array-test$(EXEEXT) dirname-test$(EXEEXT) \
  17536. +hash-test$(EXEEXT) list-test$(EXEEXT) node-test$(EXEEXT) \
  17537. +relation-test$(EXEEXT) slist-test$(EXEEXT) string-test$(EXEEXT) \
  17538. +strfunc-test$(EXEEXT) tree-test$(EXEEXT) type-test$(EXEEXT)
  17539. PROGRAMS = $(noinst_PROGRAMS)
  17540. @@ -124,47 +132,47 @@
  17541. LDFLAGS = @LDFLAGS@
  17542. LIBS = @LIBS@
  17543. array_test_SOURCES = array-test.c
  17544. -array_test_OBJECTS = array-test.o
  17545. +array_test_OBJECTS = array-test.$(OBJEXT)
  17546. array_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17547. array_test_LDFLAGS =
  17548. dirname_test_SOURCES = dirname-test.c
  17549. -dirname_test_OBJECTS = dirname-test.o
  17550. +dirname_test_OBJECTS = dirname-test.$(OBJEXT)
  17551. dirname_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17552. dirname_test_LDFLAGS =
  17553. hash_test_SOURCES = hash-test.c
  17554. -hash_test_OBJECTS = hash-test.o
  17555. +hash_test_OBJECTS = hash-test.$(OBJEXT)
  17556. hash_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17557. hash_test_LDFLAGS =
  17558. list_test_SOURCES = list-test.c
  17559. -list_test_OBJECTS = list-test.o
  17560. +list_test_OBJECTS = list-test.$(OBJEXT)
  17561. list_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17562. list_test_LDFLAGS =
  17563. node_test_SOURCES = node-test.c
  17564. -node_test_OBJECTS = node-test.o
  17565. +node_test_OBJECTS = node-test.$(OBJEXT)
  17566. node_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17567. node_test_LDFLAGS =
  17568. relation_test_SOURCES = relation-test.c
  17569. -relation_test_OBJECTS = relation-test.o
  17570. +relation_test_OBJECTS = relation-test.$(OBJEXT)
  17571. relation_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17572. relation_test_LDFLAGS =
  17573. slist_test_SOURCES = slist-test.c
  17574. -slist_test_OBJECTS = slist-test.o
  17575. +slist_test_OBJECTS = slist-test.$(OBJEXT)
  17576. slist_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17577. slist_test_LDFLAGS =
  17578. string_test_SOURCES = string-test.c
  17579. -string_test_OBJECTS = string-test.o
  17580. +string_test_OBJECTS = string-test.$(OBJEXT)
  17581. string_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17582. string_test_LDFLAGS =
  17583. strfunc_test_SOURCES = strfunc-test.c
  17584. -strfunc_test_OBJECTS = strfunc-test.o
  17585. +strfunc_test_OBJECTS = strfunc-test.$(OBJEXT)
  17586. strfunc_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17587. strfunc_test_LDFLAGS =
  17588. tree_test_SOURCES = tree-test.c
  17589. -tree_test_OBJECTS = tree-test.o
  17590. +tree_test_OBJECTS = tree-test.$(OBJEXT)
  17591. tree_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17592. tree_test_LDFLAGS =
  17593. type_test_SOURCES = type-test.c
  17594. -type_test_OBJECTS = type-test.o
  17595. +type_test_OBJECTS = type-test.$(OBJEXT)
  17596. type_test_DEPENDENCIES = $(top_builddir)/libglib.la
  17597. type_test_LDFLAGS =
  17598. CFLAGS = @CFLAGS@
  17599. @@ -177,14 +185,14 @@
  17600. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  17601. -TAR = gtar
  17602. +TAR = tar
  17603. GZIP_ENV = --best
  17604. 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
  17605. -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
  17606. +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)
  17607. all: all-redirect
  17608. .SUFFIXES:
  17609. -.SUFFIXES: .S .c .lo .o .s
  17610. +.SUFFIXES: .S .c .lo .o .obj .s
  17611. $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  17612. cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps tests/Makefile
  17613. @@ -205,6 +213,11 @@
  17614. .c.o:
  17615. $(COMPILE) -c $<
  17616. +# FIXME: We should only use cygpath when building on Windows,
  17617. +# and only if it is available.
  17618. +.c.obj:
  17619. + $(COMPILE) -c `cygpath -w $<`
  17620. +
  17621. .s.o:
  17622. $(COMPILE) -c $<
  17623. @@ -213,6 +226,7 @@
  17624. mostlyclean-compile:
  17625. -rm -f *.o core *.core
  17626. + -rm -f *.$(OBJEXT)
  17627. clean-compile:
  17628. @@ -240,48 +254,48 @@
  17629. maintainer-clean-libtool:
  17630. -array-test: $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
  17631. - @rm -f array-test
  17632. +array-test$(EXEEXT): $(array_test_OBJECTS) $(array_test_DEPENDENCIES)
  17633. + @rm -f array-test$(EXEEXT)
  17634. $(LINK) $(array_test_LDFLAGS) $(array_test_OBJECTS) $(array_test_LDADD) $(LIBS)
  17635. -dirname-test: $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
  17636. - @rm -f dirname-test
  17637. +dirname-test$(EXEEXT): $(dirname_test_OBJECTS) $(dirname_test_DEPENDENCIES)
  17638. + @rm -f dirname-test$(EXEEXT)
  17639. $(LINK) $(dirname_test_LDFLAGS) $(dirname_test_OBJECTS) $(dirname_test_LDADD) $(LIBS)
  17640. -hash-test: $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
  17641. - @rm -f hash-test
  17642. +hash-test$(EXEEXT): $(hash_test_OBJECTS) $(hash_test_DEPENDENCIES)
  17643. + @rm -f hash-test$(EXEEXT)
  17644. $(LINK) $(hash_test_LDFLAGS) $(hash_test_OBJECTS) $(hash_test_LDADD) $(LIBS)
  17645. -list-test: $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
  17646. - @rm -f list-test
  17647. +list-test$(EXEEXT): $(list_test_OBJECTS) $(list_test_DEPENDENCIES)
  17648. + @rm -f list-test$(EXEEXT)
  17649. $(LINK) $(list_test_LDFLAGS) $(list_test_OBJECTS) $(list_test_LDADD) $(LIBS)
  17650. -node-test: $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
  17651. - @rm -f node-test
  17652. +node-test$(EXEEXT): $(node_test_OBJECTS) $(node_test_DEPENDENCIES)
  17653. + @rm -f node-test$(EXEEXT)
  17654. $(LINK) $(node_test_LDFLAGS) $(node_test_OBJECTS) $(node_test_LDADD) $(LIBS)
  17655. -relation-test: $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
  17656. - @rm -f relation-test
  17657. +relation-test$(EXEEXT): $(relation_test_OBJECTS) $(relation_test_DEPENDENCIES)
  17658. + @rm -f relation-test$(EXEEXT)
  17659. $(LINK) $(relation_test_LDFLAGS) $(relation_test_OBJECTS) $(relation_test_LDADD) $(LIBS)
  17660. -slist-test: $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
  17661. - @rm -f slist-test
  17662. +slist-test$(EXEEXT): $(slist_test_OBJECTS) $(slist_test_DEPENDENCIES)
  17663. + @rm -f slist-test$(EXEEXT)
  17664. $(LINK) $(slist_test_LDFLAGS) $(slist_test_OBJECTS) $(slist_test_LDADD) $(LIBS)
  17665. -string-test: $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
  17666. - @rm -f string-test
  17667. +string-test$(EXEEXT): $(string_test_OBJECTS) $(string_test_DEPENDENCIES)
  17668. + @rm -f string-test$(EXEEXT)
  17669. $(LINK) $(string_test_LDFLAGS) $(string_test_OBJECTS) $(string_test_LDADD) $(LIBS)
  17670. -strfunc-test: $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
  17671. - @rm -f strfunc-test
  17672. +strfunc-test$(EXEEXT): $(strfunc_test_OBJECTS) $(strfunc_test_DEPENDENCIES)
  17673. + @rm -f strfunc-test$(EXEEXT)
  17674. $(LINK) $(strfunc_test_LDFLAGS) $(strfunc_test_OBJECTS) $(strfunc_test_LDADD) $(LIBS)
  17675. -tree-test: $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
  17676. - @rm -f tree-test
  17677. +tree-test$(EXEEXT): $(tree_test_OBJECTS) $(tree_test_DEPENDENCIES)
  17678. + @rm -f tree-test$(EXEEXT)
  17679. $(LINK) $(tree_test_LDFLAGS) $(tree_test_OBJECTS) $(tree_test_LDADD) $(LIBS)
  17680. -type-test: $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
  17681. - @rm -f type-test
  17682. +type-test$(EXEEXT): $(type_test_OBJECTS) $(type_test_DEPENDENCIES)
  17683. + @rm -f type-test$(EXEEXT)
  17684. $(LINK) $(type_test_LDFLAGS) $(type_test_OBJECTS) $(type_test_LDADD) $(LIBS)
  17685. tags: TAGS
  17686. @@ -302,7 +316,7 @@
  17687. awk ' { files[$$0] = 1; } \
  17688. END { for (i in files) print i; }'`; \
  17689. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  17690. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  17691. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  17692. mostlyclean-tags:
  17693. @@ -328,18 +342,6 @@
  17694. || cp -p $$d/$$file $(distdir)/$$file || :; \
  17695. fi; \
  17696. done
  17697. -array-test.o: array-test.c ../glib.h ../glibconfig.h
  17698. -dirname-test.o: dirname-test.c ../glib.h ../glibconfig.h
  17699. -hash-test.o: hash-test.c ../config.h ../glib.h ../glibconfig.h
  17700. -list-test.o: list-test.c ../glib.h ../glibconfig.h
  17701. -node-test.o: node-test.c ../config.h ../glib.h ../glibconfig.h
  17702. -relation-test.o: relation-test.c ../glib.h ../glibconfig.h
  17703. -slist-test.o: slist-test.c ../glib.h ../glibconfig.h
  17704. -strfunc-test.o: strfunc-test.c ../glib.h ../glibconfig.h
  17705. -string-test.o: string-test.c ../glib.h ../glibconfig.h
  17706. -tree-test.o: tree-test.c ../glib.h ../glibconfig.h
  17707. -type-test.o: type-test.c ../glib.h ../glibconfig.h
  17708. -
  17709. check-TESTS: $(TESTS)
  17710. @failed=0; all=0; \
  17711. srcdir=$(srcdir); export srcdir; \
  17712. --- glib1.2-1.2.10.orig/debian/rules
  17713. +++ glib1.2-1.2.10/debian/rules
  17714. @@ -0,0 +1,137 @@
  17715. +#!/usr/bin/make -f
  17716. +# Sample debian/rules that uses debhelper.
  17717. +# GNU copyright 1997 to 1999 by Joey Hess.
  17718. +
  17719. +# Uncomment this to turn on verbose mode.
  17720. +#export DH_VERBOSE=1
  17721. +
  17722. +# These are used for cross-compiling and for saving the configure script
  17723. +# from having to guess our platform (since we know it already)
  17724. +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  17725. +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  17726. +
  17727. +CFLAGS = -Wall -g
  17728. +
  17729. +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  17730. + CFLAGS += -O0
  17731. +else
  17732. + CFLAGS += -O2
  17733. +endif
  17734. +ifeq (,$(findstring,nostrip,$(DEB_BUILD_OPTIONS)))
  17735. + INSTALL_PROGRAM += -s
  17736. +endif
  17737. +
  17738. +# shared library versions, option 1
  17739. +version=2.0.5
  17740. +major=2
  17741. +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
  17742. +#version=`ls src/.libs/lib*.so.* | \
  17743. +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
  17744. +#major=`ls src/.libs/lib*.so.* | \
  17745. +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
  17746. +
  17747. +config.status: configure
  17748. + dh_testdir
  17749. +
  17750. + # Add here commands to configure the package.
  17751. + ./configure --host=$(DEB_HOST_GNU_TYPE) \
  17752. + --build=$(DEB_BUILD_GNU_TYPE) \
  17753. + --prefix=/usr \
  17754. + --mandir=\$${prefix}/share/man \
  17755. + --infodir=\$${prefix}/share/info \
  17756. + --enable-debug=yes
  17757. +
  17758. +build: build-stamp
  17759. +build-stamp: config.status
  17760. + dh_testdir
  17761. +
  17762. + # Add here commands to compile the package.
  17763. + $(MAKE)
  17764. +
  17765. + touch $@
  17766. +
  17767. +clean:
  17768. + dh_testdir
  17769. + dh_testroot
  17770. + rm -f build-stamp
  17771. +
  17772. + # Add here commands to clean up after the build process.
  17773. + -$(MAKE) distclean
  17774. +
  17775. + -test -r /usr/share/misc/config.sub && \
  17776. + cp -r /usr/share/misc/config.sub config.sub
  17777. + -test -r /usr/share/misc/config.guess && \
  17778. + cp -r /usr/share/misc/config.guess config.guess
  17779. +
  17780. + dh_clean
  17781. +
  17782. +install: build
  17783. + dh_testdir
  17784. + dh_testroot
  17785. + dh_clean -k
  17786. + dh_installdirs
  17787. +
  17788. + # Add here commands to install the package into debian/tmp
  17789. + $(MAKE) install prefix=$(CURDIR)/debian/libglib1.2/usr
  17790. +
  17791. + # for -dbg
  17792. + mkdir -p $(CURDIR)/debian/libglib1.2/usr/lib/debug
  17793. + for l in `find $(CURDIR)/debian/libglib1.2/usr/lib -name '*.so*'`; do \
  17794. + cp -vdf $$l \
  17795. + $(CURDIR)/debian/libglib1.2/usr/lib/debug/; \
  17796. + done
  17797. +
  17798. + dh_movefiles --sourcedir=debian/libglib1.2
  17799. + -find $(CURDIR)/debian/ -type d -empty | xargs rmdir -p 2>&1 > /dev/null
  17800. +
  17801. +# Build architecture-independent files here.
  17802. +binary-indep: build install
  17803. + dh_testdir -i
  17804. + dh_testroot -i
  17805. +
  17806. + dh_installdocs -i
  17807. +
  17808. + dh_installexamples -i
  17809. + dh_installinfo -i
  17810. + dh_installchangelogs -i ChangeLog
  17811. + dh_compress -i
  17812. + dh_fixperms -i
  17813. + dh_installdeb -i
  17814. + dh_gencontrol -i
  17815. + dh_md5sums -i
  17816. + dh_builddeb -i
  17817. +
  17818. +# Build architecture-dependent files here.
  17819. +binary-arch: build install
  17820. + dh_testdir -a
  17821. + dh_testroot -a
  17822. +
  17823. +# dh_installdebconf
  17824. + dh_installdocs -a
  17825. + dh_installexamples -a
  17826. + dh_installmenu -a
  17827. +# dh_installlogrotate
  17828. +# dh_installemacsen
  17829. +# dh_installpam
  17830. +# dh_installmime
  17831. +# dh_installinit
  17832. +# dh_installcron
  17833. + dh_installman -a
  17834. + dh_installinfo -a
  17835. +# dh_undocumented
  17836. + dh_installchangelogs -a ChangeLog
  17837. + dh_link -a
  17838. + dh_strip -a -Nlibglib1.2-dbg
  17839. + dh_compress -a
  17840. + dh_fixperms -a
  17841. + dh_makeshlibs -a -Nlibglib1.2-dbg
  17842. + dh_makeshlibs -n -plibglib1.2 -V 'libglib1.2 (>= 1.2.0)'
  17843. + dh_installdeb -a
  17844. +# dh_perl
  17845. + dh_shlibdeps -a
  17846. + dh_gencontrol -a
  17847. + dh_md5sums -a
  17848. + dh_builddeb -a
  17849. +
  17850. +binary: binary-indep binary-arch
  17851. +.PHONY: build clean binary-indep binary-arch binary install
  17852. --- glib1.2-1.2.10.orig/debian/docs
  17853. +++ glib1.2-1.2.10/debian/docs
  17854. @@ -0,0 +1,2 @@
  17855. +NEWS
  17856. +README
  17857. --- glib1.2-1.2.10.orig/debian/README.Debian
  17858. +++ glib1.2-1.2.10/debian/README.Debian
  17859. @@ -0,0 +1,25 @@
  17860. +glib for Debian
  17861. +----------------------
  17862. +
  17863. +This is GLib version 1.2. GLib, is a library which includes support
  17864. +routines for C such as lists, trees, hashes, memory allocation, and
  17865. +many other things.
  17866. +
  17867. +Versions of GLib prior to 1.1 are distributed with GTK+ versions 1.1.0
  17868. +and earlier.
  17869. +
  17870. +The GIMP Tool Kit (gtk) is a set of widgets to help you program
  17871. +programs for the X Windowing System easily and powerfully.
  17872. +
  17873. +gtk is the moving force behind The GNU Image Manipulation Program (The
  17874. +GIMP) -- the number one freely-available image editing and creation
  17875. +program available.
  17876. +
  17877. +gtk is rapidly under development, and the source tree has officially
  17878. +been separated from The GIMP now, as other teams of programmers
  17879. +are beginning to write software using its great widget set -- like
  17880. +GNOME, a desktop interface for X, and gzilla, a freely available
  17881. +web browser for X.
  17882. +
  17883. +Ben Gertzfield <che@debian.org>, Mon, 29 Sep 1997 13:11:45 -0700
  17884. +
  17885. --- glib1.2-1.2.10.orig/debian/changelog
  17886. +++ glib1.2-1.2.10/debian/changelog
  17887. @@ -0,0 +1,298 @@
  17888. +glib1.2 (1.2.10-9) unstable; urgency=low
  17889. +
  17890. + * debian/control:
  17891. + - bumped Standards-Version to 3.5.10.0.
  17892. + - changed the sections for libglib1.2-dev and libglib1.2-dbg to libdevel.
  17893. + * debian/compat:
  17894. + - use it instead of DH_COMPAT.
  17895. + * gmodule/Makefile.in, gthread/Makefile.in:
  17896. + fix the undefined non-weak symbols. (closes: Bug#193347)
  17897. +
  17898. + -- Akira TAGOH <tagoh@debian.org> Sun, 18 May 2003 00:00:17 +0900
  17899. +
  17900. +glib1.2 (1.2.10-8) unstable; urgency=low
  17901. +
  17902. + * Fixed libtool issue on mispel. (closes: Bug#183793)
  17903. + * acinclude.m4, ltconfig:
  17904. + - removed. it contained the old libtool stuff.
  17905. +
  17906. + -- Akira TAGOH <tagoh@debian.org> Tue, 11 Mar 2003 23:36:10 +0900
  17907. +
  17908. +glib1.2 (1.2.10-7) unstable; urgency=low
  17909. +
  17910. + * debian/rules:
  17911. + - fix twice modified the maintainer script for dh_installdocs.
  17912. + - support DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE.
  17913. + - support noopt and nostrip for DEB_BUILD_OPTIONS.
  17914. + - copy the latest config.sub and config.guess. (closes: Bug#181942)
  17915. + - don't call ldconfig for -dbg package.
  17916. + * debian/control:
  17917. + - bumped Standards-Version to 3.5.8.
  17918. + - updated Build-Depends.
  17919. + - split the documentation files into libglib1.2-doc.
  17920. + * debian/libglib1.2-doc.info: add glib.info. (closes: Bug#159677)
  17921. +
  17922. + -- Akira TAGOH <tagoh@debian.org> Thu, 27 Feb 2003 00:12:39 +0900
  17923. +
  17924. +glib1.2 (1.2.10-6) unstable; urgency=low
  17925. +
  17926. + * debian/control:
  17927. + - removed libc6-dev from Build-Depends.
  17928. + - changed libc6-dev to libc6-dev | libc-dev in -dev's Depends.
  17929. +
  17930. + -- Akira TAGOH <tagoh@debian.org> Thu, 22 Aug 2002 02:02:32 +0900
  17931. +
  17932. +glib1.2 (1.2.10-5) unstable; urgency=low
  17933. +
  17934. + * debian/control: add libc6-dev to Depends for -dev (closes: Bug#147653)
  17935. +
  17936. + -- Akira TAGOH <tagoh@debian.org> Wed, 22 May 2002 23:58:14 +0900
  17937. +
  17938. +glib1.2 (1.2.10-4) unstable; urgency=low
  17939. +
  17940. + * debian/control: Fixed build-depends for NetBSD/i386 (closes: Bug#133443)
  17941. +
  17942. + -- Akira TAGOH <tagoh@debian.org> Wed, 13 Feb 2002 02:22:20 +0900
  17943. +
  17944. +glib1.2 (1.2.10-3) unstable; urgency=low
  17945. +
  17946. + * Closed a NMU bug. (closes: Bug#93932)
  17947. + * Fixed description typo (closes: Bug#102988)
  17948. + * -dbg package contains shared libraries for debugging. so if you
  17949. + need static link, add -static to compiler option and use
  17950. + static libraries which is included in libglib1.2-dev.
  17951. +
  17952. + -- Akira TAGOH <tagoh@debian.org> Sat, 24 Nov 2001 20:54:25 +0900
  17953. +
  17954. +glib1.2 (1.2.10-2) unstable; urgency=low
  17955. +
  17956. + * I took over this package from Ben.
  17957. + * Closed a bug because it is already fixed in the latest release.
  17958. + (closes: Bug#62463)
  17959. +
  17960. + -- Akira TAGOH <tagoh@debian.org> Sat, 10 Nov 2001 19:49:14 +0900
  17961. +
  17962. +glib1.2 (1.2.10-1.2) unstable; urgency=low
  17963. +
  17964. + * Non-Maintainer Upload, approved by Ben.
  17965. + * Updated config.sub and config.guess for ia64 (closes: #93932).
  17966. + * If -dev's postinst fails at install-info, have a look at Bug#99816.
  17967. +
  17968. + -- Jordi Mallach <jordi@debian.org> Sat, 23 Jun 2001 05:28:15 +0200
  17969. +
  17970. +glib1.2 (1.2.10-1.1) unstable; urgency=low
  17971. +
  17972. + * Binary-only rebuild because of gcc 2.95 atexit() problem on i386.
  17973. + (Closes: #93052)
  17974. +
  17975. + -- Ben Gertzfield <che@debian.org> Wed, 11 Apr 2001 19:46:27 -0700
  17976. +
  17977. +glib1.2 (1.2.10-1) unstable; urgency=low
  17978. +
  17979. + * New upstream version.
  17980. + * Patch config.sub for s390 architecture. (Closes: #88553)
  17981. +
  17982. + -- Ben Gertzfield <che@debian.org> Sun, 1 Apr 2001 21:44:47 -0700
  17983. +
  17984. +glib1.2 (1.2.9-1) unstable; urgency=low
  17985. +
  17986. + * New upstream version.
  17987. + * Include upstream changelog. (Closes: #59744)
  17988. + * Note that the include files have been moved (according to
  17989. + upstream) to /usr/include/glib-1.2/, but this should not be a
  17990. + problem for anything using glib-config. Please, PLEASE, don't
  17991. + submit bugs on my poor packages because your program isn't using
  17992. + glib-config!
  17993. + * Fix bashisms in debian/rules. (Hah, caught 'em on my own..)
  17994. +
  17995. + -- Ben Gertzfield <che@debian.org> Fri, 2 Mar 2001 16:18:36 -0800
  17996. +
  17997. +glib1.2 (1.2.8-2) unstable; urgency=low
  17998. +
  17999. + * Bump Standards-Version to 3.2.1.
  18000. +
  18001. + -- Ben Gertzfield <che@debian.org> Sat, 23 Dec 2000 01:31:39 -0800
  18002. +
  18003. +glib1.2 (1.2.8-1) unstable; urgency=low
  18004. +
  18005. + * New upstream version.
  18006. +
  18007. + -- Ben Gertzfield <che@debian.org> Wed, 24 May 2000 19:41:54 -0700
  18008. +
  18009. +glib1.2 (1.2.7-2) frozen unstable; urgency=medium
  18010. +
  18011. + * Fix "guard code" in configure.in that tests for gcc version
  18012. + greater than 2.8 (will fail when 3.0 comes out.) This fixes
  18013. + *half* of the release-critical bug report #55246.
  18014. + * The other half of RC bug #55246 is not really a glib problem;
  18015. + G_GNUC_EXTENSION arguably should be defined on all platforms, but
  18016. + that's up to upstream to change this. It's been reported upstream as
  18017. + gnome bug #6328, http://bugs.gnome.org/db/63/6328.html. In any case,
  18018. + gentoo should be using G_GINT64_CONSTANT(12345) for portably declaring
  18019. + 64-bit constants, instead of the undocumented, internal,
  18020. + not-defined-on-all-platforms G_GNUC_EXTENSION. I will be reassigning
  18021. + the remainder of RC bug #55246 to gentoo.
  18022. +
  18023. + -- Ben Gertzfield <che@debian.org> Mon, 28 Feb 2000 12:33:57 -0800
  18024. +
  18025. +glib1.2 (1.2.7-1) frozen unstable; urgency=low
  18026. +
  18027. + * To fix i18n problems with GTK+, glib 1.2.7 and gtk+ 1.2.7
  18028. + must both make it into frozen.
  18029. + * (New upstream version, too. :)
  18030. +
  18031. + -- Ben Gertzfield <che@debian.org> Thu, 17 Feb 2000 09:12:20 -0800
  18032. +
  18033. +glib1.2 (1.2.6-1) unstable; urgency=low
  18034. +
  18035. + * New upstream version.
  18036. + * Make sure docs are in /usr/share/doc/libglib1.2 etc.
  18037. +
  18038. + -- Ben Gertzfield <che@debian.org> Fri, 15 Oct 1999 09:44:19 -0700
  18039. +
  18040. +glib1.2 (1.2.5-1) unstable; urgency=low
  18041. +
  18042. + * New upstream version.
  18043. +
  18044. + -- Ben Gertzfield <che@debian.org> Fri, 24 Sep 1999 09:27:25 -0700
  18045. +
  18046. +glib1.2 (1.2.4-1) unstable; urgency=low
  18047. +
  18048. + * New upstream version.
  18049. +
  18050. + -- Ben Gertzfield <che@debian.org> Tue, 24 Aug 1999 11:10:11 -0700
  18051. +
  18052. +glib1.2 (1.2.3-2) unstable; urgency=low
  18053. +
  18054. + * Erg. Make sure -dev depends on exact version of lib, and -dbg
  18055. + depends on exact version of -dev and lib.
  18056. +
  18057. + -- Ben Gertzfield <che@debian.org> Tue, 27 Jul 1999 15:24:33 -0700
  18058. +
  18059. +glib1.2 (1.2.3-1) unstable; urgency=low
  18060. +
  18061. + * New upstream version.
  18062. +
  18063. + -- Ben Gertzfield <che@debian.org> Tue, 11 May 1999 20:55:00 -0700
  18064. +
  18065. +glib1.2 (1.2.2-1) unstable; urgency=low
  18066. +
  18067. + * New upstream version.
  18068. +
  18069. + -- Ben Gertzfield <che@debian.org> Mon, 26 Apr 1999 18:15:06 -0700
  18070. +
  18071. +glib1.2 (1.2.1-2) unstable; urgency=low
  18072. +
  18073. + * Recompile with GNU libc 2.1.
  18074. +
  18075. + -- Ben Gertzfield <che@debian.org> Thu, 15 Apr 1999 13:26:50 -0700
  18076. +
  18077. +glib1.2 (1.2.1-1) unstable; urgency=low
  18078. +
  18079. + * New upstream version.
  18080. + * Make the shlibs looser; now packages depend on libglib1.2 (>= 1.2.0)
  18081. +
  18082. + -- Ben Gertzfield <che@debian.org> Thu, 25 Mar 1999 10:33:26 -0800
  18083. +
  18084. +glib1.2 (1.2.0-1) unstable; urgency=low
  18085. +
  18086. + * Hallelujah! :) We made it.
  18087. +
  18088. + -- Ben Gertzfield <che@debian.org> Thu, 25 Feb 1999 22:17:36 -0800
  18089. +
  18090. +glib1.1.16 (1.1.16-1) unstable; urgency=low
  18091. +
  18092. + * New upstream version.
  18093. +
  18094. + -- Ben Gertzfield <che@debian.org> Tue, 16 Feb 1999 16:55:07 -0800
  18095. +
  18096. +glib1.1.13 (1.1.13-1) unstable; urgency=low
  18097. +
  18098. + * New upstream version.
  18099. +
  18100. + -- Ben Gertzfield <che@debian.org> Wed, 20 Jan 1999 18:25:48 -0800
  18101. +
  18102. +glib1.1.12 (1.1.12-1) unstable; urgency=low
  18103. +
  18104. + * New upstream version.
  18105. +
  18106. + -- Ben Gertzfield <che@debian.org> Mon, 4 Jan 1999 14:13:59 -0800
  18107. +
  18108. +glib1.1.11 (1.1.11-1) unstable; urgency=low
  18109. +
  18110. + * New upstream version. (They skipped .10.)
  18111. +
  18112. + -- Ben Gertzfield <che@debian.org> Wed, 30 Dec 1998 21:46:40 -0800
  18113. +
  18114. +glib1.1.9 (1.1.9-1) unstable; urgency=low
  18115. +
  18116. + * New upstream version.
  18117. + * Now debian/rules uses a $(version) variable to make my life easier.
  18118. +
  18119. + -- Ben Gertzfield <che@debian.org> Thu, 17 Dec 1998 10:36:27 -0800
  18120. +
  18121. +glib1.1.6 (1.1.6-1) unstable; urgency=low
  18122. +
  18123. + * New upstream version.
  18124. +
  18125. + -- Ben Gertzfield <che@debian.org> Tue, 8 Dec 1998 20:54:59 -0800
  18126. +
  18127. +glib1.1.5 (1.1.5-2) unstable; urgency=low
  18128. +
  18129. + * Now libglib1.1.5-dev Provides: libglib-dev and libglib1.1-dev.
  18130. +
  18131. + -- Ben Gertzfield <che@debian.org> Sun, 29 Nov 1998 17:59:52 -0800
  18132. +
  18133. +glib1.1.5 (1.1.5-1) unstable; urgency=low
  18134. +
  18135. + * Now the source and binary packages *all* specifically have the version
  18136. + number in them. This is so a new release of glib or gtk+ does not break
  18137. + all apps dependant upon glib or gtk+'s unstable branch.
  18138. + * Removed --enable-debug=no from libglib1.1 build; it was causing problems
  18139. +
  18140. + -- Ben Gertzfield <che@debian.org> Tue, 24 Nov 1998 14:25:15 -0800
  18141. +
  18142. +glib (1.1.4-1) unstable; urgency=low
  18143. +
  18144. + * New upstream version.
  18145. + * debian/control: libglib-dev and libglib-dbg now depend on ${Source-Version}
  18146. + of libglib1.1 to make upgrades force you to have one version of the library
  18147. + and -dev and -dbg, no more multiple versions allowed.
  18148. +
  18149. + -- Ben Gertzfield <che@debian.org> Thu, 5 Nov 1998 10:50:03 -0800
  18150. +
  18151. +glib (1.1.3-2) unstable; urgency=low
  18152. +
  18153. + * Rebuild with new clean-dbg target to fix my error helped along by
  18154. + an old broken debhelper.
  18155. +
  18156. + -- Ben Gertzfield <che@debian.org> Tue, 29 Sep 1998 13:01:24 -0700
  18157. +
  18158. +glib (1.1.3-1) unstable; urgency=low
  18159. +
  18160. + * New upstream version.
  18161. + * New libglib-dbg package.
  18162. +
  18163. + -- Ben Gertzfield <che@debian.org> Mon, 21 Sep 1998 22:30:46 -0700
  18164. +
  18165. +glib (1.1.2-1) unstable; urgency=low
  18166. +
  18167. + * New upstream version (that was fast!).
  18168. +
  18169. + -- Ben Gertzfield <che@debian.org> Wed, 5 Aug 1998 12:13:59 -0700
  18170. +
  18171. +glib (1.1.1-1) unstable; urgency=low
  18172. +
  18173. + * New upstream version.
  18174. +
  18175. + -- Ben Gertzfield <che@debian.org> Tue, 4 Aug 1998 22:42:09 -0700
  18176. +
  18177. +glib (1.1.0-1) unstable; urgency=low
  18178. +
  18179. + * Split off of GTK+ package upstream. New package.
  18180. +
  18181. + -- Ben Gertzfield <che@debian.org> Mon, 27 Jul 1998 14:11:04 -0700
  18182. +
  18183. +Local variables:
  18184. +mode: debian-changelog
  18185. +End:
  18186. --- glib1.2-1.2.10.orig/debian/control
  18187. +++ glib1.2-1.2.10/debian/control
  18188. @@ -0,0 +1,73 @@
  18189. +Source: glib1.2
  18190. +Priority: optional
  18191. +Section: libs
  18192. +Maintainer: Akira TAGOH <tagoh@debian.org>
  18193. +Standards-Version: 3.5.10.0
  18194. +Build-Depends: debhelper (>> 4.0.0), libpth-dev [netbsd-i386], autotools-dev
  18195. +
  18196. +Package: libglib1.2
  18197. +Architecture: any
  18198. +Section: libs
  18199. +Depends: ${shlibs:Depends}
  18200. +Replaces: libgtk-doc
  18201. +Description: The GLib library of C routines
  18202. + GLib is a library containing many useful C routines for things such
  18203. + as trees, hashes, and lists. GLib was previously distributed with
  18204. + the GTK+ toolkit, but has been split off as of the developers' version
  18205. + 1.1.0.
  18206. + .
  18207. + You do not need to install this package if you have libgtk1 (note 1,
  18208. + not 1.1 or 1.2) installed. libgtk1 included libglib in it. libgtk1.1
  18209. + and libgtk1.2, however, do need libglib1.1 to be installed separately.
  18210. +
  18211. +Package: libglib1.2-dev
  18212. +Architecture: any
  18213. +Section: libdevel
  18214. +Depends: libglib1.2 (= ${Source-Version}), libc6-dev | libc-dev, pkg-config
  18215. +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)
  18216. +Provides: libglib-dev, libglib1.1-dev
  18217. +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)
  18218. +Suggests: libglib1.2-doc
  18219. +Description: Development files for GLib library
  18220. + GLib is a library containing many useful C routines for things such
  18221. + as trees, hashes, and lists. GLib was previously distributed with
  18222. + the GTK+ toolkit, but has been split off as of the developers' version
  18223. + 1.1.0.
  18224. + .
  18225. + This package contains the header files and static libraries for the
  18226. + GLib C library
  18227. +
  18228. +Package: libglib1.2-dbg
  18229. +Architecture: any
  18230. +Section: libdevel
  18231. +Priority: extra
  18232. +Conflicts: libgtk-dev
  18233. +Depends: libglib1.2 (= ${Source-Version})
  18234. +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
  18235. +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
  18236. +Description: GLib libraries and debugging symbols
  18237. + GLib is a library containing many useful C routines for things such
  18238. + as trees, hashes, and lists. GLib was previously distributed with
  18239. + the GTK+ toolkit, but has been split off as of the developers' version
  18240. + 1.1.0.
  18241. + .
  18242. + This package contains unstripped shared libraries. it is provided
  18243. + primarily to provide a backtrace with names in a debugger, this makes
  18244. + it somewhat easier to interpret core dumps. The libraries are installed
  18245. + in /usr/lib/debug and can be used by placing that directory in
  18246. + LD_LIBRARY_PATH.
  18247. + Most people will not need this package.
  18248. +
  18249. +Package: libglib1.2-doc
  18250. +Architecture: all
  18251. +Section: doc
  18252. +Depends: lynx | www-browser
  18253. +Description: Documentation files for the GLib library version 1.2
  18254. + GLib is a library containing many useful C routines for things such
  18255. + as trees, hashes, and lists. GLib was previously distributed with
  18256. + the GTK+ toolkit, but has been split off as of the developers' version
  18257. + 1.1.0.
  18258. + .
  18259. + This package contains the documentation files for the GLib library
  18260. + in /usr/share/doc/libglib1.2-doc/ .
  18261. +
  18262. --- glib1.2-1.2.10.orig/debian/copyright
  18263. +++ glib1.2-1.2.10/debian/copyright
  18264. @@ -0,0 +1,8 @@
  18265. +This package was debianized by Ben Gertzfield <che@debian.org>
  18266. +on Mon, 27 Jul 1998 14:17:44 -0700
  18267. +
  18268. +GIMP's source may be fetched from http://www.gimp.org/ .
  18269. +
  18270. +It may be redistributed under the terms of the GNU LGPL, Version 2 or
  18271. +later, found on Debian systems in the file /usr/share/common-licenses/LGPL-2.
  18272. +
  18273. --- glib1.2-1.2.10.orig/debian/compat
  18274. +++ glib1.2-1.2.10/debian/compat
  18275. @@ -0,0 +1 @@
  18276. +4
  18277. --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.dirs
  18278. +++ glib1.2-1.2.10/debian/libglib1.2-dbg.dirs
  18279. @@ -0,0 +1 @@
  18280. +usr/lib/debug
  18281. --- glib1.2-1.2.10.orig/debian/libglib1.2-dbg.files
  18282. +++ glib1.2-1.2.10/debian/libglib1.2-dbg.files
  18283. @@ -0,0 +1 @@
  18284. +usr/lib/debug/*.so*
  18285. --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.dirs
  18286. +++ glib1.2-1.2.10/debian/libglib1.2-dev.dirs
  18287. @@ -0,0 +1,4 @@
  18288. +usr/include
  18289. +usr/lib
  18290. +usr/lib/pkgconfig
  18291. +
  18292. --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.doc-base
  18293. +++ glib1.2-1.2.10/debian/libglib1.2-doc.doc-base
  18294. @@ -0,0 +1,16 @@
  18295. +Document: glib-docs
  18296. +Title: GLib C library documentation
  18297. +Author: Gregory McLean
  18298. +Abstract: Library reference for GLib C library of useful functions
  18299. + This document goes into detail on each function of the GLib C
  18300. + library of useful functions to deal with common structures like
  18301. + lists, trees, et cetera.
  18302. +Section: Apps/Programming
  18303. +
  18304. +Format: texinfo
  18305. +Files: /usr/share/doc/libglib1.2-doc/glib.texi.gz
  18306. +
  18307. +Format: HTML
  18308. +Index: /usr/share/doc/libglib1.2-doc/glib_toc.html
  18309. +Files: /usr/share/doc/libglib1.2-doc/glib.html
  18310. +
  18311. --- glib1.2-1.2.10.orig/debian/libglib1.2-dev.files
  18312. +++ glib1.2-1.2.10/debian/libglib1.2-dev.files
  18313. @@ -0,0 +1,7 @@
  18314. +usr/bin/glib-config
  18315. +usr/include/*
  18316. +usr/lib/lib*.{so,la,a}
  18317. +usr/lib/glib/include/*
  18318. +usr/lib/pkgconfig/*.pc
  18319. +usr/share/aclocal/*m4
  18320. +usr/share/man/man1/glib-config.1*
  18321. --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.dirs
  18322. +++ glib1.2-1.2.10/debian/libglib1.2-doc.dirs
  18323. @@ -0,0 +1 @@
  18324. +usr/share/doc/libglib1.2-doc
  18325. --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.files
  18326. +++ glib1.2-1.2.10/debian/libglib1.2-doc.files
  18327. @@ -0,0 +1,2 @@
  18328. +usr/share/doc/libglib1.2-doc/*
  18329. +usr/share/info/*
  18330. --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.docs
  18331. +++ glib1.2-1.2.10/debian/libglib1.2-doc.docs
  18332. @@ -0,0 +1,2 @@
  18333. +docs/*.html
  18334. +docs/*.texi
  18335. --- glib1.2-1.2.10.orig/debian/libglib1.2-doc.info
  18336. +++ glib1.2-1.2.10/debian/libglib1.2-doc.info
  18337. @@ -0,0 +1 @@
  18338. +docs/glib.info
  18339. --- glib1.2-1.2.10.orig/glibconfig.h
  18340. +++ glib1.2-1.2.10/glibconfig.h
  18341. @@ -0,0 +1,131 @@
  18342. +/* glibconfig.h
  18343. + *
  18344. + * This is a generated file. Please modify `configure.in'
  18345. + */
  18346. +
  18347. +#ifndef GLIBCONFIG_H
  18348. +#define GLIBCONFIG_H
  18349. +
  18350. +#include <limits.h>
  18351. +#include <float.h>
  18352. +#define GLIB_HAVE_SYS_POLL_H
  18353. +
  18354. +#ifdef __cplusplus
  18355. +extern "C" {
  18356. +#endif /* __cplusplus */
  18357. +
  18358. +#define G_MINFLOAT FLT_MIN
  18359. +#define G_MAXFLOAT FLT_MAX
  18360. +#define G_MINDOUBLE DBL_MIN
  18361. +#define G_MAXDOUBLE DBL_MAX
  18362. +#define G_MINSHORT SHRT_MIN
  18363. +#define G_MAXSHORT SHRT_MAX
  18364. +#define G_MININT INT_MIN
  18365. +#define G_MAXINT INT_MAX
  18366. +#define G_MINLONG LONG_MIN
  18367. +#define G_MAXLONG LONG_MAX
  18368. +
  18369. +typedef signed char gint8;
  18370. +typedef unsigned char guint8;
  18371. +typedef signed short gint16;
  18372. +typedef unsigned short guint16;
  18373. +typedef signed int gint32;
  18374. +typedef unsigned int guint32;
  18375. +
  18376. +#if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
  18377. +# define G_GNUC_EXTENSION __extension__
  18378. +#else
  18379. +# define G_GNUC_EXTENSION
  18380. +#endif
  18381. +
  18382. +#define G_HAVE_GINT64 1
  18383. +
  18384. +G_GNUC_EXTENSION typedef signed long long gint64;
  18385. +G_GNUC_EXTENSION typedef unsigned long long guint64;
  18386. +
  18387. +#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
  18388. +
  18389. +#define GPOINTER_TO_INT(p) ((gint) (p))
  18390. +#define GPOINTER_TO_UINT(p) ((guint) (p))
  18391. +
  18392. +#define GINT_TO_POINTER(i) ((gpointer) (i))
  18393. +#define GUINT_TO_POINTER(u) ((gpointer) (u))
  18394. +
  18395. +#ifdef NeXT /* @#%@! NeXTStep */
  18396. +# define g_ATEXIT(proc) (!atexit (proc))
  18397. +#else
  18398. +# define g_ATEXIT(proc) (atexit (proc))
  18399. +#endif
  18400. +
  18401. +#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END
  18402. +
  18403. +#define GLIB_MAJOR_VERSION 1
  18404. +#define GLIB_MINOR_VERSION 2
  18405. +#define GLIB_MICRO_VERSION 10
  18406. +
  18407. +
  18408. +#define G_VA_COPY __va_copy
  18409. +
  18410. +#ifdef __cplusplus
  18411. +#define G_HAVE_INLINE 1
  18412. +#else /* !__cplusplus */
  18413. +#define G_HAVE_INLINE 1
  18414. +#define G_HAVE___INLINE 1
  18415. +#define G_HAVE___INLINE__ 1
  18416. +#endif /* !__cplusplus */
  18417. +
  18418. +#define G_THREADS_ENABLED
  18419. +#define G_THREADS_IMPL_POSIX
  18420. +typedef struct _GStaticMutex GStaticMutex;
  18421. +struct _GStaticMutex
  18422. +{
  18423. + struct _GMutex *runtime_mutex;
  18424. + union {
  18425. + char pad[24];
  18426. + double dummy_double;
  18427. + void *dummy_pointer;
  18428. + long dummy_long;
  18429. + } aligned_pad_u;
  18430. +};
  18431. +#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} } }
  18432. +#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)))
  18433. +
  18434. +#define GINT16_TO_LE(val) ((gint16) (val))
  18435. +#define GUINT16_TO_LE(val) ((guint16) (val))
  18436. +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
  18437. +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
  18438. +#define GINT32_TO_LE(val) ((gint32) (val))
  18439. +#define GUINT32_TO_LE(val) ((guint32) (val))
  18440. +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
  18441. +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
  18442. +#define GINT64_TO_LE(val) ((gint64) (val))
  18443. +#define GUINT64_TO_LE(val) ((guint64) (val))
  18444. +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
  18445. +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
  18446. +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
  18447. +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
  18448. +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
  18449. +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
  18450. +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
  18451. +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
  18452. +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
  18453. +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
  18454. +#define G_BYTE_ORDER G_LITTLE_ENDIAN
  18455. +
  18456. +#define GLIB_SYSDEF_POLLIN =1
  18457. +#define GLIB_SYSDEF_POLLOUT =4
  18458. +#define GLIB_SYSDEF_POLLPRI =2
  18459. +#define GLIB_SYSDEF_POLLERR =8
  18460. +#define GLIB_SYSDEF_POLLHUP =16
  18461. +#define GLIB_SYSDEF_POLLNVAL =32
  18462. +
  18463. +
  18464. +#define G_HAVE_WCHAR_H 1
  18465. +#define G_HAVE_WCTYPE_H 1
  18466. +
  18467. +
  18468. +#ifdef __cplusplus
  18469. +}
  18470. +#endif /* __cplusplus */
  18471. +
  18472. +#endif /* GLIBCONFIG_H */
  18473. --- glib1.2-1.2.10.orig/stamp-gc-h
  18474. +++ glib1.2-1.2.10/stamp-gc-h
  18475. @@ -0,0 +1 @@
  18476. +timestamp
  18477. --- glib1.2-1.2.10.orig/glibconfig-sysdefs.h
  18478. +++ glib1.2-1.2.10/glibconfig-sysdefs.h
  18479. @@ -0,0 +1,6 @@
  18480. +#define GLIB_SYSDEF_POLLIN =1
  18481. +#define GLIB_SYSDEF_POLLOUT =4
  18482. +#define GLIB_SYSDEF_POLLPRI =2
  18483. +#define GLIB_SYSDEF_POLLERR =8
  18484. +#define GLIB_SYSDEF_POLLHUP =16
  18485. +#define GLIB_SYSDEF_POLLNVAL =32